你好,配置好环境后运行Foggy_Driving指令时报错OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like shi-labs/oneformer_cityscapes_dinat_large is not the path to a directory containing a file named preprocessor_config.json. #1
WANG-wenhao2023 opened this issue · 1 comments
[Model loaded] Mask branch (SAM) is loaded.
'HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /shi-labs/oneformer_cityscapes_dinat_large/resolve/main/preprocessor_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f4d9c0333d0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))' thrown while requesting HEAD https://huggingface.co/shi-labs/oneformer_cityscapes_dinat_large/resolve/main/preprocessor_config.json
OSError: We couldn't connect to 'https://huggingface.co/' to load this file, couldn't find it in the cached files and it looks like shi-labs/oneformer_cityscapes_dinat_large is not the path to a directory containing a file named preprocessor_config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
请问如何解决,谢谢
import os
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"
python代码里加入试试。