Resizing dataset - PyTorch Forums
discuss.pytorch.org › t › resizing-datasetApr 06, 2020 · I’m not sure, if you are passing the custom resize class as the transformation or torchvision.transforms.Resize. However, transform.resize(inputs, (120, 120)) won’t work. You could either create an instance of transforms.Resize or use the functional API: torchvision.transforms.functional.resize(img, size, interpolation)
Concatenating images - PyTorch Forums
discuss.pytorch.org › t › concatenating-imagesMar 26, 2019 · You are currently using a batch size of 5, which won’t work if you would like to concatenate two images. If you use an even batch size, you could concatenate the images using this code: inputs = torch.cat((inputs[::2], inputs[1::2]), 2) Since you are using shuffle=True, I assume the pairs used to create the larger tensors do not matter. Is this correct or would you like to concatenate specific pairs of image tensors?