运行image_demo.py报错
Longleaves opened this issue · 23 comments
使用的命令是:
python image_demo.py configs/pretrain/yolo_world_s_dual_vlpan_l2norm_2e-3_100e_4x8gpus_obj365v1_goldg_train_lvis_minival.py models/yolo_world_seg_m_dual_vlpan_2e-4_80e_8gpus_allmodules_finetune_lvis-ca465825.pth data/images/ 'person,dog,cat' --topk 100 --threshold 0.005 --output-dir demo_outputs/
报错内容是:
ModuleNotFoundError: No module named 'mmcv._ext'
ImportError: Failed to import yolo_world
You should set PYTHONPATH
to make sys.path
include the directory which contains your custom module
我已pip install -e .
请问这上面报错怎么解决呀?
这个看起来mmcv没有装好,可以单独安装一下看看
这个看起来mmcv没有装好,可以单独安装一下看看
装哪个版本合适呀
2.0.0应该就可以
huggingface
READMDE里有huggingface的镜像网站,替换了就行
huggingface
READMDE里有huggingface的镜像网站,替换了就行
在哪个文件中替换呀?
huggingface
READMDE里有huggingface的镜像网站,替换了就行
在哪个文件中替换呀?
config里model_name
huggingface
READMDE里有huggingface的镜像网站,替换了就行
在哪个文件中替换呀?
config里model_name
有没有可能把默认下载的网址改成镜像的?
huggingface
READMDE里有huggingface的镜像网站,替换了就行
在哪个文件中替换呀?
config里model_name
有没有可能把默认下载的网址改成镜像的?
你直接在镜像网站里把需要的模型全下到本地,然后config里指定本地路径就行了,省得麻烦
@Longleaves 你这边修改了哪些东西
@Longleaves 你这边修改了哪些东西
没有修改任何东西哦
您好,请问是我哪里没配对吗,怎么那么多错的框。我用的s模型,命令是: python demo.py configs/pretrain/yolo_world_s_dual_vlpan_l2norm_2e-3_100e_4x8gpus_obj365v1_goldg_train_lvis_minival.py models/yolo_world_seg_m_dual_vlpan_2e-4_80e_8gpus_allmodules_finetune_lvis-ca465825.pth
是配错了模型,用成了seg,改成YOLO_WORLD_S就好啦。感谢你们!谢谢!
@fgd0707 用最新的code,已经fix了
Hi all, the bug in the demo.py
has been fixed, you can have a try! BTW, ONNX export is also supported!
This issue will be closed since there is no further update related to the main topic. Besides, the error has been fixed already. Thanks for your interest. If you have any questions about YOLO-World in the future, you're welcome to open a new issue.
我找不到pth模型下载的地方,这边只有一个模型:https://huggingface.co/spaces/stevengrove/YOLO-World/tree/main,而且找不到对应的config?