Skip to content
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

Allow comparison_plots.py to take trackers name to include in plots as parameters #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scripts/comparison_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@
data_fol = os.path.join(tracker_folder, dataset)
trackers = os.listdir(data_fol)
out_loc = os.path.join(plots_folder, dataset)

if len(sys.argv[1:]) > 0:
if not set(sys.argv[1:]).issubset(set(trackers)):
not_found_trackers = set(sys.argv[1:]) - set(trackers)
raise Exception(f"The following trackers could not be found in {data_fol}: {', '.join(not_found_trackers)}")
trackers = sys.argv[1:]

for cls in classes:
trackeval.plotting.plot_compare_trackers(data_fol, trackers, cls, out_loc)