added test set (using training data for now)

This commit is contained in:
Ethan Weber committed 2022-04-22 03:45:06 +00:00
1 parent 7e5a5bf524
commit cf7034f0d1
10 files changed
+112 -57

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ class ImageDataset(torch.utils.data.Dataset):
# e.g., we should be able to downscale the images or set a max height, width, etc.
# the image might be RGB or RGBA, so we separate it
original_image = self.get_image(image_idx).astype("float32") / 255.0
original_image = torch.from_numpy(self.get_image(image_idx).astype("float32") / 255.0)
image = original_image[:, :, :3]
num_channels = original_image.shape[2]
if num_channels == 4: