Skip to content

Commit

Permalink
sampling should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
beneisner committed Aug 9, 2023
1 parent db00a0e commit 9113a69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flowbot3d/datasets/flow_dataset_pyg.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def get_processed_dir(randomize_joints, randomize_camera):
camera_chunk = "rc" if randomize_camera else "sc"
return f"processed_{joint_chunk}_{camera_chunk}"

def get_data(self, obj_id: str) -> Flowbot3DTGData:
data_dict = self.dataset.get_data(obj_id, self.seed)
def get_data(self, obj_id: str, seed=None) -> Flowbot3DTGData:
if seed is None:
seed = self.seed
data_dict = self.dataset.get_data(obj_id, seed)

data = tgd.Data(
id=data_dict["id"],
Expand Down

0 comments on commit 9113a69

Please sign in to comment.