hi @iduta
Thanks for sharing the code.
When I run the test.py file, I got the following error. Please help me to solve this error.
`[2020-07-23 17:07:58,745 INFO test.py line 62 23777] => creating model ...
[2020-07-23 17:07:58,745 INFO test.py line 63 23777] Classes: 150
Totally 1 samples in val set.
Starting Checking image&label pair val list...
Checking image&label pair val list done!
Load pretrained model: exp/PyConvADE20kModels/ade20k_pyconvresnet152_pyconvsegnet.pth
Traceback (most recent call last):
File "test.py", line 269, in
main()
File "test.py", line 95, in main
backbone_net=args.backbone_net)
File "/home/pyconvsegnet/model/pyconvsegnet.py", line 163, in init
convert_bn=BatchNorm)
File "/home/pyconvsegnet/model/build_backbone_layers.py", line 62, in build_backbone_layers
backbone.load_state_dict(torch.load(pretrained), strict=True)
File "/home/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 847, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for PyConvResNet:
Missing key(s) in state_dict: "conv1.weight", "bn1.weight", "bn1.bias", "bn1.running_mean", "bn1.running_var", "fc.weight", "fc.bias".
`