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

AssertionError #96

Open
clcllllll opened this issue Aug 9, 2023 · 1 comment
Open

AssertionError #96

clcllllll opened this issue Aug 9, 2023 · 1 comment

Comments

@clcllllll
Copy link

Hello, I encountered this error when trying to load the trained model file for inference after training my own dataset:

Traceback (most recent call last):
File "generate_image.py", line 160, in
generate_images() # pylint: disable=no-value-for-parameter
File "/data/conda_file/envs/MAT/lib/python3.7/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/data/conda_file/envs/MAT/lib/python3.7/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/data/conda_file/envs/MAT/lib/python3.7/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/data/conda_file/envs/MAT/lib/python3.7/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/data/conda_file/envs/MAT/lib/python3.7/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "generate_image.py", line 106, in generate_images
copy_params_and_buffers(G_saved, G, require_all=True)
File "generate_image.py", line 49, in copy_params_and_buffers
assert (name in src_tensors) or (not require_all)
AssertionError

@Runzil
Copy link

Runzil commented Jan 15, 2024

I am facing the same problem have you found a solution?

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