Open cserezwan opened 2 years ago
Hello, I'm facing the following error: TypeError: expected np.ndarray (got Tensor)
Tried to change the line from torch.from_numpy to torch.as_tensor, but then it shows error in another line. Any idea of how to solve this issue?
Try changing the code to look like this: texture_origin = torch.Tensor(textures[None, :, :, :, :, :].cpu()).cuda(device=0)
texture_origin = torch.Tensor(textures[None, :, :, :, :, :].cpu()).cuda(device=0)
Hello, I'm facing the following error: TypeError: expected np.ndarray (got Tensor)
Tried to change the line from torch.from_numpy to torch.as_tensor, but then it shows error in another line. Any idea of how to solve this issue?