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

Could you please provide more config like 'psp' and other 'initmodel' ? #14

Open
dywu98 opened this issue Jun 23, 2021 · 0 comments
Open

Comments

@dywu98
Copy link

dywu98 commented Jun 23, 2021

I noticed that there are only config files for psp18. and when I run python tool/train_with_flow.py, I got this:

-- Process 1 terminated with the following error:
Traceback (most recent call last):
File "/opt/conda/envs/open-mmlab/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap
fn(i, *args)
File "/home/dancer/ETC-Real-time-Per-frame-Semantic-video-segmentation/tool/train_with_flow.py", line 146, in main_worker
BatchNorm=BatchNorm, flow=True)
File "/home/dancer/ETC-Real-time-Per-frame-Semantic-video-segmentation/model/pspnet_18.py", line 48, in init
resnet = models.resnet18(deep_base=False, pretrained=pretrained)
File "/home/dancer/ETC-Real-time-Per-frame-Semantic-video-segmentation/model/resnet.py", line 176, in resnet18
model.load_state_dict(torch.load(model_path), strict=False)
File "/opt/conda/envs/open-mmlab/lib/python3.7/site-packages/torch/serialization.py", line 571, in load
with _open_file_like(f, 'rb') as opened_file:
File "/opt/conda/envs/open-mmlab/lib/python3.7/site-packages/torch/serialization.py", line 229, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/opt/conda/envs/open-mmlab/lib/python3.7/site-packages/torch/serialization.py", line 210, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './initmodel/resnet18.pth'

So, could you please provide more corresponding initmodels and config files? Thanks in advance!

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