Skip to content
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

AttributeError: 'NoneType' object has no attribute 'image_mean' #10

Open
cutiyu opened this issue Nov 5, 2024 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'image_mean' #10

cutiyu opened this issue Nov 5, 2024 · 1 comment

Comments

@cutiyu
Copy link

cutiyu commented Nov 5, 2024

in app.py file, init meth setting model_name = "cambrian_qwen" and model_path = "./checkpoints/longvu_qwen"。 but README tell us to download models for LongVU_Qwen2_7B_img 、LongVU_Qwen2_7B or LongVU_Llama3_2_3B_img LongVU_Llama3_2_3B.

when I setting one of those model_path :

    model_path = "./checkpoints/LongVU_Qwen2_7B"
    # model_path = "./checkpoints/LongVU_Qwen2_7B_img"
    # model_path = "./checkpoints/LongVU_Llama3_2_3B_img"
    # model_path = "./checkpoints/LongVU_Llama3_2_3B"

I found the model_name must be model_name = "cambrian_qwen" , if not , it will caused exception :
AttributeError: 'NoneType' object has no attribute 'image_mean'

so:
what is the relation for model_name = "cambrian_qwen" and model_path and if I setting model_path = "./checkpoints/LongVU_Llama3_2_3B then model_name also is "cambrian_qwen" ?

@xiaoqian-shen
Copy link
Collaborator

Thanks for raising this question. Since our model built on top of Cambrian architecture and we decide which module to use based on the model name here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants