vietanhdev / anylabeling

Effortless AI-assisted data labeling with AI support from YOLO, Segment Anything, MobileSAM!!
https://anylabeling.nrl.ai
GNU General Public License v3.0
2.04k stars 222 forks source link

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

Open monkeycc opened 1 year ago

monkeycc commented 1 year ago
 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
vietanhdev commented 1 year ago

@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.

Kk875 commented 11 months ago

@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

scottix commented 7 months ago

Same issue as #160

hustCYQ commented 6 months ago

@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?