Error while exporting rave #57
Unanswered
agustinissidoro
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hi :) Your last run version has no checkpoint in it ! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After training rave I try to export the model and get the following. It happens both in a Google Colab environment and in a Anaconda environmente. Does any one know what is going on? Thank you very much!
(rave) C:\Users\agustin\RAVE>python export_rave.py --run /runs/kendrick/rave --cached false --name kendrick
[1470.26] exporting model
[9597.60] loading model from checkpoint
[9597.60] using None
Traceback (most recent call last):
File "C:\Users\agustin\anaconda3\envs\rave\lib\site-packages\torch\serialization.py", line 309, 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 "C:\Users\agustin\RAVE\export_rave.py", line 204, in
model = RAVE.load_from_checkpoint(RUN, strict=False).eval()
File "C:\Users\agustin\anaconda3\envs\rave\lib\site-packages\pytorch_lightning\core\saving.py", line 139, in load_from_checkpoint
checkpoint = pl_load(checkpoint_path, map_location=lambda storage, loc: storage)
File "C:\Users\agustin\anaconda3\envs\rave\lib\site-packages\pytorch_lightning\utilities\cloud_io.py", line 42, in load
return torch.load(path_or_url, map_location=map_location)
File "C:\Users\agustin\anaconda3\envs\rave\lib\site-packages\torch\serialization.py", line 699, in load
with _open_file_like(f, 'rb') as opened_file:
File "C:\Users\agustin\anaconda3\envs\rave\lib\site-packages\torch\serialization.py", line 236, in _open_file_like
return _open_buffer_reader(name_or_buffer)
File "C:\Users\agustin\anaconda3\envs\rave\lib\site-packages\torch\serialization.py", line 221, in init
_check_seekable(buffer)
File "C:\Users\agustin\anaconda3\envs\rave\lib\site-packages\torch\serialization.py", line 312, in _check_seekable
raise_err_msg(["seek", "tell"], e)
File "C:\Users\agustin\anaconda3\envs\rave\lib\site-packages\torch\serialization.py", line 305, 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.
Beta Was this translation helpful? Give feedback.
All reactions