-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Motmetrics upgrade #263
base: master
Are you sure you want to change the base?
Motmetrics upgrade #263
Conversation
makes changes to make data entries compatable with motmetrics version 1.2 for faster runtime
Thanks for the PR, @ahuller3. I'll take a look! |
Looks like there are a few type complaints by
|
@@ -154,8 +149,9 @@ def eval_tracks( | |||
path_datasets = glob.glob(os.path.join(path_dataset_root, "*")) | |||
num_total_gt = 0 | |||
|
|||
path_counter = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like we don't use this path_counter
elsewhere, can we remove it?
Could you update the requirements file as well, where the |
if bbox[3] > 0 and in_distance_range_pose(np.zeros(3), center, d_min, d_max): | ||
track_label_uuid = gt_data[i]["track_label_uuid"] | ||
if gt_data[i]["track_label_uuid"] not in track_label_uuids: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Anna, could you add a brief inline comment here explaining the logic for what we are doing here?
@@ -165,7 +159,7 @@ def eval_tracks( | |||
path_track_data = sorted( | |||
glob.glob(os.path.join(os.fspath(path_tracker_output), "per_sweep_annotations_amodal", "*")) | |||
) | |||
|
|||
all_uuids: Dict[str, int] = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we add a brief inline comment here explaining what the all_uuids
dictionary is for?
Reformats data (uuids from string to int) and deals with invalid distances to make compatible with motmetrics version 1.2 which significantly improves runtime