chengxuxin / expressive-humanoid

[RSS 2024]: Expressive Whole-Body Control for Humanoid Robots
https://expressive-humanoid.github.io/
Other
191 stars 17 forks source link

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 sentence-transformers/paraphrase-MiniLM-L3-v2 is not the path to a directory containing a file named config.json. #8

Closed dbdxnuliba closed 2 months ago

dbdxnuliba commented 2 months ago

(humanoid) nuli@nuli-Legion-Y9000P-IRX8:~/rl/expressive-humanoid/ASE/ase/poselib$ python parse_cmu_mocap_all.py Found 617 entries containing 'walk', 252 unique entries. Found 16 entries containing 'navigate', 7 unique entries. Found 36 entries containing 'basketball', 16 unique entries. Found 80 entries containing 'dance', 35 unique entries. Found 20 entries containing 'punch', 20 unique entries. Found 0 entries containing 'fight', 0 unique entries. Found 16 entries containing 'push', 12 unique entries. Found 18 entries containing 'pull', 14 unique entries. Found 24 entries containing 'throw', 24 unique entries. Found 16 entries containing 'catch', 16 unique entries. Found 3 entries containing 'crawl', 2 unique entries. Found 9 entries containing 'wave', 4 unique entries. Found 2 entries containing 'high five', 2 unique entries. Found 2 entries containing 'hug', 2 unique entries. Found 16 entries containing 'drink', 14 unique entries. Found 16 entries containing 'wash', 9 unique entries. Found 20 entries containing 'signal', 4 unique entries. Found 7 entries containing 'balance', 5 unique entries. Found 0 entries containing 'strech', 0 unique entries. Found 44 entries containing 'leg', 26 unique entries. Found 22 entries containing 'bend', 12 unique entries. Found 11 entries containing 'squat', 9 unique entries. Found 8 entries containing 'traffic', 3 unique entries. Found 2 entries containing 'high-five', 2 unique entries. Found 2 entries containing 'low-five', 2 unique entries.

Searching for forbidden words: Found 7 entries containing 'ladder', 3 unique entries. Found 13 entries containing 'suitcase', 3 unique entries. Found 38 entries containing 'uneven', 2 unique entries. Found 38 entries containing 'terrain', 2 unique entries. Found 15 entries containing 'stair', 7 unique entries. Found 0 entries containing 'stairway', 0 unique entries. Found 0 entries containing 'stairwell', 0 unique entries. Found 135 entries containing 'clean', 37 unique entries. Found 30 entries containing 'box', 14 unique entries. Found 36 entries containing 'climb', 20 unique entries. Found 6 entries containing 'backflip', 5 unique entries. Found 3 entries containing 'handstand', 3 unique entries. Found 55 entries containing 'sit', 39 unique entries. Found 8 entries containing 'hang', 8 unique entries. Found 384 forbidden entries. Found 327 unique forbidden entries.

Filtering forbidden words: Found 546 entries for 'walk' after filtering, 233 unique entries. YAML file created with the specified structure. Found 13 entries for 'navigate' after filtering, 6 unique entries. Found 36 entries for 'basketball' after filtering, 16 unique entries. YAML file created with the specified structure. Found 78 entries for 'dance' after filtering, 34 unique entries. YAML file created with the specified structure. Found 20 entries for 'punch' after filtering, 20 unique entries. YAML file created with the specified structure. Found 0 entries for 'fight' after filtering, 0 unique entries. Found 13 entries for 'push' after filtering, 9 unique entries. Found 13 entries for 'pull' after filtering, 9 unique entries. Found 24 entries for 'throw' after filtering, 24 unique entries. Found 16 entries for 'catch' after filtering, 16 unique entries. Found 3 entries for 'crawl' after filtering, 2 unique entries. Found 9 entries for 'wave' after filtering, 4 unique entries. Found 2 entries for 'high five' after filtering, 2 unique entries. Found 2 entries for 'hug' after filtering, 2 unique entries. Found 16 entries for 'drink' after filtering, 14 unique entries. Found 14 entries for 'wash' after filtering, 8 unique entries. Found 18 entries for 'signal' after filtering, 3 unique entries. Found 7 entries for 'balance' after filtering, 5 unique entries. Found 0 entries for 'strech' after filtering, 0 unique entries. Found 38 entries for 'leg' after filtering, 20 unique entries. Found 12 entries for 'bend' after filtering, 9 unique entries. Found 11 entries for 'squat' after filtering, 9 unique entries. Found 8 entries for 'traffic' after filtering, 3 unique entries. Found 2 entries for 'high-five' after filtering, 2 unique entries. Found 2 entries for 'low-five' after filtering, 2 unique entries. YAML file created with the specified structure.

No sentence-transformers model found with name sentence-transformers/paraphrase-MiniLM-L3-v2. Creating a new one with mean pooling. Traceback (most recent call last): File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn sock = connection.create_connection( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection raise err File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) socket.timeout: timed out

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

Traceback (most recent call last): File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen response = self._make_request( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/connectionpool.py", line 490, in _make_request raise new_e File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/connectionpool.py", line 466, in _make_request self._validate_conn(conn) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1095, in _validate_conn conn.connect() File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/connection.py", line 615, in connect self.sock = sock = self._new_conn() File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/connection.py", line 205, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f20543c2bb0>, 'Connection to huggingface.co timed out. (connect timeout=10)')

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

Traceback (most recent call last): File "/home/nuli/.local/lib/python3.8/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /sentence-transformers/paraphrase-MiniLM-L3-v2/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f20543c2bb0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1751, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(args, kwargs) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1673, in get_hf_file_metadata r = _request_wrapper( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 376, in _request_wrapper response = _request_wrapper( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 399, in _request_wrapper response = get_session().request(method=method, url=url, params) File "/home/nuli/.local/lib/python3.8/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) File "/home/nuli/.local/lib/python3.8/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, kwargs) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/utils/_http.py", line 66, in send return super().send(request, args, **kwargs) File "/home/nuli/.local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /sentence-transformers/paraphrase-MiniLM-L3-v2/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f20543c2bb0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 150301b3-d495-4de3-a663-80d9ef87f16d)')

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

Traceback (most recent call last): File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/transformers/utils/hub.py", line 402, in cached_file resolved_file = hf_hub_download( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f return f(*args, *kwargs) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(args, **kwargs) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1240, in hf_hub_download return _hf_hub_download_to_cache_dir( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1347, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1857, in _raise_on_head_call_error raise LocalEntryNotFoundError( huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

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

Traceback (most recent call last): File "parse_cmu_mocap_all.py", line 86, in model = SentenceTransformer('sentence-transformers/paraphrase-MiniLM-L3-v2') File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/sentence_transformers/SentenceTransformer.py", line 299, in init modules = self._load_auto_model( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/sentence_transformers/SentenceTransformer.py", line 1324, in _load_auto_model transformer_model = Transformer( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/sentence_transformers/models/Transformer.py", line 53, in init config = AutoConfig.from_pretrained(model_name_or_path, config_args, cache_dir=cache_dir) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/transformers/models/auto/configuration_auto.py", line 976, in from_pretrained config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, kwargs) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/transformers/configuration_utils.py", line 632, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/transformers/configuration_utils.py", line 689, in _get_config_dict resolved_config_file = cached_file( File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/transformers/utils/hub.py", line 445, in cached_file raise EnvironmentError( 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 sentence-transformers/paraphrase-MiniLM-L3-v2 is not the path to a directory containing a file named 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'.

AlorithmKing commented 2 months ago

@dbdxnuliba how i can do i meet the same error if i try to download it offline i can't find sample00.npy