InternLM / InternLM/InternLM-XComposer

2d5 finetune type error

Open
#412 12 comments 1 reaction 2 assignees Claimed by @yuhangzang View on GitHub
Dominant language
Python
Stars
2.9k
Forks
175
PR merge metrics
No merged PRs in 30d

Description

Dear Developers, I can perform inference using the script you provided, but I encounter an object type mismatch during training. Specifically, I checked the data type, and the image input is already a list, so the images are input as list(list) for ViT.
![image](https://github.com/user-attachments/assets/5b68f666-d8d3-4ae5-936a-d7a013bc7ee2)
As a result, the image is also a list, causing a type error (no attribute) to occur. If I change the source code, I can fine-tune the model but can no longer perform inference. I simply use the demo dataset `finetune/data/single_turn_single_image_example.json` for finetuning test.
![image](https://github.com/user-attachments/assets/16c67425-ea16-4a85-8459-36869bdeac1e)
![image](https://github.com/user-attachments/assets/61290eea-cffb-4f63-8c7e-c4179d375f29)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.