context_encoder_pytorch
context_encoder_pytorch copied to clipboard
torch.FloatTensor constructor received an invalid combination of arguments
I try to run test_one.py but failed at real_center = torch.FloatTensor(1, 3, opt.imageSize/2, opt.imageSize/2) with the error: ypeError: torch.FloatTensor constructor received an invalid combination of arguments - got (int, int, float, float), but expected one of:
- no arguments
- (int ...) didn't match because some of the arguments have invalid types: (!int!, !int!, !float!, !float!)
- (torch.FloatTensor viewed_tensor)
- (torch.Size size)
- (torch.FloatStorage data)
- (Sequence data) is there any thing wrong?
try: real_center = torch.FloatTensor(1, 3, int(opt.imageSize/2), int(opt.imageSize/2)) instead
@BoyuanJiang , yes, thank you , I have fixed it.