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

[Question] How do I set the image input to a null value? #1814

Open
rickeyhhh opened this issue Dec 23, 2024 · 0 comments
Open

[Question] How do I set the image input to a null value? #1814

rickeyhhh opened this issue Dec 23, 2024 · 0 comments

Comments

@rickeyhhh
Copy link

rickeyhhh commented Dec 23, 2024

Question

Hi!!
I want to do some experiments with Llava. But I don't know how to set the image input to a null value.
args = type('Args', (), { "model_path": model_path, "model_base": None, "model_name": get_model_name_from_path(model_path), "query": prompt, "conv_mode": None, "image_file": image_file, "sep": ",", "temperature": 0, "top_p": None, "num_beams": 1, "max_new_tokens": 512 })()
If I set the "image_file" to None, the model will give me a error:
AttributeError: 'NoneType' object has no attribute 'split'

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

1 participant