Skip to content

Commit

Permalink
Switched shuffles for train and test loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
anordertoreclaim committed Aug 6, 2019
1 parent 048ff8f commit 3b28ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_loaders(dataset_name, batch_size, color_levels, train_root, test_root):
except KeyError:
raise AttributeError("Unsupported dataset")

train_loader = DataLoader(train_dataset, batch_size=batch_size, shuffle=False, pin_memory=True, drop_last=True)
test_loader = DataLoader(test_dataset, batch_size=batch_size, shuffle=True, pin_memory=True, drop_last=True)
train_loader = DataLoader(train_dataset, batch_size=batch_size, shuffle=True, pin_memory=True, drop_last=True)
test_loader = DataLoader(test_dataset, batch_size=batch_size, shuffle=False, pin_memory=True, drop_last=True)

return train_loader, test_loader, h, w

0 comments on commit 3b28ac2

Please sign in to comment.