Skip to content

Commit

Permalink
Fix wrong typo
Browse files Browse the repository at this point in the history
  • Loading branch information
quajak committed Mar 20, 2024
1 parent 792731d commit 16e56ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data_collection/data_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def collect_data(self) -> None:
object_types.append(obj.category)
object_bounding_boxes.append(np.array(obj.xywh))
object_xy.append(np.array(obj.xy))
last_idx = -1 if not hasattr(obj, 'last_xy') or obj.last_xy == (0,0) else self.episode_object_xy[-1].index(np.array(obj.last_xy))
last_idx = -1 if len(self.episode_object_xy) == 0 or obj.prev_xy == (0,0) else \
self.episode_object_xy[-1].index(np.array(obj.prev_xy))
object_last_idx.append(last_idx)
object_bounding_boxes = np.array(object_bounding_boxes)

Expand Down

0 comments on commit 16e56ad

Please sign in to comment.