AILab-CVC / YOLO-World

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

Running demo.py on my local #38

Open baligoyem opened 7 months ago

baligoyem commented 7 months ago

I got the error below when I run the demo.py file:

usage: demo.py [-h] [--work-dir WORK_DIR] [--cfg-options CFG_OPTIONS [CFG_OPTIONS ...]] config checkpoint demo.py: error: the following arguments are required: config, checkpoint

wondervictor commented 7 months ago

Hi @baligoyem, the demo.py requires the config file and checkpoint:

python demo.py configs/pretrain/configs/pretrain/yolo_world_l_dual_vlpan_l2norm_2e-3_100e_4x8gpus_obj365v1_goldg_train_lvis_val.py weights/yolo_world_l_clip_base_dual_vlpan_2e-3adamw_32xb16_100e_o365_goldg_train_pretrained-0e566235.pth
baligoyem commented 7 months ago

When running this command, I got the error below: FileNotFoundError: [Errno 2] No such file or directory: '../../third_party/mmyolo/configs/yolov8/yolov8_l_syncbn_fast_8xb16-500e_coco.py'

Additionally, I cannot find checkpoint 'weights/yolo_world_l_clip_base_dual_vlpan_2e-3adamw_32xb16_100e_o365_goldg_train_pretrained-0e566235.pth' in the repo.

saminheydarian commented 7 months ago

Hi @baligoyem. It seems that some checkpoints have been added, please check readme

PrashantDixit0 commented 7 months ago

Hii @baligoyem , You can download weights from here https://github.com/AILab-CVC/YOLO-World?tab=readme-ov-file#zero-shot-inference-on-lvis-dataset and put in weights folder

baligoyem commented 7 months ago

@PrashantDixit0 thanks, probably it will work, but first I need to get rid of this error related to config file: FileNotFoundError: [Errno 2] No such file or directory: '../../third_party/mmyolo/configs/yolov8/yolov8_l_syncbn_fast_8xb16-500e_coco.py'

image

PrashantDixit0 commented 7 months ago

This error would be coming because dependencies are not installed, mmyolo check requirements.txt and install it

baligoyem commented 7 months ago

I don't think so @PrashantDixit0

I am sharing the ss with you:

image

Could it be related to the path?

wingman-jr-addon commented 7 months ago

Looks like third_party/mmyolo is a git submodule. I just needed to checkout the submodule and then the path picked up; I didn't actually need to install mmyolo myself.

PrashantDixit0 commented 7 months ago

Yes, that's what I meant to say

SuperMaximus1984 commented 7 months ago

Looks like third_party/mmyolo is a git submodule. I just needed to checkout the submodule and then the path picked up; I didn't actually need to install mmyolo myself.

I have the same problem. What do you mean upon checkout the submodule? Did you have to download it from huggingface?

ransheng11 commented 7 months ago

I don't think so 我不这么认为@PrashantDixit0

I am sharing the ss with you:我正在与你分享 ss:

image

Could it be related to the path?会不会和路径有关?

Have you solved it? I have the same problem.