Skip to content

Commit

Permalink
Merge pull request octo-models#139 from rail-berkeley/dibya_patch_1
Browse files Browse the repository at this point in the history
Fix big woopise
  • Loading branch information
dibyaghosh authored Dec 8, 2023
2 parents 127c99a + 98d27d1 commit 71658de
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions orca/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,6 @@ def move_language_instruction_to_tasks(traj):

dataset = dataset.map(move_language_instruction_to_tasks, num_parallel_calls)

if train and subsample_length is not None:
dataset = dataset.map(
partial(_subsample, subsample_length=subsample_length), num_parallel_calls
)

dataset = dataset.map(
partial(
_chunk_act_obs,
Expand All @@ -273,6 +268,10 @@ def move_language_instruction_to_tasks(traj):
),
num_parallel_calls,
)
if train and subsample_length is not None:
dataset = dataset.map(
partial(_subsample, subsample_length=subsample_length), num_parallel_calls
)

return dataset

Expand Down

0 comments on commit 71658de

Please sign in to comment.