You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Can I use the SAHI method in an offline environment? When I use predict() and AutoDetectionModel.from_pretrained() offline, I encounter the following error
TimeoutError Traceback (most recent call last)
File c:\Users\Anchor\anaconda3\envs\pytorch_v\lib\site-packages\urllib3\connection.py:174, in HTTPConnection._new_conn(self)
173 try:
--> 174 conn = connection.create_connection(
175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
178 except SocketTimeout:
File c:\Users\Anchor\anaconda3\envs\pytorch_v\lib\site-packages\urllib3\util\connection.py:95, in create_connection(address, timeout, source_address, socket_options)
94 if err is not None:
---> 95 raise err
97 raise socket.error("getaddrinfo returns an empty list")
File c:\Users\Anchor\anaconda3\envs\pytorch_v\lib\site-packages\urllib3\util\connection.py:85, in create_connection(address, timeout, source_address, socket_options)
84 sock.bind(source_address)
---> 85 sock.connect(sa)
86 return sock
TimeoutError: [WinError 10060]
During handling of the above exception, another exception occurred:
ConnectTimeoutError Traceback (most recent call last)
File c:\Users\Anchor\anaconda3\envs\pytorch_v\lib\site-packages\urllib3\connectionpool.py:715, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
...
30 self.set_model(model)
31 except Exception as e:
---> 32 raise TypeError("model_path is not a valid yolov5 model path: ", e)
TypeError: ('model_path is not a valid yolov5 model path: ', ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/yolov5s.pt/tree/main?recursive=True&expand=False (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000025915A4E380>, 'Connection to huggingface.co timed out. (connect timeout=None)'))"), '(Request ID: 9a2173d6-54fc-40b0-85b7-bc7bef61dcb5)'))
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...```
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Can I use the SAHI method in an offline environment? When I use predict() and AutoDetectionModel.from_pretrained() offline, I encounter the following error
Beta Was this translation helpful? Give feedback.
All reactions