menyifang / ADGAN

The Implementation of paper "Controllable Person Image Synthesis with Attribute-Decomposed GAN" CVPR 2020 (Oral); Pose and Appearance Attributes Transfer;
475 stars 90 forks source link

RuntimeError: The size of tensor a (256) must match the size of tensor b (176) at non-singleton dimension 3 #29

Closed fengbuck closed 3 years ago

fengbuck commented 3 years ago

File "/home/user20202735/ADGAN/models/model_adgen.py", line 37, in forward style = self.enc_style(img_B, sem_B) File "/home/user20202735/.conda/envs/adgan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl return forward_call(*input, **kwargs) File "/home/user20202735/ADGAN/models/model_adgen.py", line 130, in forward xi = x.mul(semi)

NatsumeTetsuya commented 3 years ago

crop the raw img to (256,176) first

The-Emperor-0 commented 1 year ago

crop the raw img to (256,176) first

请问应该在哪里裁剪呢