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

checkpoint is not compatible with the network architecture #24

Open
ZhengzxDev opened this issue Aug 8, 2023 · 3 comments
Open

checkpoint is not compatible with the network architecture #24

ZhengzxDev opened this issue Aug 8, 2023 · 3 comments

Comments

@ZhengzxDev
Copy link

your model is perfectly satisfied with our requirements, but after several attempts, it seems that the checkpoint file that you provided is not compatible with the code. can you provide the latest pretrain-model?
edc3a62d64d38b2373738aae6c66be77

@chojinie
Copy link

me too. how can i get pre-trained model?

@jpsml
Copy link

jpsml commented Oct 21, 2023

I am getting a similar error:

normal init for last conv
Trying to load from: ./ckpts/model_btmup/
Traceback (most recent call last):
File "calculate_mupots_btmup.py", line 30, in
M.Saver(model).restore('./ckpts/model_btmup/')
File "/home/jpsml/anaconda3/envs/3dmpp/lib/python3.6/site-packages/TorchSUL/Model.py", line 156, in restore
self.model.load_state_dict(state_dict, strict=strict)
File "/home/jpsml/anaconda3/envs/3dmpp/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1037, in load_state_dict
load(self)
File "/home/jpsml/anaconda3/envs/3dmpp/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1035, in load
load(child, prefix + name + '.')
File "/home/jpsml/anaconda3/envs/3dmpp/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1035, in load
load(child, prefix + name + '.')
File "/home/jpsml/anaconda3/envs/3dmpp/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1035, in load
load(child, prefix + name + '.')
[Previous line repeated 1 more time]
File "/home/jpsml/anaconda3/envs/3dmpp/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1032, in load
state_dict, prefix, local_metadata, True, missing_keys, unexpected_keys, error_msgs)
File "/home/jpsml/anaconda3/envs/3dmpp/lib/python3.6/site-packages/TorchSUL/Layers.py", line 106, in _load_from_state_dict
raise Exception('No weight found for layer:', prefix)
Exception: ('No weight found for layer:', 'backbone.lastfuse.c_all.conv.')

@ddddwee1
Copy link
Collaborator

Please try to downgrade your TorchSUL to 0.1.28

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

4 participants