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

text_encoder error #22

Open
foreverpiano opened this issue Nov 4, 2024 · 0 comments
Open

text_encoder error #22

foreverpiano opened this issue Nov 4, 2024 · 0 comments

Comments

@foreverpiano
Copy link

c_text: None tensor([[0., 0., 0., 0., 0., 0., 0., 0., 1., 0.]])
Traceback (most recent call last):
File "/workspace/stylegan-t/train.py", line 214, in
main() # pylint: disable=no-value-for-parameter
File "/workspace/miniconda3/envs/old/lib/python3.9/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/workspace/miniconda3/envs/old/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/workspace/miniconda3/envs/old/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/workspace/miniconda3/envs/old/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/workspace/stylegan-t/train.py", line 211, in main
training_loop.training_loop(**c)
File "/workspace/stylegan-t/training/training_loop.py", line 387, in training_loop
loss.accumulate_gradients(phase=phase.name, real_img=real_img, c_raw=real_c, gen_z=gen_z, cur_nimg=cur_nimg)
File "/workspace/stylegan-t/training/loss.py", line 97, in accumulate_gradients
gen_img = self.run_G(gen_z, c=c_raw if self.train_text_encoder else c_enc)
File "/workspace/stylegan-t/training/loss.py", line 68, in run_G
ws = self.G.mapping(z, c)
File "/workspace/miniconda3/envs/old/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/workspace/stylegan-t/networks/generator.py", line 546, in forward
assert c is not None
AssertionError

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