PyTorch-CycleGAN icon indicating copy to clipboard operation
PyTorch-CycleGAN copied to clipboard

Import Error!

Open happsky opened this issue 6 years ago • 2 comments

Traceback (most recent call last): File "./train", line 6, in import torchvision.transforms as transforms ImportError: No module named 'torchvision'

happsky avatar Apr 11 '18 17:04 happsky

I also faced the same issue, I deleted all the command line inputs and set the required values to default value so I just did "python ./train" and it solved this problem. But it is now giving error RuntimeError: input and target shapes do not match: input [1 x 1], target [1] at /pytorch/aten/src/THCUNN/generic/MSECriterion.cu:15 Don't know how to solve

abi98213 avatar Jun 25 '18 18:06 abi98213

@mabdullahrafique

Change the output of the discriminator to this : return F.avg_pool2d(x, x.size()[2:]).view(x.size()[0])

sshkhr avatar Jul 30 '18 15:07 sshkhr