YOLO-World icon indicating copy to clipboard operation
YOLO-World copied to clipboard

Running demo.py on my local

Open baligoyem opened this issue 1 year ago • 11 comments

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

baligoyem avatar Feb 11 '24 09:02 baligoyem

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

wondervictor avatar Feb 11 '24 09:02 wondervictor

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.

baligoyem avatar Feb 12 '24 05:02 baligoyem

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

saminheydarian avatar Feb 13 '24 11:02 saminheydarian

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

PrashantDixit0 avatar Feb 13 '24 11:02 PrashantDixit0

@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

baligoyem avatar Feb 13 '24 16:02 baligoyem

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

PrashantDixit0 avatar Feb 13 '24 16:02 PrashantDixit0

I don't think so @PrashantDixit0

I am sharing the ss with you:

image

Could it be related to the path?

baligoyem avatar Feb 13 '24 16:02 baligoyem

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.

wingman-jr-addon avatar Feb 15 '24 07:02 wingman-jr-addon

Yes, that's what I meant to say

PrashantDixit0 avatar Feb 15 '24 07:02 PrashantDixit0

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?

SuperMaximus1984 avatar Feb 15 '24 20:02 SuperMaximus1984

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.

ransheng11 avatar Feb 28 '24 02:02 ransheng11