Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
monkeycc opened this issue Jun 30, 2023 · 4 comments

Comments

@monkeycc
Copy link

monkeycc commented Jun 30, 2023

 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
Copy link
Owner

@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
Copy link

Kk875 commented Aug 31, 2023

@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
Copy link
Collaborator

scottix commented Dec 18, 2023

Same issue as #160

@hustCYQ
Copy link

hustCYQ commented Jan 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants