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

Problem when running the demo #5

Open
FatmaYoussef96 opened this issue Oct 31, 2024 · 1 comment
Open

Problem when running the demo #5

FatmaYoussef96 opened this issue Oct 31, 2024 · 1 comment

Comments

@FatmaYoussef96
Copy link

Hello,
I faced an error while running the demo in creating the model cell model = HumanAttnTransformer(..
self.backbone.load_state_dict(bb_weights_new) in model.py gives this error
Error(s) in loading state_dict for ResNet:

Missing key(s) in state_dict: "res2.0.shortcut.weight", "res2.0.shortcut.norm.weight", "res2.0.shortcut.norm.bias", "res2.0.conv1.weight", "res2.0.conv1.norm.weight", "res2.0.conv1.norm.bias", "res2.0.conv2.weight", "res2.0.conv2.norm.weight", "res2.0.conv2.norm.bias", "res2.0.conv3.weight", "res2.0.conv3.norm.weight", "res2.0.conv3.norm.bias", "res2.1.conv1.weight", "res2.1.conv1.norm.weight", "res2.1.conv1.norm.bias", "res2.1.conv2.weight", "res2.1.conv2.norm.weight", "res2.1.conv2.norm.bias", "res2.1.conv3.weight", "res2.1.conv3.norm.weight", "res2.1.conv3.norm.bias", "res2.2.conv1.weight", "res2.2.conv1.norm.weight", "res2.2.conv1.norm.bias", "res2.2.conv2.weight", "res2.2.conv2.norm.weight", "res2.2.conv2.norm.bias", "res2.2.conv3.weight", "res2.2.conv3.norm.weight", "res2.2.conv3.norm.bias", "res3.0.shortcut.weight", "res3.0.shortcut.norm.weight", "res3.0.shortcut.norm.bias", "res3.0.conv1.weight", "res3.0.conv1.norm.weight", "res3.0.conv1.norm.bias", "res3.0.conv2.weight", "res3.0.conv2.norm.weight", "res3.0.conv2.norm.bias", "res3.0.conv3.weight", "res3.0.conv3.norm.weight", "res3.0.conv3.norm.bias", "res3.1.conv1.weight", "res3.1.conv1.norm.weight", "res3.1.conv1.norm.bias", "res3.1.conv2.weight", "res3.1.conv2.norm.weight", "res3.1.conv2.norm.bias", "res3.1.conv3.weight", "res3.1.conv3.norm.weight", "res3.1.conv3.norm.bias", "res3.2.conv1.weight", "res3.2.conv1.norm.weight", "res3.2.conv1.norm.bias", "res3.2.conv2.weight", "res3.2.conv2.norm.weight", "res3.2.conv2.norm.bias", "res3.2.conv3.weight", "res3.2.conv3.norm.weight", "res3.2.conv3.norm.bias", "res3.3.conv1.weight", "res3.3.conv1.norm.weight", "res3.3.conv1.norm.bias", "res3.3.conv2.weight", "res3.3.conv2.norm.weight", "res3.3.conv2.norm.bias", "res3.3.conv3.weight", "res3.3.conv3.norm.weight", "res3.3.conv3.norm.bias", "res4.0.shortcut.weight", "res4.0.shortcut.norm.weight", "res4.0.shortcut.norm.bias", "res4.0.conv1.weight", "res4.0.conv1.norm.weight", "res4.0.conv1.norm.bias", "res4.0.conv2.weight", "res4.0.conv2.norm.weight", "res4.0.conv2.norm.bias", "res4.0.conv3.weight", "res4.0.conv3.norm.weight", "res4.0.conv3.norm.bias", "res4.1.conv1.weight", "res4.1.conv1.norm.weight", "res4.1.conv1.norm.bias", "res4.1.conv2.weight", "res4.1.conv2.norm.weight", "res4.1.conv2.norm.bias", "res4.1.conv3.weight", "res4.1.conv3.norm.weight", "res4.1.conv3.norm.bias", "res4.2.conv1.weight", "res4.2.conv1.norm.weight", "res4.2.conv1.norm.bias", "res4.2.conv2.weight", "res4.2.conv2.norm.weight", "res4.2.conv2.norm.bias", "res4.2.conv3.weight", "res4.2.conv3.norm.weight", "res4.2.conv3.norm.bias", "res4.3.conv1.weight", "res4.3.conv1.norm.weight", "res4.3.conv1.norm.bias", "res4.3.conv2.weight", "res4.3.conv2.norm.weight", "res4.3.conv2.norm.bias", "res4.3.conv3.weight", "res4.3.conv3.norm.weight", "res4.3.conv3.norm.bias", "res4.4.conv1.weight", "res4.4.conv1.norm.weight", "res4.4.conv1.norm.bias", "res4.4.conv2.weight", "res4.4.conv2.norm.weight", "res4.4.conv2.norm.bias", "res4.4.conv3.weight", "res4.4.conv3.norm.weight", "res4.4.conv3.norm.bias", "res4.5.conv1.weight", "res4.5.conv1.norm.weight", "res4.5.conv1.norm.bias", "res4.5.conv2.weight", "res4.5.conv2.norm.weight", "res4.5.conv2.norm.bias", "res4.5.conv3.weight", "res4.5.conv3.norm.weight", "res4.5.conv3.norm.bias", "res5.0.shortcut.weight", "res5.0.shortcut.norm.weight", "res5.0.shortcut.norm.bias", "res5.0.conv1.weight", "res5.0.conv1.norm.weight", "res5.0.conv1.norm.bias", "res5.0.conv2.weight", "res5.0.conv2.norm.weight", "res5.0.conv2.norm.bias", "res5.0.conv3.weight", "res5.0.conv3.norm.weight", "res5.0.conv3.norm.bias", "res5.1.conv1.weight", "res5.1.conv1.norm.weight", "res5.1.conv1.norm.bias", "res5.1.conv2.weight", "res5.1.conv2.norm.weight", "res5.1.conv2.norm.bias", "res5.1.conv3.weight", "res5.1.conv3.norm.weight", "res5.1.conv3.norm.bias", "res5.2.conv1.weight", "res5.2.conv1.norm.weight", "res5.2.conv1.norm.bias", "res5.2.conv2.weight", "res5.2.conv2.norm.weight", "res5.2.conv2.norm.bias", "res5.2.conv3.weight", "res5.2.conv3.norm.weight", "res5.2.conv3.norm.bias".

Unexpected key(s) in state_dict: "stages.res2.0.shortcut.weight", "stages.res2.0.shortcut.norm.weight", "stages.res2.0.shortcut.norm.bias", "stages.res2.0.shortcut.norm.running_mean", "stages.res2.0.shortcut.norm.running_var", "stages.res2.0.conv1.weight", "stages.res2.0.conv1.norm.weight", "stages.res2.0.conv1.norm.bias", "stages.res2.0.conv1.norm.running_mean", "stages.res2.0.conv1.norm.running_var", "stages.res2.0.conv2.weight", "stages.res2.0.conv2.norm.weight", "stages.res2.0.conv2.norm.bias", "stages.res2.0.conv2.norm.running_mean", "stages.res2.0.conv2.norm.running_var", "stages.res2.0.conv3.weight", "stages.res2.0.conv3.norm.weight", "stages.res2.0.conv3.norm.bias", "stages.res2.0.conv3.norm.running_mean", "stages.res2.0.conv3.norm.running_var", "stages.res2.1.conv1.weight", "stages.res2.1.conv1.norm.weight", "stages.res2.1.conv1.norm.bias", "stages.res2.1.conv1.norm.running_mean", "stages.res2.1.conv1.norm.running_var", "stages.res2.1.conv2.weight", "stages.res2.1.conv2.norm.weight", "stages.res2.1.conv2.norm.bias", "stages.res2.1.conv2.norm.running_mean", "stages.res2.1.conv2.norm.running_var", "stages.res2.1.conv3.weight", "stages.res2.1.conv3.norm.weight", "stages.res2.1.conv3.norm.bias", "stages.res2.1.conv3.norm.running_mean", "stages.res2.1.conv3.norm.running_var", "stages.res2.2.conv1.weight", "stages.res2.2.conv1.norm.weight", "stages.res2.2.conv1.norm.bias", "stages.res2.2.conv1.norm.running_mean", "stages.res2.2.conv1.norm.running_var", "stages.res2.2.conv2.weight", "stages.res2.2.conv2.norm.weight", "stages.res2.2.conv2.norm.bias", "stages.res2.2.conv2.norm.running_mean", "stages.res2.2.conv2.norm.running_var", "stages.res2.2.conv3.weight", "stages.res2.2.conv3.norm.weight", "stages.res2.2.conv3.norm.bias", "stages.res2.2.conv3.norm.running_mean", "stages.res2.2.conv3.norm.running_var", "stages.res3.0.shortcut.weight", "stages.res3.0.shortcut.norm.weight", "stages.res3.0.shortcut.norm.bias", "stages.res3.0.shortcut.norm.running_mean", "stages.res3.0.shortcut.norm.running_var", "stages.res3.0.conv1.weight", "stages.res3.0.conv1.norm.weight", "stages.res3.0.conv1.norm.bias", "stages.res3.0.conv1.norm.running_mean", "stages.res3.0.conv1.norm.running_var", "stages.res3.0.conv2.weight", "stages.res3.0.conv2.norm.weight", "stages.res3.0.conv2.norm.bias", "stages.res3.0.conv2.norm.running_mean", "stages.res3.0.conv2.norm.running_var", "stages.res3.0.conv3.weight", "stages.res3.0.conv3.norm.weight", "stages.res3.0.conv3.norm.bias", "stages.res3.0.conv3.norm.running_mean", "stages.res3.0.conv3.norm.running_var", "stages.res3.1.conv1.weight", "stages.res3.1.conv1.norm.weight", "stages.res3.1.conv1.norm.bias", "stages.res3.1.conv1.norm.running_mean", "stages.res3.1.conv1.norm.running_var", "stages.res3.1.conv2.weight", "stages.res3.1.conv2.norm.weight", "stages.res3.1.conv2.norm.bias", "stages.res3.1.conv2.norm.running_mean", "stages.res3.1.conv2.norm.running_var", "stages.res3.1.conv3.weight", "stages.res3.1.conv3.norm.weight", "stages.res3.1.conv3.norm.bias", "stages.res3.1.conv3.norm.running_mean", "stages.res3.1.conv3.norm.running_var", "stages.res3.2.conv1.weight", "stages.res3.2.conv1.norm.weight", "stages.res3.2.conv1.norm.bias", "stages.res3.2.conv1.norm.running_mean", "stages.res3.2.conv1.norm.running_var", "stages.res3.2.conv2.weight", "stages.res3.2.conv2.norm.weight", "stages.res3.2.conv2.norm.bias", "stages.res3.2.conv2.norm.running_mean", "stages.res3.2.conv2.norm.running_var", "stages.res3.2.conv3.weight", "stages.res3.2.conv3.norm.weight", "stages.res3.2.conv3.norm.bias", "stages.res3.2.conv3.norm.running_mean", "stages.res3.2.conv3.norm.running_var", "stages.res3.3.conv1.weight", "stages.res3.3.conv1.norm.weight", "stages.res3.3.conv1.norm.bias", "stages.res3.3.conv1.norm.running_mean", "stages.res3.3.conv1.norm.running_var", "stages.res3.3.conv2.weight", "stages.res3.3.conv2.norm.weight", "stages.res3.3.conv2.norm.bias", "stages.res3.3.conv2.norm.running_mean", "stages.res3.3.conv2.norm.running_var", "stages.res3.3.conv3.weight", "stages.res3.3.conv3.norm.weight", "stages.res3.3.conv3.norm.bias", "stages.res3.3.conv3.norm.running_mean", "stages.res3.3.conv3.norm.running_var", "stages.res4.0.shortcut.weight", "stages.res4.0.shortcut.norm.weight", "stages.res4.0.shortcut.norm.bias", "stages.res4.0.shortcut.norm.running_mean", "stages.res4.0.shortcut.norm.running_var", "stages.res4.0.conv1.weight", "stages.res4.0.conv1.norm.weight", "stages.res4.0.conv1.norm.bias", "stages.res4.0.conv1.norm.running_mean", "stages.res4.0.conv1.norm.running_var", "stages.res4.0.conv2.weight", "stages.res4.0.conv2.norm.weight", "stages.res4.0.conv2.norm.bias", "stages.res4.0.conv2.norm.running_mean", "stages.res4.0.conv2.norm.running_var", "stages.res4.0.conv3.weight", "stages.res4.0.conv3.norm.weight", "stages.res4.0.conv3.norm.bias", "stages.res4.0.conv3.norm.running_mean", "stages.res4.0.conv3.norm.running_var", "stages.res4.1.conv1.weight", "stages.res4.1.conv1.norm.weight", "stages.res4.1.conv1.norm.bias", "stages.res4.1.conv1.norm.running_mean", "stages.res4.1.conv1.norm.running_var", "stages.res4.1.conv2.weight", "stages.res4.1.conv2.norm.weight", "stages.res4.1.conv2.norm.bias", "stages.res4.1.conv2.norm.running_mean", "stages.res4.1.conv2.norm.running_var", "stages.res4.1.conv3.weight", "stages.res4.1.conv3.norm.weight", "stages.res4.1.conv3.norm.bias", "stages.res4.1.conv3.norm.running_mean", "stages.res4.1.conv3.norm.running_var", "stages.res4.2.conv1.weight", "stages.res4.2.conv1.norm.weight", "stages.res4.2.conv1.norm.bias", "stages.res4.2.conv1.norm.running_mean", "stages.res4.2.conv1.norm.running_var", "stages.res4.2.conv2.weight", "stages.res4.2.conv2.norm.weight", "stages.res4.2.conv2.norm.bias", "stages.res4.2.conv2.norm.running_mean", "stages.res4.2.conv2.norm.running_var", "stages.res4.2.conv3.weight", "stages.res4.2.conv3.norm.weight", "stages.res4.2.conv3.norm.bias", "stages.res4.2.conv3.norm.running_mean", "stages.res4.2.conv3.norm.running_var", "stages.res4.3.conv1.weight", "stages.res4.3.conv1.norm.weight", "stages.res4.3.conv1.norm.bias", "stages.res4.3.conv1.norm.running_mean", "stages.res4.3.conv1.norm.running_var", "stages.res4.3.conv2.weight", "stages.res4.3.conv2.norm.weight", "stages.res4.3.conv2.norm.bias", "stages.res4.3.conv2.norm.running_mean", "stages.res4.3.conv2.norm.running_var", "stages.res4.3.conv3.weight", "stages.res4.3.conv3.norm.weight", "stages.res4.3.conv3.norm.bias", "stages.res4.3.conv3.norm.running_mean", "stages.res4.3.conv3.norm.running_var", "stages.res4.4.conv1.weight", "stages.res4.4.conv1.norm.weight", "stages.res4.4.conv1.norm.bias", "stages.res4.4.conv1.norm.running_mean", "stages.res4.4.conv1.norm.running_var", "stages.res4.4.conv2.weight", "stages.res4.4.conv2.norm.weight", "stages.res4.4.conv2.norm.bias", "stages.res4.4.conv2.norm.running_mean", "stages.res4.4.conv2.norm.running_var", "stages.res4.4.conv3.weight", "stages.res4.4.conv3.norm.weight", "stages.res4.4.conv3.norm.bias", "stages.res4.4.conv3.norm.running_mean", "stages.res4.4.conv3.norm.running_var", "stages.res4.5.conv1.weight", "stages.res4.5.conv1.norm.weight", "stages.res4.5.conv1.norm.bias", "stages.res4.5.conv1.norm.running_mean", "stages.res4.5.conv1.norm.running_var", "stages.res4.5.conv2.weight", "stages.res4.5.conv2.norm.weight", "stages.res4.5.conv2.norm.bias", "stages.res4.5.conv2.norm.running_mean", "stages.res4.5.conv2.norm.running_var", "stages.res4.5.conv3.weight", "stages.res4.5.conv3.norm.weight", "stages.res4.5.conv3.norm.bias", "stages.res4.5.conv3.norm.running_mean", "stages.res4.5.conv3.norm.running_var", "stages.res5.0.shortcut.weight", "stages.res5.0.shortcut.norm.weight", "stages.res5.0.shortcut.norm.bias", "stages.res5.0.shortcut.norm.running_mean", "stages.res5.0.shortcut.norm.running_var", "stages.res5.0.conv1.weight", "stages.res5.0.conv1.norm.weight", "stages.res5.0.conv1.norm.bias", "stages.res5.0.conv1.norm.running_mean", "stages.res5.0.conv1.norm.running_var", "stages.res5.0.conv2.weight", "stages.res5.0.conv2.norm.weight", "stages.res5.0.conv2.norm.bias", "stages.res5.0.conv2.norm.running_mean", "stages.res5.0.conv2.norm.running_var", "stages.res5.0.conv3.weight", "stages.res5.0.conv3.norm.weight", "stages.res5.0.conv3.norm.bias", "stages.res5.0.conv3.norm.running_mean", "stages.res5.0.conv3.norm.running_var", "stages.res5.1.conv1.weight", "stages.res5.1.conv1.norm.weight", "stages.res5.1.conv1.norm.bias", "stages.res5.1.conv1.norm.running_mean", "stages.res5.1.conv1.norm.running_var", "stages.res5.1.conv2.weight", "stages.res5.1.conv2.norm.weight", "stages.res5.1.conv2.norm.bias", "stages.res5.1.conv2.norm.running_mean", "stages.res5.1.conv2.norm.running_var", "stages.res5.1.conv3.weight", "stages.res5.1.conv3.norm.weight", "stages.res5.1.conv3.norm.bias", "stages.res5.1.conv3.norm.running_mean", "stages.res5.1.conv3.norm.running_var", "stages.res5.2.conv1.weight", "stages.res5.2.conv1.norm.weight", "stages.res5.2.conv1.norm.bias", "stages.res5.2.conv1.norm.running_mean", "stages.res5.2.conv1.norm.running_var", "stages.res5.2.conv2.weight", "stages.res5.2.conv2.norm.weight", "stages.res5.2.conv2.norm.bias", "stages.res5.2.conv2.norm.running_mean", "stages.res5.2.conv2.norm.running_var", "stages.res5.2.conv3.weight", "stages.res5.2.conv3.norm.weight", "stages.res5.2.conv3.norm.bias", "stages.res5.2.conv3.norm.running_mean", "stages.res5.2.conv3.norm.running_var".

I haven't changed the configuration file, and I have downloaded the pertained weights.

@javaispasdinspi
Copy link

Hello !

I have the exact same issue.
I haven't changed the configuration file neither, and I have downloaded the pertained weights.

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

2 participants