AILab-CVC / YOLO-World

[CVPR 2024] Real-Time Open-Vocabulary Object Detection
https://www.yoloworld.cc
GNU General Public License v3.0
4.68k stars 453 forks source link

Syntax error for image_demo.py #67

Closed poojatambe closed 8 months ago

poojatambe commented 9 months ago

Hi, Thanks for your amazing work. I was trying image_demo.py but facing syntax error. Using Colab for implementation.

Command used is

!python image_demo.py /content/yolo_world_seg_l_dual_vlpan_2e-4_80e_8gpus_allmodules_finetune_lvis.py /content/yolo_world_seg_l_dual_vlpan_2e-4_80e_8gpus_allmodules_finetune_lvis-8c58c916.pth /content/dog.jpeg 'dog' --topk 100 --threshold 0.3 --output-dir demo_outputs

image

Thank you in advance.

wondervictor commented 9 months ago

Hi @poojatambe, have you ever tried

./tools/dist_test.sh /content/yolo_world_seg_l_dual_vlpan_2e-4_80e_8gpus_allmodules_finetune_lvis.py /content/yolo_world_seg_l_dual_vlpan_2e-4_80e_8gpus_allmodules_finetune_lvis-8c58c916.pth

?

paartheee commented 8 months ago

Hi @poojatambe, try this


!python image_demo.py "/content/yolo_world_seg_l_dual_vlpan_2e-4_80e_8gpus_allmodules_finetune_lvis.py" "/content/yolo_world_seg_l_dual_vlpan_2e-4_80e_8gpus_allmodules_finetune_lvis-8c58c916.pth" /content/dog.jpeg 'dog' --topk 100 --threshold 0.3 --output-dir demo_outputs```
wondervictor commented 8 months ago

Thanks for your interest. If you have any questions about YOLO-World in the future, you're welcome to open a new issue.