Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/openpi/training/droid_rlds_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ def decode_images(traj):
weights = [dataset.weight for dataset in datasets]

final_dataset = dl.DLataset.sample_from_datasets(all_datasets, weights=weights)
final_dataset = final_dataset.shuffle(shuffle_buffer_size)
# Honor the constructor `shuffle` flag (default True). Skip for deterministic evaluation.
if shuffle:
final_dataset = final_dataset.shuffle(shuffle_buffer_size)
final_dataset = final_dataset.batch(batch_size)
# Note =>> Seems to reduce memory usage without affecting speed?
final_dataset = final_dataset.with_ram_budget(1)
Expand Down