Skip to content

Commit 8963148

Browse files
committed
fix: fixed dataloader
1 parent 38ccbf9 commit 8963148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flaxdiff/data/dataloaders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def get_valset():
345345
]
346346

347347
loader = pygrain.DataLoader(
348-
data_source=val_source,
348+
data_source=train_source,
349349
sampler=train_sampler,
350350
operations=transformations,
351351
worker_count=2,
@@ -360,7 +360,7 @@ def get_valset():
360360
"train": get_trainset,
361361
"train_len": len(train_source),
362362
"val": get_valset,
363-
"val_len": len(val_source),
363+
"val_len": len(train_source),
364364
"local_batch_size": local_batch_size,
365365
"global_batch_size": batch_size,
366366
}

0 commit comments

Comments
 (0)