We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
=> saving checkpoint .. Traceback (most recent call last): File "train_predictor.py", line 338, in model.save_checkpoint(model_dictionary, is_best) File "C:\Users\Dell\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.5\model\model.py", line 103, in save_checkpoint torch.save(state, checkpoint) File "C:\Users\Dell\AppData\Roaming\Python\Python35\site-packages\torch\serialization.py", line 209, in save return _with_file_like(f, "wb", lambda f: _save(obj, f, pickle_module, pickle_protocol)) File "C:\Users\Dell\AppData\Roaming\Python\Python35\site-packages\torch\serialization.py", line 132, in _with_file_like f = open(f, mode) TypeError: invalid file: WindowsPath('save/ecg/checkpoint/chfdb_chf13_45590.pth')
C:\Users\Dell\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.5>
The text was updated successfully, but these errors were encountered:
The source code is tested on Ubuntu 16.04. You may have to change a few lines to run the source code on Windows.
Sorry, something went wrong.
Ok. Thanks.
@chickenbestlover What issues should be noted when to run the source code on Windows?
@yunzhonghe2017 Can you share the solution you found? Thank you!
i changed the savedir in train_predictor.py and model.py as follow: @mangoocmt
No branches or pull requests
=> saving checkpoint ..
Traceback (most recent call last):
File "train_predictor.py", line 338, in
model.save_checkpoint(model_dictionary, is_best)
File "C:\Users\Dell\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.5\model\model.py", line 103, in save_checkpoint
torch.save(state, checkpoint)
File "C:\Users\Dell\AppData\Roaming\Python\Python35\site-packages\torch\serialization.py", line 209, in save
return _with_file_like(f, "wb", lambda f: _save(obj, f, pickle_module, pickle_protocol))
File "C:\Users\Dell\AppData\Roaming\Python\Python35\site-packages\torch\serialization.py", line 132, in _with_file_like
f = open(f, mode)
TypeError: invalid file: WindowsPath('save/ecg/checkpoint/chfdb_chf13_45590.pth')
C:\Users\Dell\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.5>
The text was updated successfully, but these errors were encountered: