Skip to content

Commit

Permalink
add test dataloader
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalmsley committed Jan 15, 2024
1 parent 372bdb1 commit e3124b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zoobot/pytorch/datasets/webdatamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def train_dataloader(self):

def val_dataloader(self):
return self.make_loader(self.val_urls, mode="val")

def test_dataloader(self):
return self.make_loader(self.val_urls, mode="test")

def predict_dataloader(self):
return self.make_loader(self.predict_urls, mode="predict")
Expand Down

0 comments on commit e3124b7

Please sign in to comment.