Skip to content

Commit 4e455cb

Browse files
committed
Add support for timestamps with microsecond precision.
1 parent c070fdb commit 4e455cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Evaluation/get_ava_performance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import argparse
1818
from collections import defaultdict
1919
import csv
20+
import decimal
2021
import heapq
2122
import logging
2223
import pprint
@@ -34,7 +35,7 @@ def print_time(message, start):
3435

3536
def make_image_key(video_id, timestamp):
3637
"""Returns a unique identifier for a video id & timestamp."""
37-
return "%s,%04d" % (video_id, int(timestamp))
38+
return "%s,%.6f" % (video_id, decimal.Decimal(timestamp))
3839

3940

4041
def read_csv(csv_file, class_whitelist=None, capacity=0):

0 commit comments

Comments
 (0)