Skip to content
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

When I run case_run.py, No such file or directory: 'DL_run/height/check_pt_senet_100m/experiment_1/checkpoint.pth.tar' #11

Open
liuqiqi546 opened this issue Apr 19, 2024 · 0 comments

Comments

@liuqiqi546
Copy link

Traceback (most recent call last):
File "/home/lzq/project/SHAFTS/example/case_run.py", line 175, in
pred_height_from_tiff_DL_patch(
File "/home/lzq/project/SHAFTS/example/shafts/inference.py", line 828, in pred_height_from_tiff_DL_patch
est_model = model_SEResNet_aux(in_plane=in_plane, input_channels=6, input_size=patch_size[0],
File "/home/lzq/project/SHAFTS/example/shafts/DL_model.py", line 1187, in model_SEResNet_aux
model = BuildingNet_aux(input_channels=input_channels, input_size=input_size, aux_input_size=aux_input_size, backbone="SENet", in_plane=in_plane,
File "/home/lzq/project/SHAFTS/example/shafts/DL_model.py", line 559, in init
self.load_pretrained_model(trained_record=kwargs["trained_record"])
File "/home/lzq/project/SHAFTS/example/shafts/DL_model.py", line 596, in load_pretrained_model
checkpoint = torch.load(trained_record, map_location=torch.device('cpu'))
File "/home/lzq/anaconda3/lib/python3.10/site-packages/torch/serialization.py", line 998, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/lzq/anaconda3/lib/python3.10/site-packages/torch/serialization.py", line 445, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/lzq/anaconda3/lib/python3.10/site-packages/torch/serialization.py", line 426, in init
super().init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'DL_run/height/check_pt_senet_100m/experiment_1/checkpoint.pth.tar'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant