Skip to content

Commit 6a671a0

Browse files
committed
Shuffles the training dataset which is based on slippy map dir order
1 parent 5f35f2b commit 6a671a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

robosat/tools/train.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def get_dataset_loaders(model, dataset):
201201
[os.path.join(path, "validation", "images")], os.path.join(path, "validation", "labels"), transform
202202
)
203203

204-
train_loader = DataLoader(train_dataset, batch_size=batch_size, drop_last=True)
205-
val_loader = DataLoader(val_dataset, batch_size=batch_size, drop_last=True)
204+
train_loader = DataLoader(train_dataset, batch_size=batch_size, shuffle=True, drop_last=True)
205+
val_loader = DataLoader(val_dataset, batch_size=batch_size, shuffle=False, drop_last=True)
206206

207207
return train_loader, val_loader

0 commit comments

Comments
 (0)