facebookresearch / facebookresearch/sam-3d-objects

Error in call to target 'moge.model.v1.MoGeModel.from_pretrained

Open
#96 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.4k
Forks
878
PR merge metrics
No merged PRs in 30d

Description

---------------------------------------------------------------------------
ConnectionResetError Traceback (most recent call last)
File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:787, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
786 # Make the request on the HTTPConnection object
--> 787 response = self._make_request(
788 conn,
789 method,
790 url,
791 timeout=timeout_obj,
792 body=body,
793 headers=headers,
794 chunked=chunked,
795 retries=retries,
796 response_conn=response_conn,
797 preload_content=preload_content,
798 decode_content=decode_content,
799 **response_kw,
800 )
802 # Everything went great!

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:488, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
487 new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
--> 488 raise new_e
490 # conn.request() calls http.client.*.request, not the method in
491 # urllib3.request. It also calls makefile (recv) on the socket.

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:464, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
463 try:
--> 464 self._validate_conn(conn)
465 except (SocketTimeout, BaseSSLError) as e:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:1093, in HTTPSConnectionPool._validate_conn(self, conn)
1092 if conn.is_closed:
-> 1093 conn.connect()
1095 # TODO revise this, see https://github.com/urllib3/urllib3/issues/2791

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connection.py:790, in HTTPSConnection.connect(self)
788 server_hostname_rm_dot = server_hostname.rstrip(".")
--> 790 sock_and_verified = _ssl_wrap_socket_and_match_hostname(
791 sock=sock,
792 cert_reqs=self.cert_reqs,
793 ssl_version=self.ssl_version,
794 ssl_minimum_version=self.ssl_minimum_version,
795 ssl_maximum_version=self.ssl_maximum_version,
796 ca_certs=self.ca_certs,
797 ca_cert_dir=self.ca_cert_dir,
798 ca_cert_data=self.ca_cert_data,
799 cert_file=self.cert_file,
800 key_file=self.key_file,
801 key_password=self.key_password,
802 server_hostname=server_hostname_rm_dot,
803 ssl_context=self.ssl_context,
804 tls_in_tls=tls_in_tls,
805 assert_hostname=self.assert_hostname,
806 assert_fingerprint=self.assert_fingerprint,
807 )
808 self.sock = sock_and_verified.socket

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connection.py:969, in _ssl_wrap_socket_and_match_hostname(sock, cert_reqs, ssl_version, ssl_minimum_version, ssl_maximum_version, cert_file, key_file, key_password, ca_certs, ca_cert_dir, ca_cert_data, assert_hostname, assert_fingerprint, server_hostname, ssl_context, tls_in_tls)
967 server_hostname = normalized
--> 969 ssl_sock = ssl_wrap_socket(
970 sock=sock,
971 keyfile=key_file,
972 certfile=cert_file,
973 key_password=key_password,
974 ca_certs=ca_certs,
975 ca_cert_dir=ca_cert_dir,
976 ca_cert_data=ca_cert_data,
977 server_hostname=server_hostname,
978 ssl_context=context,
979 tls_in_tls=tls_in_tls,
980 )
982 try:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/util/ssl_.py:480, in ssl_wrap_socket(sock, keyfile, certfile, cert_reqs, ca_certs, server_hostname, ssl_version, ciphers, ssl_context, ca_cert_dir, key_password, ca_cert_data, tls_in_tls)
478 context.set_alpn_protocols(ALPN_PROTOCOLS)
--> 480 ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
481 return ssl_sock

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/util/ssl_.py:524, in _ssl_wrap_socket_impl(sock, ssl_context, tls_in_tls, server_hostname)
522 return SSLTransport(sock, ssl_context, server_hostname)
--> 524 return ssl_context.wrap_socket(sock, server_hostname=server_hostname)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/ssl.py:517, in SSLContext.wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, session)
511 def wrap_socket(self, sock, server_side=False,
512 do_handshake_on_connect=True,
513 suppress_ragged_eofs=True,
514 server_hostname=None, session=None):
515 # SSLSocket class handles server_hostname encoding before it calls
516 # ctx._wrap_socket()
--> 517 return self.sslsocket_class._create(
518 sock=sock,
519 server_side=server_side,
520 do_handshake_on_connect=do_handshake_on_connect,
521 suppress_ragged_eofs=suppress_ragged_eofs,
522 server_hostname=server_hostname,
523 context=self,
524 session=session
525 )

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/ssl.py:1075, in SSLSocket._create(cls, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, context, session)
1074 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets")
-> 1075 self.do_handshake()
1076 except (OSError, ValueError):

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/ssl.py:1346, in SSLSocket.do_handshake(self, block)
1345 self.settimeout(None)
-> 1346 self._sslobj.do_handshake()
1347 finally:

ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

ProtocolError Traceback (most recent call last)
File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/requests/adapters.py:644, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
643 try:
--> 644 resp = conn.urlopen(
645 method=request.method,
646 url=url,
647 body=request.body,
648 headers=request.headers,
649 redirect=False,
650 assert_same_host=False,
651 preload_content=False,
652 decode_content=False,
653 retries=self.max_retries,
654 timeout=timeout,
655 chunked=chunked,
656 )
658 except (ProtocolError, OSError) as err:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:841, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
839 new_e = ProtocolError("Connection aborted.", new_e)
--> 841 retries = retries.increment(
842 method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
843 )
844 retries.sleep()

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/util/retry.py:474, in Retry.increment(self, method, url, response, error, _pool, _stacktrace)
473 if read is False or method is None or not self._is_method_retryable(method):
--> 474 raise reraise(type(error), error, _stacktrace)
475 elif read is not None:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/util/util.py:38, in reraise(tp, value, tb)
37 if value.__traceback__ is not tb:
---> 38 raise value.with_traceback(tb)
39 raise value

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:787, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
786 # Make the request on the HTTPConnection object
--> 787 response = self._make_request(
788 conn,
789 method,
790 url,
791 timeout=timeout_obj,
792 body=body,
793 headers=headers,
794 chunked=chunked,
795 retries=retries,
796 response_conn=response_conn,
797 preload_content=preload_content,
798 decode_content=decode_content,
799 **response_kw,
800 )
802 # Everything went great!

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:488, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
487 new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
--> 488 raise new_e
490 # conn.request() calls http.client.*.request, not the method in
491 # urllib3.request. It also calls makefile (recv) on the socket.

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:464, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
463 try:
--> 464 self._validate_conn(conn)
465 except (SocketTimeout, BaseSSLError) as e:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connectionpool.py:1093, in HTTPSConnectionPool._validate_conn(self, conn)
1092 if conn.is_closed:
-> 1093 conn.connect()
1095 # TODO revise this, see https://github.com/urllib3/urllib3/issues/2791

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connection.py:790, in HTTPSConnection.connect(self)
788 server_hostname_rm_dot = server_hostname.rstrip(".")
--> 790 sock_and_verified = _ssl_wrap_socket_and_match_hostname(
791 sock=sock,
792 cert_reqs=self.cert_reqs,
793 ssl_version=self.ssl_version,
794 ssl_minimum_version=self.ssl_minimum_version,
795 ssl_maximum_version=self.ssl_maximum_version,
796 ca_certs=self.ca_certs,
797 ca_cert_dir=self.ca_cert_dir,
798 ca_cert_data=self.ca_cert_data,
799 cert_file=self.cert_file,
800 key_file=self.key_file,
801 key_password=self.key_password,
802 server_hostname=server_hostname_rm_dot,
803 ssl_context=self.ssl_context,
804 tls_in_tls=tls_in_tls,
805 assert_hostname=self.assert_hostname,
806 assert_fingerprint=self.assert_fingerprint,
807 )
808 self.sock = sock_and_verified.socket

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/connection.py:969, in _ssl_wrap_socket_and_match_hostname(sock, cert_reqs, ssl_version, ssl_minimum_version, ssl_maximum_version, cert_file, key_file, key_password, ca_certs, ca_cert_dir, ca_cert_data, assert_hostname, assert_fingerprint, server_hostname, ssl_context, tls_in_tls)
967 server_hostname = normalized
--> 969 ssl_sock = ssl_wrap_socket(
970 sock=sock,
971 keyfile=key_file,
972 certfile=cert_file,
973 key_password=key_password,
974 ca_certs=ca_certs,
975 ca_cert_dir=ca_cert_dir,
976 ca_cert_data=ca_cert_data,
977 server_hostname=server_hostname,
978 ssl_context=context,
979 tls_in_tls=tls_in_tls,
980 )
982 try:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/util/ssl_.py:480, in ssl_wrap_socket(sock, keyfile, certfile, cert_reqs, ca_certs, server_hostname, ssl_version, ciphers, ssl_context, ca_cert_dir, key_password, ca_cert_data, tls_in_tls)
478 context.set_alpn_protocols(ALPN_PROTOCOLS)
--> 480 ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
481 return ssl_sock

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/urllib3/util/ssl_.py:524, in _ssl_wrap_socket_impl(sock, ssl_context, tls_in_tls, server_hostname)
522 return SSLTransport(sock, ssl_context, server_hostname)
--> 524 return ssl_context.wrap_socket(sock, server_hostname=server_hostname)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/ssl.py:517, in SSLContext.wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, session)
511 def wrap_socket(self, sock, server_side=False,
512 do_handshake_on_connect=True,
513 suppress_ragged_eofs=True,
514 server_hostname=None, session=None):
515 # SSLSocket class handles server_hostname encoding before it calls
516 # ctx._wrap_socket()
--> 517 return self.sslsocket_class._create(
518 sock=sock,
519 server_side=server_side,
520 do_handshake_on_connect=do_handshake_on_connect,
521 suppress_ragged_eofs=suppress_ragged_eofs,
522 server_hostname=server_hostname,
523 context=self,
524 session=session
525 )

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/ssl.py:1075, in SSLSocket._create(cls, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, context, session)
1074 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets")
-> 1075 self.do_handshake()
1076 except (OSError, ValueError):

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/ssl.py:1346, in SSLSocket.do_handshake(self, block)
1345 self.settimeout(None)
-> 1346 self._sslobj.do_handshake()
1347 finally:

ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

ConnectionError Traceback (most recent call last)
File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/file_download.py:1543, in _get_metadata_or_catch_error(repo_id, filename, repo_type, revision, endpoint, proxies, etag_timeout, headers, token, local_files_only, relative_filename, storage_folder)
1542 try:
-> 1543 metadata = get_hf_file_metadata(
1544 url=url, proxies=proxies, timeout=etag_timeout, headers=headers, token=token, endpoint=endpoint
1545 )
1546 except EntryNotFoundError as http_error:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py:114, in validate_hf_hub_args.._inner_fn(*args, **kwargs)
112 kwargs = smoothly_deprecate_use_auth_token(fn_name=fn.__name__, has_token=has_token, kwargs=kwargs)
--> 114 return fn(*args, **kwargs)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/file_download.py:1460, in get_hf_file_metadata(url, token, proxies, timeout, library_name, library_version, user_agent, headers, endpoint)
1459 # Retrieve metadata
-> 1460 r = _request_wrapper(
1461 method="HEAD",
1462 url=url,
1463 headers=hf_headers,
1464 allow_redirects=False,
1465 follow_relative_redirects=True,
1466 proxies=proxies,
1467 timeout=timeout,
1468 )
1469 hf_raise_for_status(r)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/file_download.py:283, in _request_wrapper(method, url, follow_relative_redirects, **params)
282 if follow_relative_redirects:
--> 283 response = _request_wrapper(
284 method=method,
285 url=url,
286 follow_relative_redirects=False,
287 **params,
288 )
290 # If redirection, we redirect only relative paths.
291 # This is useful in case of a renamed repository.

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/file_download.py:306, in _request_wrapper(method, url, follow_relative_redirects, **params)
305 # Perform request and return if status_code is not in the retry list.
--> 306 response = http_backoff(method=method, url=url, **params)
307 hf_raise_for_status(response)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/utils/_http.py:325, in http_backoff(method, url, max_retries, base_wait_time, max_wait_time, retry_on_exceptions, retry_on_status_codes, **kwargs)
324 if nb_tries > max_retries:
--> 325 raise err
327 # Sleep for X seconds

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/utils/_http.py:306, in http_backoff(method, url, max_retries, base_wait_time, max_wait_time, retry_on_exceptions, retry_on_status_codes, **kwargs)
305 # Perform request and return if status_code is not in the retry list.
--> 306 response = session.request(method=method, url=url, **kwargs)
307 if response.status_code not in retry_on_status_codes:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/requests/sessions.py:589, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
588 send_kwargs.update(settings)
--> 589 resp = self.send(prep, **send_kwargs)
591 return resp

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/requests/sessions.py:703, in Session.send(self, request, **kwargs)
702 # Send the request
--> 703 r = adapter.send(request, **kwargs)
705 # Total elapsed time of the request (approximately)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/utils/_http.py:95, in UniqueRequestIdAdapter.send(self, request, *args, **kwargs)
94 try:
---> 95 return super().send(request, *args, **kwargs)
96 except requests.RequestException as e:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/requests/adapters.py:659, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
658 except (ProtocolError, OSError) as err:
--> 659 raise ConnectionError(err, request=request)
661 except MaxRetryError as e:

ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')), '(Request ID: 1d822508-215b-4467-b10e-a5bea68633f9)')

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

LocalEntryNotFoundError Traceback (most recent call last)
File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py:92, in _call_target(_target_, _partial_, args, kwargs, full_key)
91 try:
---> 92 return _target_(*args, **kwargs)
93 except Exception as e:

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/moge/model/v1.py:224, in MoGeModel.from_pretrained(cls, pretrained_model_name_or_path, model_kwargs, **hf_kwargs)
223 else:
--> 224 cached_checkpoint_path = hf_hub_download(
225 repo_id=pretrained_model_name_or_path,
226 repo_type="model",
227 filename="model.pt",
228 **hf_kwargs
229 )
230 checkpoint = torch.load(cached_checkpoint_path, map_location='cpu', weights_only=True)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py:114, in validate_hf_hub_args.._inner_fn(*args, **kwargs)
112 kwargs = smoothly_deprecate_use_auth_token(fn_name=fn.__name__, has_token=has_token, kwargs=kwargs)
--> 114 return fn(*args, **kwargs)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/file_download.py:1007, in hf_hub_download(repo_id, filename, subfolder, repo_type, revision, library_name, library_version, cache_dir, local_dir, user_agent, force_download, proxies, etag_timeout, token, local_files_only, headers, endpoint, resume_download, force_filename, local_dir_use_symlinks)
1006 else:
-> 1007 return _hf_hub_download_to_cache_dir(
1008 # Destination
1009 cache_dir=cache_dir,
1010 # File info
1011 repo_id=repo_id,
1012 filename=filename,
1013 repo_type=repo_type,
1014 revision=revision,
1015 # HTTP info
1016 endpoint=endpoint,
1017 etag_timeout=etag_timeout,
1018 headers=hf_headers,
1019 proxies=proxies,
1020 token=token,
1021 # Additional options
1022 local_files_only=local_files_only,
1023 force_download=force_download,
1024 )

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/file_download.py:1114, in _hf_hub_download_to_cache_dir(cache_dir, repo_id, filename, repo_type, revision, endpoint, etag_timeout, headers, proxies, token, local_files_only, force_download)
1113 # Otherwise, raise appropriate error
-> 1114 _raise_on_head_call_error(head_call_error, force_download, local_files_only)
1116 # From now on, etag, commit_hash, url and size are not None.

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/huggingface_hub/file_download.py:1658, in _raise_on_head_call_error(head_call_error, force_download, local_files_only)
1656 else:
1657 # Otherwise: most likely a connection issue or Hub downtime => let's warn the user
-> 1658 raise LocalEntryNotFoundError(
1659 "An error happened while trying to locate the file on the Hub and we cannot find the requested files"
1660 " in the local cache. Please check your connection and try again or make sure your Internet connection"
1661 " is on."
1662 ) from head_call_error

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:

InstantiationException Traceback (most recent call last)
Cell In[3], line 4
2 TAG = "hf"
3 config_path = f"{PATH}/../checkpoints/{TAG}/pipeline.yaml"
----> 4 inference = Inference(config_path, compile=False)

File ~/yuanjinhao/sam-3d-objects/notebook/inference.py:92, in Inference.__init__(self, config_file, compile)
90 config.workspace_dir = os.path.dirname(config_file)
91 check_hydra_safety(config, WHITELIST_FILTERS, BLACKLIST_FILTERS)
---> 92 self._pipeline: InferencePipelinePointMap = instantiate(config)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py:226, in instantiate(config, *args, **kwargs)
223 _convert_ = config.pop(_Keys.CONVERT, ConvertMode.NONE)
224 _partial_ = config.pop(_Keys.PARTIAL, False)
--> 226 return instantiate_node(
227 config, *args, recursive=_recursive_, convert=_convert_, partial=_partial_
228 )
229 elif OmegaConf.is_list(config):
230 # Finalize config (convert targets to strings, merge with kwargs)
231 config_copy = copy.deepcopy(config)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py:342, in instantiate_node(node, convert, recursive, partial, *args)
340 value = node[key]
341 if recursive:
--> 342 value = instantiate_node(
343 value, convert=convert, recursive=recursive
344 )
345 kwargs[key] = _convert_node(value, convert)
347 return _call_target(_target_, partial, args, kwargs, full_key)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py:342, in instantiate_node(node, convert, recursive, partial, *args)
340 value = node[key]
341 if recursive:
--> 342 value = instantiate_node(
343 value, convert=convert, recursive=recursive
344 )
345 kwargs[key] = _convert_node(value, convert)
347 return _call_target(_target_, partial, args, kwargs, full_key)

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py:347, in instantiate_node(node, convert, recursive, partial, *args)
342 value = instantiate_node(
343 value, convert=convert, recursive=recursive
344 )
345 kwargs[key] = _convert_node(value, convert)
--> 347 return _call_target(_target_, partial, args, kwargs, full_key)
348 else:
349 # If ALL or PARTIAL non structured or OBJECT non structured,
350 # instantiate in dict and resolve interpolations eagerly.
351 if convert == ConvertMode.ALL or (
352 convert in (ConvertMode.PARTIAL, ConvertMode.OBJECT)
353 and node._metadata.object_type in (None, dict)
354 ):

File ~/anaconda3/envs/sam3d-objects/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py:97, in _call_target(_target_, _partial_, args, kwargs, full_key)
95 if full_key:
96 msg += f"\nfull_key: {full_key}"
---> 97 raise InstantiationException(msg) from e

InstantiationException: Error in call to target 'moge.model.v1.MoGeModel.from_pretrained':
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.')
full_key: depth_model.model

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.