context_encoder_pytorch
context_encoder_pytorch copied to clipboard
argument 'size' must be tuple of ints, but found element of type float at pos 3
This is what I am getting when I run test.py
Traceback (most recent call last):
File "test.py", line 64, in
any ideas?
you may try real_center = torch.FloatTensor(opt.batchSize, 3, int(opt.imageSize/2), int(opt.imageSize/2))
你解决了吗,怎么解决的
你解决了吗,怎么解决的
find all the "imageSize/" replace by "imageSize//". This is the difference between python3 and python2 version, py3 will become decimal