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

Training problem #99

Open
longjia1996 opened this issue May 5, 2019 · 4 comments
Open

Training problem #99

longjia1996 opened this issue May 5, 2019 · 4 comments

Comments

@longjia1996
Copy link

Traceback (most recent call last):
File "train.py", line 141, in
Train()
File "train.py", line 27, in init
self._train()
File "train.py", line 40, in _train
self._train_epoch(i_epoch)
File "train.py", line 69, in _train_epoch
self._model.optimize_parameters(keep_data_for_visuals=do_visuals, train_generator=train_generator)
File "/home/longjia/GANimation-master/models/ganimation.py", line 207, in optimize_parameters
loss_D, fake_imgs_masked = self._forward_D()
File "/home/longjia/GANimation-master/models/ganimation.py", line 273, in _forward_D
fake_imgs, fake_img_mask = self._G.forward(self._real_img, self._desired_cond)
File "/home/longjia/GANimation-master/networks/generator_wasserstein_gan.py", line 51, in forward
c = c.expand(c.size(0), c.size(1), x.size(2), x.size(3))
RuntimeError: expand(torch.cuda.FloatTensor{[1, 0, 1, 1, 37]}, size=[1, 0, 128, 128]): the number of sizes provided (4) must be greater or equal to the number of dimensions in the tensor (5)

@xrtbuaa
Copy link

xrtbuaa commented Jun 4, 2019

@longjia1996
I have meet this before , maybe you can check the format of AU that you provide

@shartoo
Copy link

shartoo commented Sep 2, 2019

batch size should be 25?

@tjzjp
Copy link

tjzjp commented Oct 27, 2019

I met the same problem, have you solved it?

@czwbbbbb
Copy link

我以前遇到过这个,也许你可以检查一下你提供的AU格式

hello!I also encountered this problem, I want to ask how this is solved, thank you for your help, that is, this c is 0 channel, can not do concat

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

5 participants