Hi, can someone help me please:
I’m try to run the code below, but I got this issues:
rend = rend.cpu().data.numpy().transpose((0, 2, 3, 1))
AttributeError: ‘tuple’ object has no attribute ‘cpu’
I also printed the shape of this turple:
torch.Size([1, 3, 244, 244])
torch.Size([1, 244, 244])
torch.Size([1, 244, 244])
I’ve tried a lot of ways to solve this, but I got other issues…