ariG23498 HF Staff commited on
Commit
17f30ec
·
verified ·
1 Parent(s): ce84547

Upload facebook_sam3_1.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. facebook_sam3_1.txt +102 -1
facebook_sam3_1.txt CHANGED
@@ -1 +1,102 @@
1
- Everything was good in facebook_sam3_1.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Use a pipeline as a high-level helper
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline("mask-generation", model="facebook/sam3")
6
+ ```
7
+
8
+ ERROR:
9
+ Traceback (most recent call last):
10
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 720, in hf_raise_for_status
11
+ response.raise_for_status()
12
+ ~~~~~~~~~~~~~~~~~~~~~~~~~^^
13
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
14
+ raise HTTPStatusError(message, request=request, response=self)
15
+ httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://huggingface.co/facebook/sam3/resolve/main/config.json'
16
+ For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
17
+
18
+ The above exception was the direct cause of the following exception:
19
+
20
+ Traceback (most recent call last):
21
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1649, in _get_metadata_or_catch_error
22
+ metadata = get_hf_file_metadata(
23
+ url=url,
24
+ ...<4 lines>...
25
+ retry_on_errors=retry_on_errors,
26
+ )
27
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
28
+ return fn(*args, **kwargs)
29
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1572, in get_hf_file_metadata
30
+ response = _httpx_follow_relative_redirects_with_backoff(
31
+ method="HEAD", url=url, headers=hf_headers, timeout=timeout, retry_on_errors=retry_on_errors
32
+ )
33
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 651, in _httpx_follow_relative_redirects_with_backoff
34
+ hf_raise_for_status(response)
35
+ ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
36
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 802, in hf_raise_for_status
37
+ raise _format(HfHubHTTPError, message, response) from e
38
+ huggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-69a9301b-4b2f71bc34977411711ae035;b8dfe1d2-b772-4df0-b54e-4b87e34f3057)
39
+
40
+ 403 Forbidden: Please enable access to public gated repositories in your fine-grained token settings to view this repository..
41
+ Cannot access content at: https://huggingface.co/facebook/sam3/resolve/main/config.json.
42
+ Make sure your token has the correct permissions.
43
+
44
+ The above exception was the direct cause of the following exception:
45
+
46
+ Traceback (most recent call last):
47
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/transformers/utils/hub.py", line 420, in cached_files
48
+ hf_hub_download(
49
+ ~~~~~~~~~~~~~~~^
50
+ path_or_repo_id,
51
+ ^^^^^^^^^^^^^^^^
52
+ ...<9 lines>...
53
+ local_files_only=local_files_only,
54
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55
+ )
56
+ ^
57
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
58
+ return fn(*args, **kwargs)
59
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 982, in hf_hub_download
60
+ return _hf_hub_download_to_cache_dir(
61
+ # Destination
62
+ ...<15 lines>...
63
+ dry_run=dry_run,
64
+ )
65
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1133, in _hf_hub_download_to_cache_dir
66
+ _raise_on_head_call_error(head_call_error, force_download, local_files_only)
67
+ ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1765, in _raise_on_head_call_error
69
+ raise LocalEntryNotFoundError(
70
+ ...<3 lines>...
71
+ ) from head_call_error
72
+ huggingface_hub.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.
73
+
74
+ The above exception was the direct cause of the following exception:
75
+
76
+ Traceback (most recent call last):
77
+ File "/tmp/facebook_sam3_1u0zCWw.py", line 26, in <module>
78
+ pipe = pipeline("mask-generation", model="facebook/sam3")
79
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 699, in pipeline
80
+ config = AutoConfig.from_pretrained(
81
+ model, _from_pipeline=task, code_revision=code_revision, **hub_kwargs, **model_kwargs
82
+ )
83
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1429, in from_pretrained
84
+ config_dict, unused_kwargs = PreTrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
85
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/transformers/configuration_utils.py", line 574, in get_config_dict
87
+ config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
88
+ ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/transformers/configuration_utils.py", line 629, in _get_config_dict
90
+ resolved_config_file = cached_file(
91
+ pretrained_model_name_or_path,
92
+ ...<9 lines>...
93
+ _commit_hash=commit_hash,
94
+ )
95
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/transformers/utils/hub.py", line 277, in cached_file
96
+ file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
97
+ File "/tmp/.cache/uv/environments-v2/49326666076cd0f9/lib/python3.13/site-packages/transformers/utils/hub.py", line 494, in cached_files
98
+ raise OSError(
99
+ ...<3 lines>...
100
+ ) from e
101
+ OSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.
102
+ Check your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.