From 209a9568f5673b36192509b91f49cb2b57df5f77 Mon Sep 17 00:00:00 2001 From: Aravind Battaje Date: Tue, 27 Mar 2018 18:35:25 -0400 Subject: [PATCH] Fix reading validation dataset Reading the data set assumed that there were no files in the ./data/validation folder. It doesn't behave well when a file is present. For example, README.txt in the ZIP provided as the validation sequences (https://drive.google.com/file/d/0B7Awq_aAemXQSnhBVW5LNmNvUU0/view) would be read a video sequence (directory). This update fixes this problem. --- run_tracker_evaluation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tracker_evaluation.py b/run_tracker_evaluation.py index cca216f..1702cc2 100644 --- a/run_tracker_evaluation.py +++ b/run_tracker_evaluation.py @@ -26,7 +26,7 @@ def main(): # iterate through all videos of evaluation.dataset if evaluation.video == 'all': dataset_folder = os.path.join(env.root_dataset, evaluation.dataset) - videos_list = [v for v in os.listdir(dataset_folder)] + videos_list = [v for v in os.listdir(dataset_folder) if os.path.isdir(os.path.join(dataset_folder, v))] videos_list.sort() nv = np.size(videos_list) speed = np.zeros(nv * evaluation.n_subseq)