anylabeling icon indicating copy to clipboard operation
anylabeling copied to clipboard

if model_config["type"] == "yolov5":TypeError: 'NoneType' object is not subscriptable

Open monkeycc opened this issue 1 year ago • 4 comments

 anylabeling
Could not download https://huggingface.co/vietanhdev/segment-anything-onnx-models/resolve/main/sam_vit_h_4b8939.zip: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\anaconda3\envs\py38\lib\site-packages\anylabeling\utils.py", line 15, in run
    self.func(*self.args, **self.kwargs)
  File "E:\anaconda3\envs\py38\lib\site-packages\anylabeling\services\auto_labeling\model_manager.py", line 389, in _load_model
    if model_config["type"] == "yolov5":
TypeError: 'NoneType' object is not subscriptable

monkeycc avatar Jun 30 '23 17:06 monkeycc

@monkeycc Maybe your internet connection is not good to download the model. You can try the following: download from a browser, extract, and load it as a custom model: https://huggingface.co/vietanhdev/segment-anything-onnx-models/resolve/main/sam_vit_h_4b8939.zip.

vietanhdev avatar Jul 02 '23 03:07 vietanhdev

@monkeycc Maybe your internet connection is not good to download the model. You can try the following: download from a browser, extract, and load it as a custom model: https://huggingface.co/vietanhdev/segment-anything-onnx-models/resolve/main/sam_vit_h_4b8939.zip. hi,Where should I put the model after I download it? My system is windows 11,thank you

Kk875 avatar Aug 31 '23 01:08 Kk875

Same issue as #160

scottix avatar Dec 18 '23 21:12 scottix

@monkeycc Maybe your internet connection is not good to download the model. You can try the following: download from a browser, extract, and load it as a custom model: https://huggingface.co/vietanhdev/segment-anything-onnx-models/resolve/main/sam_vit_h_4b8939.zip. hi,Where should I put the model after I download it? My system is windows 11,thank you

Have you solved this problem? Can you share the detailed directory of file placement?

hustCYQ avatar Jan 07 '24 06:01 hustCYQ