Skip to content

Commit

Permalink
Update eval.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadyan authored Feb 19, 2021
1 parent aeee3aa commit aa1604d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions objectron/dataset/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
_MAX_PIXEL_ERROR = 20.
_MAX_AZIMUTH_ERROR = 30.
_MAX_POLAR_ERROR = 20.
_MAX_DISTANCE = 0.2 # In meters
_MAX_DISTANCE = 1.0 # In meters
_NUM_BINS = 21

def safe_divide(i1, i2):
Expand Down Expand Up @@ -172,8 +172,8 @@ def evaluate(self, batch):
adds = _MAX_DISTANCE

iou_hit_miss.record_hit_miss(iou)
add_hit_miss.record_hit_miss(add)
adds_hit_miss.record_hit_miss(adds)
add_hit_miss.record_hit_miss(add, greater=False)
adds_hit_miss.record_hit_miss(adds, greater=False)
pixel_hit_miss.record_hit_miss(pixel_error, greater=False)
azimuth_hit_miss.record_hit_miss(azimuth_error, greater=False)
polar_hit_miss.record_hit_miss(polar_error, greater=False)
Expand Down Expand Up @@ -551,4 +551,4 @@ def main(argv):
if __name__ == '__main__':
flags.mark_flag_as_required('report_file')
flags.mark_flag_as_required('eval_data')
app.run(main)
app.run(main)

0 comments on commit aa1604d

Please sign in to comment.