-
Notifications
You must be signed in to change notification settings - Fork 8
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
Issue with cropping image. #1
Comments
In my local environment, I can successfully execute this command. Could you provide the complete error message? |
Here is the complete error message:
I think the issue comes from when in the builder.py in the load_pretrained_model function
Since running the command suggested in the github:
will result in model_name.lower() will be pulse-7b thus the returned image_processor = None |
Thank you for pointing this out! I have updated the code: |
I've tried the example you've provided with:
python llava/eval/run_llava.py --model-path "PULSE-ECG/PULSE-7B" --image-file "images/ecg_example.png" --query "What are the main features in this ECG image?" --conv-mode "llava_v1"
After installing all the dependencies I get:
Traceback (most recent call last):
File "/home//PULSE/LLaVA/llava/eval/run_llava.py", line 145, in
eval_model(args)
File "/home//PULSE/LLaVA/llava/eval/run_llava.py", line 102, in eval_model
images_tensor = process_images(
File "/home//PULSE/LLaVA/llava/mm_utils.py", line 176, in process_images
image = process_anyres_image(image, image_processor, model_cfg.image_grid_pinpoints)
File "/home//PULSE/LLaVA/llava/mm_utils.py", line 138, in process_anyres_image
patches = divide_to_patches(image_padded, processor.crop_size['height'])
Can you please advise?
The text was updated successfully, but these errors were encountered: