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 with inference #3

Open
gebaltso opened this issue Oct 24, 2023 · 0 comments
Open

Problem with inference #3

gebaltso opened this issue Oct 24, 2023 · 0 comments

Comments

@gebaltso
Copy link

Hello! When I run the inference.py I get the following error:
RuntimeError: Error(s) in loading state_dict for FullTextMapper: Missing key(s) in state_dict: "mapper_0.mapping.1.weight", "mapper_0.mapping.1.bias", "mapper_0.mapping.2.weight", "mapper_0.mapping.2.bias", "mapper_0.mapping.3.weight", "mapper_0.mapping.3.bias", "mapper_0.mapping.4.weight", "mapper_0.mapping.4.bias", "mapper_1.mapping.1.weight", "mapper_1.mapping.1.bias", "mapper_1.mapping.2.weight", "mapper_1.mapping.2.bias", "mapper_1.mapping.3.weight", "mapper_1.mapping.3.bias", "mapper_1.mapping.4.weight", "mapper_1.mapping.4.bias", "mapper_2.mapping.1.weight", "mapper_2.mapping.1.bias", "mapper_2.mapping.2.weight", "mapper_2.mapping.2.bias", "mapper_2.mapping.3.weight", "mapper_2.mapping.3.bias", "mapper_2.mapping.4.weight", "mapper_2.mapping.4.bias", "mapper_3.mapping.1.weight", "mapper_3.mapping.1.bias", "mapper_3.mapping.2.weight", "mapper_3.mapping.2.bias", "mapper_3.mapping.3.weight", "mapper_3.mapping.3.bias", "mapper_3.mapping.4.weight", "mapper_3.mapping.4.bias", "mapper_4.mapping.1.weight", "mapper_4.mapping.1.bias", "mapper_4.mapping.2.weight", "mapper_4.mapping.2.bias", "mapper_4.mapping.3.weight", "mapper_4.mapping.3.bias", "mapper_4.mapping.4.weight", "mapper_4.mapping.4.bias", "mapper_5.mapping.1.weight", "mapper_5.mapping.1.bias", "mapper_5.mapping.2.weight", "mapper_5.mapping.2.bias", "mapper_5.mapping.3.weight", "mapper_5.mapping.3.bias", "mapper_5.mapping.4.weight", "mapper_5.mapping.4.bias", "mapper_6.mapping.1.weight", "mapper_6.mapping.1.bias", "mapper_6.mapping.2.weight", "mapper_6.mapping.2.bias", "mapper_6.mapping.3.weight", "mapper_6.mapping.3.bias", "mapper_6.mapping.4.weight", "mapper_6.mapping.4.bias", "mapper_7.mapping.1.weight", "mapper_7.mapping.1.bias", "mapper_7.mapping.2.weight", "mapper_7.mapping.2.bias", "mapper_7.mapping.3.weight", "mapper_7.mapping.3.bias", "mapper_7.mapping.4.weight", "mapper_7.mapping.4.bias", "mapper_8.mapping.1.weight", "mapper_8.mapping.1.bias", "mapper_8.mapping.2.weight", "mapper_8.mapping.2.bias", "mapper_8.mapping.3.weight", "mapper_8.mapping.3.bias", "mapper_8.mapping.4.weight", "mapper_8.mapping.4.bias", "mapper_9.mapping.1.weight", "mapper_9.mapping.1.bias", "mapper_9.mapping.2.weight", "mapper_9.mapping.2.bias", "mapper_9.mapping.3.weight", "mapper_9.mapping.3.bias", "mapper_9.mapping.4.weight", "mapper_9.mapping.4.bias", "mapper_10.mapping.1.weight", "mapper_10.mapping.1.bias", "mapper_10.mapping.2.weight", "mapper_10.mapping.2.bias", "mapper_10.mapping.3.weight", "mapper_10.mapping.3.bias", "mapper_10.mapping.4.weight", "mapper_10.mapping.4.bias", "mapper_11.mapping.1.weight", "mapper_11.mapping.1.bias", "mapper_11.mapping.2.weight", "mapper_11.mapping.2.bias", "mapper_11.mapping.3.weight", "mapper_11.mapping.3.bias", "mapper_11.mapping.4.weight", "mapper_11.mapping.4.bias", "mapper_12.mapping.1.weight", "mapper_12.mapping.1.bias", "mapper_12.mapping.2.weight", "mapper_12.mapping.2.bias", "mapper_12.mapping.3.weight", "mapper_12.mapping.3.bias", "mapper_12.mapping.4.weight", "mapper_12.mapping.4.bias", "mapper_13.mapping.1.weight", "mapper_13.mapping.1.bias", "mapper_13.mapping.2.weight", "mapper_13.mapping.2.bias", "mapper_13.mapping.3.weight", "mapper_13.mapping.3.bias", "mapper_13.mapping.4.weight", "mapper_13.mapping.4.bias", "mapper_14.mapping.1.weight", "mapper_14.mapping.1.bias", "mapper_14.mapping.2.weight", "mapper_14.mapping.2.bias", "mapper_14.mapping.3.weight", "mapper_14.mapping.3.bias", "mapper_14.mapping.4.weight", "mapper_14.mapping.4.bias", "mapper_15.mapping.1.weight", "mapper_15.mapping.1.bias", "mapper_15.mapping.2.weight", "mapper_15.mapping.2.bias", "mapper_15.mapping.3.weight", "mapper_15.mapping.3.bias", "mapper_15.mapping.4.weight", "mapper_15.mapping.4.bias", "mapper_16.mapping.1.weight", "mapper_16.mapping.1.bias", "mapper_16.mapping.2.weight", "mapper_16.mapping.2.bias", "mapper_16.mapping.3.weight", "mapper_16.mapping.3.bias", "mapper_16.mapping.4.weight", "mapper_16.mapping.4.bias", "mapper_17.mapping.1.weight", "mapper_17.mapping.1.bias", "mapper_17.mapping.2.weight", "mapper_17.mapping.2.bias", "mapper_17.mapping.3.weight", "mapper_17.mapping.3.bias", "mapper_17.mapping.4.weight", "mapper_17.mapping.4.bias".

Is it maybe caused by the fact that I didn't run the convert_weight.py? I didn't run it since it results in another error:
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d, conv2d_gradfix ModuleNotFoundError: No module named 'op'

How could I surpass the above problems? 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