Skip to content

Commit

Permalink
torchrgb
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalmsley committed Jan 5, 2024
1 parent 8d15167 commit 862ee37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zoobot/pytorch/datasets/webdatamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def make_loader(self, urls, mode="train"):
dataset = dataset.shuffle(shuffle)

# dataset = dataset.decode("rgb") # np.array, for albumentations
dataset = dataset.decode("pilrgb") # PIL Image, for torchvision
dataset = dataset.decode("torchrgb") # tensor, for torchvision

if mode == 'predict':
if self.label_cols != ['id_str']:
Expand Down

0 comments on commit 862ee37

Please sign in to comment.