Upload facebook_sam3_2.txt with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107```CODE: # Load model directlyfrom transformers import AutoImageProcessor, AutoModel
processor = AutoImageProcessor.from_pretrained("facebook/sam3")model = AutoModel.from_pretrained("facebook/sam3")```
ERROR: Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 402, in hf_raise_for_status response.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self)requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/facebook/sam3/resolve/main/preprocessor_config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 479, in cached_files hf_hub_download( ~~~~~~~~~~~~~~~^ path_or_repo_id, ^^^^^^^^^^^^^^^^ ...<10 lines>... local_files_only=local_files_only, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download return _hf_hub_download_to_cache_dir( # Destination ...<14 lines>... force_download=force_download, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1114, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1655, in _raise_on_head_call_error raise head_call_error File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( url=url, proxies=proxies, timeout=etag_timeout, headers=headers, token=token, endpoint=endpoint ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata r = _request_wrapper( method="HEAD", ...<5 lines>... timeout=timeout, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper response = _request_wrapper( method=method, ...<2 lines>... **params, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 307, in _request_wrapper hf_raise_for_status(response) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 419, in hf_raise_for_status raise _format(GatedRepoError, message, response) from ehuggingface_hub.errors.GatedRepoError: 403 Client Error. (Request ID: Root=1-691ebfd2-7783bab91476aa87048ca05e;09b7e00a-c3ab-4743-914b-01b2ebc10034)
Cannot access gated repo for url https://huggingface.co/facebook/sam3/resolve/main/preprocessor_config.json.Access to model facebook/sam3 is restricted and you are not in the authorized list. Visit https://huggingface.co/facebook/sam3 to ask for access.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/facebook_sam3_21zgCDc.py", line 26, in <module> processor = AutoImageProcessor.from_pretrained("facebook/sam3") File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/models/auto/image_processing_auto.py", line 489, in from_pretrained raise initial_exception File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/models/auto/image_processing_auto.py", line 476, in from_pretrained config_dict, _ = ImageProcessingMixin.get_image_processor_dict( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ pretrained_model_name_or_path, image_processor_filename=image_processor_filename, **kwargs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/image_processing_base.py", line 337, in get_image_processor_dict resolved_file := cached_file( ~~~~~~~~~~~^ pretrained_model_name_or_path, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<10 lines>... _raise_exceptions_for_missing_entries=False, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 322, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 543, in cached_files raise OSError( ...<2 lines>... ) from eOSError: You are trying to access a gated repo.Make sure to have access to it at https://huggingface.co/facebook/sam3.403 Client Error. (Request ID: Root=1-691ebfd2-7783bab91476aa87048ca05e;09b7e00a-c3ab-4743-914b-01b2ebc10034)
Cannot access gated repo for url https://huggingface.co/facebook/sam3/resolve/main/preprocessor_config.json.Access to model facebook/sam3 is restricted and you are not in the authorized list. Visit https://huggingface.co/facebook/sam3 to ask for access.facebook_sam3_2.txtAdded+107