menyifang / ADGAN

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

Shape error when running test.sh #34

Open chinmaypr opened 3 years ago

chinmaypr commented 3 years ago

@menyifang I am trying to reproduce your work via pre-trained model privided in your google drive link. After following all your steps, when I run bash ./scripts/test.sh I get the following error

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

This seems to arise from the following operation in the file model_adgen.py xi = x.mul(semi)

My arguments are the same as the one mentioned in #6. What is the reason for this error? Please help.

little-misfit commented 2 years ago

Hey,i also have been encountered this error, have you solve this question? or can you give me some suggestion about it? Thanks,best wish

bill20th commented 2 years ago

Run resize_fashion.py before test.py and you should be fine !

little-misfit commented 2 years ago

Run resize_fashion.py before test.py and you should be fine !

thanks for your answer ^^