bowang-lab / BLEEP

Spatially Resolved Gene Expression Prediction from H&E Histology Images via Bi-modal Contrastive Learning
Apache License 2.0
63 stars 10 forks source link

Max retries exceeded with url: /timm/resnet50.a1_in1k/resolve/main/model.safetensors #3

Closed LingyuLi-math closed 3 months ago

LingyuLi-math commented 1 year ago

Hi,

Very cool work. Congratulations! When I try to run this script using ‘python -m BLEEP_main1030’ with my data (all parameters are default) I met the following question.

I have tried to add the following codes, but it doesn't work.


pip install requests==2.27.1
import os os.environ['CURL_CA_BUNDLE'] = ''


I would appreciate it if you could help me see it. Thanks a lot.

Best regards, Lingyu


(py39) lly@217:~/Python/BLEEP/BLEEP-main$ python -m BLEEP_main1030 Starting... '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /timm/resnet50.a1_in1k/resolve/main/model.safetensors (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f25703e0580>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 3e6c756e-3f31-4f2a-9b7a-d628e43e8017)')' thrown while requesting HEAD https://huggingface.co/timm/resnet50.a1_in1k/resolve/main/model.safetensors '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /timm/resnet50.a1_in1k/resolve/main/pytorch_model.bin (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f25703e0a90>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 1dd0ddaa-07aa-4815-a388-38059d68e6d5)')' thrown while requesting HEAD https://huggingface.co/timm/resnet50.a1_in1k/resolve/main/pytorch_model.bin Traceback (most recent call last): File "/home/lly/miniconda3/envs/py39/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/home/lly/miniconda3/envs/py39/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/lly/miniconda3/envs/py39/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) socket.timeout: timed out