Thanks to visit codestin.com
Credit goes to github.com

Skip to content

branches_added initialization location #24

@SiddharthDey

Description

@SiddharthDey

I think the branches_added variable initialization should be done before the for loop over detections instead of after as done currently:
openmht/mht.py

for index, detection in enumerate(detections):
    branches_added = 0  # Number of branches added to the track tree at this frame
    detection_id = str(index)

This causes the loop to only count branches added for the last detection. Instead, we should do the initiliazation before the loop:

branches_added = 0  # Number of branches added to the track tree at this frame
for index, detection in enumerate(detections):
    detection_id = str(index)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions