Skip to content

Commit

Permalink
lowered threshold for positive _is_equivalent function
Browse files Browse the repository at this point in the history
  • Loading branch information
BJenrajb committed Nov 27, 2024
1 parent 3cc0502 commit 6b46eaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocatari/ram/game_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def _is_equivalent(self, other):
if self.category != other.category:
return False
iou_value = self.iou(other)
return iou_value > 0.9
return iou_value > 0.8

def iou(self, other):
# Calculate the (x, y) coordinates of the intersection rectangle
Expand Down
2 changes: 1 addition & 1 deletion ocatari/vision/game_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _is_equivalent(self, other):
if self.category != other.category:
return False
iou_value = self.iou(other)
return iou_value > 0.9
return iou_value > 0.8

def iou(self, other):
# Calculate the (x, y) coordinates of the intersection rectangle
Expand Down

0 comments on commit 6b46eaa

Please sign in to comment.