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
Getting the following error when deploying a new sense version:
Downloading model from Google Drive ID '1pC9WX7Ol2cy4ERAcLQ-a2Dd04d91vJxj' to '/Users/tylerganter/source/theta/eta/eta/models/ssd-resnet50-fpn-coco.pb'
print(os.path.exists(model_path))
Uncaught exception
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/tylerganter/source/theta/eta/eta/core/models.py", line 180, in download_model
model.manager.download_model(model_path, force=force)
File "/Users/tylerganter/source/theta/eta/eta/core/models.py", line 1018, in download_model
self._download_model(model_path)
File "/Users/tylerganter/source/theta/eta/eta/core/models.py", line 1074, in _download_model
etaw.download_google_drive_file(gid, path=model_path)
File "/Users/tylerganter/source/theta/eta/eta/core/web.py", line 69, in download_google_drive_file
return sess.write(path, fid) if path else sess.get(fid)
File "/Users/tylerganter/source/theta/eta/eta/core/web.py", line 155, in write
return WebSession.write(self, path, self.BASE_URL, params={"id": fid})
File "/Users/tylerganter/source/theta/eta/eta/core/web.py", line 120, in write
r = self._get_streaming_response(url, params=params)
File "/Users/tylerganter/source/theta/eta/eta/core/web.py", line 158, in _get_streaming_response
r = WebSession._get_streaming_response(self, url, params=params)
File "/Users/tylerganter/source/theta/eta/eta/core/web.py", line 136, in _get_streaming_response
raise WebSessionError("Unable to get '%s'" % url)
eta.core.web.WebSessionError: Unable to get 'https://drive.google.com/uc?export=download'
FYI the reason that eta.core.web.download_google_drive_file is not a straightforward implementation is that Google Drive shows annoying "large file" warnings when downloading large files that must be handled. See this SO question for the inspiration of my original implementation of this:
Getting the following error when deploying a new sense version:
You can replicate the bug with the following:
Note that this is only happening for certain models. (I think ones that have been downloaded a lot recently)
It seems to be an issue with too many requests to download the file? I found this article here:
https://www.ghacks.net/2017/04/14/fix-google-drive-sorry-you-cant-view-or-download-this-file-error/
and a few others with similar suggestion to replace
with
But as @brimoor noticed, this downloads something else that is not the correct file.
The text was updated successfully, but these errors were encountered: