Have this issue when I test the model zoo for small and medium with given path. Can you help me to check?
Traceback (most recent call last):
File "main.py", line 459, in
main(args)
File "main.py", line 376, in main
model_without_ddp.load_state_dict(checkpoint)
File "/home/-/anaconda3/envs/dpt/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1051, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for DeformablePatchTransformer:
Unexpected key(s) in state_dict: "block1.2.norm1.weight", "block1.2.norm1.bias", "block1.2.attn.q.weight", "block1.2.attn.q.bias", "block1.2.attn.kv.weight", "block1.2.attn.kv.bias", "block1.2.attn.proj.weight", "block1.2.attn.proj.bias", "block1.2.attn.sr.weight", "block1.2.attn.sr.bias", "block1.2.attn.norm.weight", "block1.2.attn.norm.bias", "block1.2.norm2.weight", "block1.2.norm2.bias", "block1.2.mlp.fc1.weight", "block1.2.mlp.fc1.bias", "block1.2.mlp.fc2.weight", "block1.2.mlp.fc2.bias", "block2.2.norm1.weight", "block2.2.norm1.bias", "block2.2.attn.q.weight", "block2.2.attn.q.bias", "block2.2.attn.kv.weight", "block2.2.attn.kv.bias", "block2.2.attn.proj.weight", "block2.2.attn.proj.bias", "block2.2.attn.sr.weight", "block2.2.attn.sr.bias", "block2.2.attn.norm.weight", "block2.2.attn.norm.bias", "block2.2.norm2.weight", "block2.2.norm2.bias", "block2.2.mlp.fc1.weight", "block2.2.mlp.fc1.bias", "block2.2.mlp.fc2.weight", "block2.2.mlp.fc2.bias", "block2.3.norm1.weight", "block2.3.norm1.bias", "block2.3.attn.q.weight", "block2.3.attn.q.bias", "block2.3.attn.kv.weight", "block2.3.attn.kv.bias", "block2.3.attn.proj.weight", "block2.3.attn.proj.bias", "block2.3.attn.sr.weight", "block2.3.attn.sr.bias", "block2.3.attn.norm.weight", "block2.3.attn.norm.bias", "block2.3.norm2.weight", "block2.3.norm2.bias", "block2.3.mlp.fc1.weight", "block2.3.mlp.fc1.bias", "block2.3.mlp.fc2.weight", "block2.3.mlp.fc2.bias", "block3.2.norm1.weight", "block3.2.norm1.bias", "block3.2.attn.q.weight", "block3.2.attn.q.bias", "block3.2.attn.kv.weight", "block3.2.attn.kv.bias", "block3.2.attn.proj.weight", "block3.2.attn.proj.bias", "block3.2.attn.sr.weight", "block3.2.attn.sr.bias", "block3.2.attn.norm.weight", "block3.2.attn.norm.bias", "block3.2.norm2.weight", "block3.2.norm2.bias", "block3.2.mlp.fc1.weight", "block3.2.mlp.fc1.bias", "block3.2.mlp.fc2.weight", "block3.2.mlp.fc2.bias", "block3.3.norm1.weight", "block3.3.norm1.bias", "block3.3.attn.q.weight", "block3.3.attn.q.bias", "block3.3.attn.kv.weight", "block3.3.attn.kv.bias", "block3.3.attn.proj.weight", "block3.3.attn.proj.bias", "block3.3.attn.sr.weight", "block3.3.attn.sr.bias", "block3.3.attn.norm.weight", "block3.3.attn.norm.bias", "block3.3.norm2.weight", "block3.3.norm2.bias", "block3.3.mlp.fc1.weight", "block3.3.mlp.fc1.bias", "block3.3.mlp.fc2.weight", "block3.3.mlp.fc2.bias", "block3.4.norm1.weight", "block3.4.norm1.bias", "block3.4.attn.q.weight", "block3.4.attn.q.bias", "block3.4.attn.kv.weight", "block3.4.attn.kv.bias", "block3.4.attn.proj.weight", "block3.4.attn.proj.bias", "block3.4.attn.sr.weight", "block3.4.attn.sr.bias", "block3.4.attn.norm.weight", "block3.4.attn.norm.bias", "block3.4.norm2.weight", "block3.4.norm2.bias", "block3.4.mlp.fc1.weight", "block3.4.mlp.fc1.bias", "block3.4.mlp.fc2.weight", "block3.4.mlp.fc2.bias", "block3.5.norm1.weight", "block3.5.norm1.bias", "block3.5.attn.q.weight", "block3.5.attn.q.bias", "block3.5.attn.kv.weight", "block3.5.attn.kv.bias", "block3.5.attn.proj.weight", "block3.5.attn.proj.bias", "block3.5.attn.sr.weight", "block3.5.attn.sr.bias", "block3.5.attn.norm.weight", "block3.5.attn.norm.bias", "block3.5.norm2.weight", "block3.5.norm2.bias", "block3.5.mlp.fc1.weight", "block3.5.mlp.fc1.bias", "block3.5.mlp.fc2.weight", "block3.5.mlp.fc2.bias", "block3.6.norm1.weight", "block3.6.norm1.bias", "block3.6.attn.q.weight", "block3.6.attn.q.bias", "block3.6.attn.kv.weight", "block3.6.attn.kv.bias", "block3.6.attn.proj.weight", "block3.6.attn.proj.bias", "block3.6.attn.sr.weight", "block3.6.attn.sr.bias", "block3.6.attn.norm.weight", "block3.6.attn.norm.bias", "block3.6.norm2.weight", "block3.6.norm2.bias", "block3.6.mlp.fc1.weight", "block3.6.mlp.fc1.bias", "block3.6.mlp.fc2.weight", "block3.6.mlp.fc2.bias", "block3.7.norm1.weight", "block3.7.norm1.bias", "block3.7.attn.q.weight", "block3.7.attn.q.bias", "block3.7.attn.kv.weight", "block3.7.attn.kv.bias", "block3.7.attn.proj.weight", "block3.7.attn.proj.bias", "block3.7.attn.sr.weight", "block3.7.attn.sr.bias", "block3.7.attn.norm.weight", "block3.7.attn.norm.bias", "block3.7.norm2.weight", "block3.7.norm2.bias", "block3.7.mlp.fc1.weight", "block3.7.mlp.fc1.bias", "block3.7.mlp.fc2.weight", "block3.7.mlp.fc2.bias", "block3.8.norm1.weight", "block3.8.norm1.bias", "block3.8.attn.q.weight", "block3.8.attn.q.bias", "block3.8.attn.kv.weight", "block3.8.attn.kv.bias", "block3.8.attn.proj.weight", "block3.8.attn.proj.bias", "block3.8.attn.sr.weight", "block3.8.attn.sr.bias", "block3.8.attn.norm.weight", "block3.8.attn.norm.bias", "block3.8.norm2.weight", "block3.8.norm2.bias", "block3.8.mlp.fc1.weight", "block3.8.mlp.fc1.bias", "block3.8.mlp.fc2.weight", "block3.8.mlp.fc2.bias", "block3.9.norm1.weight", "block3.9.norm1.bias", "block3.9.attn.q.weight", "block3.9.attn.q.bias", "block3.9.attn.kv.weight", "block3.9.attn.kv.bias", "block3.9.attn.proj.weight", "block3.9.attn.proj.bias", "block3.9.attn.sr.weight", "block3.9.attn.sr.bias", "block3.9.attn.norm.weight", "block3.9.attn.norm.bias", "block3.9.norm2.weight", "block3.9.norm2.bias", "block3.9.mlp.fc1.weight", "block3.9.mlp.fc1.bias", "block3.9.mlp.fc2.weight", "block3.9.mlp.fc2.bias", "block3.10.norm1.weight", "block3.10.norm1.bias", "block3.10.attn.q.weight", "block3.10.attn.q.bias", "block3.10.attn.kv.weight", "block3.10.attn.kv.bias", "block3.10.attn.proj.weight", "block3.10.attn.proj.bias", "block3.10.attn.sr.weight", "block3.10.attn.sr.bias", "block3.10.attn.norm.weight", "block3.10.attn.norm.bias", "block3.10.norm2.weight", "block3.10.norm2.bias", "block3.10.mlp.fc1.weight", "block3.10.mlp.fc1.bias", "block3.10.mlp.fc2.weight", "block3.10.mlp.fc2.bias", "block3.11.norm1.weight", "block3.11.norm1.bias", "block3.11.attn.q.weight", "block3.11.attn.q.bias", "block3.11.attn.kv.weight", "block3.11.attn.kv.bias", "block3.11.attn.proj.weight", "block3.11.attn.proj.bias", "block3.11.attn.sr.weight", "block3.11.attn.sr.bias", "block3.11.attn.norm.weight", "block3.11.attn.norm.bias", "block3.11.norm2.weight", "block3.11.norm2.bias", "block3.11.mlp.fc1.weight", "block3.11.mlp.fc1.bias", "block3.11.mlp.fc2.weight", "block3.11.mlp.fc2.bias", "block3.12.norm1.weight", "block3.12.norm1.bias", "block3.12.attn.q.weight", "block3.12.attn.q.bias", "block3.12.attn.kv.weight", "block3.12.attn.kv.bias", "block3.12.attn.proj.weight", "block3.12.attn.proj.bias", "block3.12.attn.sr.weight", "block3.12.attn.sr.bias", "block3.12.attn.norm.weight", "block3.12.attn.norm.bias", "block3.12.norm2.weight", "block3.12.norm2.bias", "block3.12.mlp.fc1.weight", "block3.12.mlp.fc1.bias", "block3.12.mlp.fc2.weight", "block3.12.mlp.fc2.bias", "block3.13.norm1.weight", "block3.13.norm1.bias", "block3.13.attn.q.weight", "block3.13.attn.q.bias", "block3.13.attn.kv.weight", "block3.13.attn.kv.bias", "block3.13.attn.proj.weight", "block3.13.attn.proj.bias", "block3.13.attn.sr.weight", "block3.13.attn.sr.bias", "block3.13.attn.norm.weight", "block3.13.attn.norm.bias", "block3.13.norm2.weight", "block3.13.norm2.bias", "block3.13.mlp.fc1.weight", "block3.13.mlp.fc1.bias", "block3.13.mlp.fc2.weight", "block3.13.mlp.fc2.bias", "block3.14.norm1.weight", "block3.14.norm1.bias", "block3.14.attn.q.weight", "block3.14.attn.q.bias", "block3.14.attn.kv.weight", "block3.14.attn.kv.bias", "block3.14.attn.proj.weight", "block3.14.attn.proj.bias", "block3.14.attn.sr.weight", "block3.14.attn.sr.bias", "block3.14.attn.norm.weight", "block3.14.attn.norm.bias", "block3.14.norm2.weight", "block3.14.norm2.bias", "block3.14.mlp.fc1.weight", "block3.14.mlp.fc1.bias", "block3.14.mlp.fc2.weight", "block3.14.mlp.fc2.bias", "block3.15.norm1.weight", "block3.15.norm1.bias", "block3.15.attn.q.weight", "block3.15.attn.q.bias", "block3.15.attn.kv.weight", "block3.15.attn.kv.bias", "block3.15.attn.proj.weight", "block3.15.attn.proj.bias", "block3.15.attn.sr.weight", "block3.15.attn.sr.bias", "block3.15.attn.norm.weight", "block3.15.attn.norm.bias", "block3.15.norm2.weight", "block3.15.norm2.bias", "block3.15.mlp.fc1.weight", "block3.15.mlp.fc1.bias", "block3.15.mlp.fc2.weight", "block3.15.mlp.fc2.bias", "block3.16.norm1.weight", "block3.16.norm1.bias", "block3.16.attn.q.weight", "block3.16.attn.q.bias", "block3.16.attn.kv.weight", "block3.16.attn.kv.bias", "block3.16.attn.proj.weight", "block3.16.attn.proj.bias", "block3.16.attn.sr.weight", "block3.16.attn.sr.bias", "block3.16.attn.norm.weight", "block3.16.attn.norm.bias", "block3.16.norm2.weight", "block3.16.norm2.bias", "block3.16.mlp.fc1.weight", "block3.16.mlp.fc1.bias", "block3.16.mlp.fc2.weight", "block3.16.mlp.fc2.bias", "block3.17.norm1.weight", "block3.17.norm1.bias", "block3.17.attn.q.weight", "block3.17.attn.q.bias", "block3.17.attn.kv.weight", "block3.17.attn.kv.bias", "block3.17.attn.proj.weight", "block3.17.attn.proj.bias", "block3.17.attn.sr.weight", "block3.17.attn.sr.bias", "block3.17.attn.norm.weight", "block3.17.attn.norm.bias", "block3.17.norm2.weight", "block3.17.norm2.bias", "block3.17.mlp.fc1.weight", "block3.17.mlp.fc1.bias", "block3.17.mlp.fc2.weight", "block3.17.mlp.fc2.bias", "block4.2.norm1.weight", "block4.2.norm1.bias", "block4.2.attn.q.weight", "block4.2.attn.q.bias", "block4.2.attn.kv.weight", "block4.2.attn.kv.bias", "block4.2.attn.proj.weight", "block4.2.attn.proj.bias", "block4.2.norm2.weight", "block4.2.norm2.bias", "block4.2.mlp.fc1.weight", "block4.2.mlp.fc1.bias", "block4.2.mlp.fc2.weight", "block4.2.mlp.fc2.bias".
Traceback (most recent call last):
File "/home/-/anaconda3/envs/dpt/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/-/anaconda3/envs/dpt/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/-/anaconda3/envs/dpt/lib/python3.8/site-packages/torch/distributed/launch.py", line 260, in
main()
File "/home/-/anaconda3/envs/dpt/lib/python3.8/site-packages/torch/distributed/launch.py", line 255, in main
raise subprocess.CalledProcessError(returncode=process.returncode,
subprocess.CalledProcessError: Command '['/home/cvlab/anaconda3/envs/dpt/bin/python', '-u', 'main.py', '--eval', '--model', 'dpt_tiny', '--data-path', '/home/cvlab/datasets/ImageNet', '--resume', 'dpt_medium.pth']' returned non-zero exit status 1.