Skip to content

Issue with cropping image. #1

@eliywilner

Description

@eliywilner

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions