fudan-zvg / Semantic-Segment-Anything

Automated dense category annotation engine that serves as the initial semantic labeling for the Segment Anything dataset (SA-1B).
Apache License 2.0
2.1k stars 132 forks source link

你好,配置好环境后运行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 #56

Open WANG-wenhao2023 opened 6 months ago

WANG-wenhao2023 commented 6 months ago

[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'. 2024-02-29 19-05-19 的屏幕截图 请问如何解决,谢谢

feifeiwei commented 1 month ago

import os os.environ["HF_ENDPOINT"] = "https://hf-mirror.com" python代码里加入试试。