Skip to content

Commit

Permalink
fix: scene flow dataloader index (#243)
Browse files Browse the repository at this point in the history
Co-authored-by: kin_home <[email protected]>
  • Loading branch information
benjaminrwilson and Kin-Zhang authored Dec 17, 2023
1 parent cd437c8 commit eb62ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/av2/torch/data_loaders/scene_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_log_id(self, index: int) -> str:
def __getitem__(self, index: int) -> Tuple[Sweep, Sweep, Se3, Optional[Flow]]:
"""Get a pair of sweeps, ego motion, and flow if annotations are available."""
backend_index = self.index_map[index]
log = str(self.file_index.loc[index, "log_id"])
log = str(self.file_index.loc[backend_index, "log_id"])
log_map_dirpath = self.data_dir / log / "map"
avm = ArgoverseStaticMap.from_map_dir(log_map_dirpath, build_raster=True)

Expand Down

0 comments on commit eb62ac1

Please sign in to comment.