Skip to content

[Convert HF] TypeError: Received a NoneType for argument video_processor, but a BaseVideoProcessor was expected. #8107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
MathewCrespo opened this issue May 19, 2025 · 1 comment
Assignees
Labels
bug Something isn't working pending This problem is yet to be addressed

Comments

@MathewCrespo
Copy link

Reminder

  • I have read the above rules and searched the existing issues.

System Info

Hi, i am trying to finetune the InternVL-2.5 and InternVL-3 series models.

  1. Following the instructions, i have already updated the transformers version through its github main branch.
  2. I tried to convert the official InternVL ckpt to HF version, and got the following error.

python convert_internvl_weights_to_hf.py --input_dir OpenGVLab/InternVL2_5-4B-MPO --output_dir xxx/InternVL2_5-4B-MPO-hf

TypeError: Received a NoneType for argument video_processor, but a BaseVideoProcessor was expected.

Reproduction

Put your message here.

Others

No response

@MathewCrespo MathewCrespo added bug Something isn't working pending This problem is yet to be addressed labels May 19, 2025
@Kuangdd01
Copy link
Collaborator

I guess some configurations of origin InternVL-Chat have not been updated with the new feature of video_processor.
A quick hack way:

1. cd your_transformers_dir
2. git checkout -b internvl_dev 1cfcbfcab8da6681a73b18e3e198d56417815223
3. Retry convert_scripts then.

@Kuangdd01 Kuangdd01 changed the title [Convert HF ]TypeError: Received a NoneType for argument video_processor, but a BaseVideoProcessor was expected. [Convert HF] TypeError: Received a NoneType for argument video_processor, but a BaseVideoProcessor was expected. May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending This problem is yet to be addressed
Projects
None yet
Development

No branches or pull requests

2 participants