-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead. #142
Comments
+1 I'm having the same issue while trying to run with
|
@cipherpodliq1 @isrvo Can you confirm that you have the fomm model saved under |
@Ghassen-Chaabouni Yes I do, it is still compressed but is present under |
Same here , vox-adv-cpk.pth is the file that I have |
@isrvo @cipherpodliq1 I think I will need more information to debug this issue.
|
me, too
2.0.1+cu118 |
On my side um running dot with GUI on Windows.
I've redownloaded all files as of today. |
@isrvo Where you able to fix this issue? I am currently running into it with the FOMM model. |
@kbeeperez @isrvo I think you are running custom scripts. A similar issue was addressed in this PR #137 . It seems that you are getting an error when trying to download a model. You can instead manually download the models and pass the local url. Like I did here |
@isrvo Did you manage to get pass this error? Did you just redownloaded the models again or you did something else? |
@Ghassen-Chaabouni I've still not managed to dry-run it with fomm models. I'll retry-it later today with the following instructions mentioned above. |
@Ghassen-Chaabouni sorry for the late answer. I've still received the same Download error:
I would like to mention that I have all the necessary dependencies to work with CUDA and Nvidia as well. |
It seems that you aren't able to download some models. Can you try this version of dot from this link? I downloaded the models in it and updated a script to use them. Let me know if this fixed your issue. |
Traceback (most recent call last):
File "torch\serialization.py", line 354, in _check_seekable
f.seek(f.tell())
AttributeError: 'NoneType' object has no attribute 'seek'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dot_main_.py", line 69, in run
File "dot\dot.py", line 131, in generate
File "dot\commons\model_option.py", line 184, in generate_from_camera
File "dot\fomm\option.py", line 93, in create_model
File "dot\fomm\predictor_local.py", line 70, in init
File "dot\fomm\predictor_local.py", line 94, in load_checkpoints
File "torch\serialization.py", line 791, in load
with _open_file_like(f, 'rb') as opened_file:
File "torch\serialization.py", line 276, in _open_file_like
return _open_buffer_reader(name_or_buffer)
File "torch\serialization.py", line 261, in init
_check_seekable(buffer)
File "torch\serialization.py", line 357, in _check_seekable
raise_err_msg(["seek", "tell"], e)
File "torch\serialization.py", line 350, in raise_err_msg
raise type(e)(msg)
AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.
Does it have something to do with the image format that I am trying to load? (jpg) , or maybe missing some of the requirments? (I downloaded the requirments .txt)
The text was updated successfully, but these errors were encountered: