Replies: 1 comment 1 reply
-
Hi @Yangtting, did you check whether this file exits? 'C:\Bishe\Modelsave\SegResNetmodel_save\5\best_dice_metric_model.pth' |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After I update the verison of monai to 1.2.0, I met an error when I import monai. Here is the error, it showed a file which I used before, it is so strange to occur here even though I restart kernal and my computer.
import monai
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\xgboost\untitled4.py", line 8, in
import monai
File "C:\ProgramData\Anaconda3\lib\site-packages\monai_init_.py", line 46, in
load_submodules(sys.modules[name], True, exclude_pattern=excludes)
File "C:\ProgramData\Anaconda3\lib\site-packages\monai\utils\module.py", line 187, in load_submodules
mod = import_module(name)
File "C:\ProgramData\Anaconda3\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\ProgramData\Anaconda3\lib\site-packages\monai\networks\nets\canshu.py", line 41, in
model.load_state_dict(torch.load(
File "C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\torch\serialization.py", line 594, in load
with _open_file_like(f, 'rb') as opened_file:
File "C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\torch\serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\torch\serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Bishe\Modelsave\SegResNetmodel_save\5\best_dice_metric_model.pth'
Beta Was this translation helpful? Give feedback.
All reactions