vietanhdev / anylabeling

Effortless AI-assisted data labeling with AI support from YOLO, Segment Anything (SAM+SAM2), MobileSAM!!
https://anylabeling.nrl.ai
GNU General Public License v3.0
2.2k stars 236 forks source link

The program crashed while downloading the model. #52

Closed KroitAax closed 1 year ago

KroitAax commented 1 year ago

The program crashed while downloading the model.

vietanhdev commented 1 year ago

Please specify:

Rane2021 commented 1 year ago

my machine is macos 12.6.5 with m1 chip. load model error is:

Traceback (most recent call last): File "urllib/request.py", line 1350, in do_open File "http/client.py", line 1281, in request File "http/client.py", line 1327, in _send_request File "http/client.py", line 1276, in endheaders File "http/client.py", line 1036, in _send_output File "http/client.py", line 976, in send File "http/client.py", line 1451, in connect File "ssl.py", line 423, in wrap_socket File "ssl.py", line 870, in _create File "ssl.py", line 1139, in do_handshake ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "services/auto_labeling/model.py", line 124, in get_model_abs_path File "urllib/request.py", line 247, in urlretrieve File "urllib/request.py", line 222, in urlopen File "urllib/request.py", line 525, in open File "urllib/request.py", line 543, in _open File "urllib/request.py", line 503, in _call_chain File "urllib/request.py", line 1393, in https_open File "urllib/request.py", line 1352, in do_open urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)>

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "utils.py", line 15, in run File "services/auto_labeling/model_manager.py", line 149, in _load_model File "services/auto_labeling/segment_anything.py", line 52, in init File "services/auto_labeling/model.py", line 130, in get_model_abs_path Exception: Could not download model from https://github.com/vietanhdev/anylabeling-assets/releases/download/v0.2.0/segment_anything_vit_b_encoder_quant.onnx: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)> [1] 99692 abort ./anylabeling

Rane2021 commented 1 year ago

it see like: network error, is there any ways to download model and put it in a folder

susigo commented 1 year ago

i face the same problem!

KroitAax commented 1 year ago

This issue has been resolved. You need to download the latest source code and replace the path inside. Network reasons also need to be noted, if you are using a proxy to enable global mode. https://github.com/vietanhdev/anylabeling-assets

Geniukx commented 1 year ago

This issue has been resolved. You need to download the latest source code and replace the path inside. Network reasons also need to be noted, if you are using a proxy to enable global mode. https://github.com/vietanhdev/anylabeling-assets

Thanks, switching the proxy to global did work

vietanhdev commented 1 year ago

Please check AnyLabeling v0.2.16 to see if the error still persists.

vietanhdev commented 1 year ago

From AnyLabeling v0.2.22, to load custom models: