diff --git a/run_trackers.py b/run_trackers.py index b39e18b4..31e48677 100644 --- a/run_trackers.py +++ b/run_trackers.py @@ -129,7 +129,7 @@ def run_trackers(trackers, seqs, evalType, shiftTypeSet): else: r = Result(t, s.name, subS.startFrame, subS.endFrame, res['type'], evalType, res['res'], res['fps'], None) - try: r.tmplsize = res['tmplsize'][0] + try: r.tmplsize = butil.d_to_f(res['tmplsize'][0]) except: pass r.refresh_dict() seqResults.append(r) @@ -143,4 +143,4 @@ def run_trackers(trackers, seqs, evalType, shiftTypeSet): return trackerResults if __name__ == "__main__": - main(sys.argv[1:]) \ No newline at end of file + main(sys.argv[1:]) diff --git a/scripts/butil/load_results.py b/scripts/butil/load_results.py index 5a0e374e..64dfb088 100644 --- a/scripts/butil/load_results.py +++ b/scripts/butil/load_results.py @@ -1,3 +1,6 @@ +import os +import sys +import json from config import * from scripts import * @@ -109,4 +112,4 @@ def load_scores(evalType, tracker, testname): attr.successRateList = map(lambda o:o*100, attr.successRateList) attrs.append(attr) attrs.sort() - return attrs \ No newline at end of file + return attrs diff --git a/scripts/butil/seq_config.py b/scripts/butil/seq_config.py index c785cc38..c6bb693f 100644 --- a/scripts/butil/seq_config.py +++ b/scripts/butil/seq_config.py @@ -2,6 +2,7 @@ import zipfile import shutil import copy +import json from PIL import Image @@ -126,7 +127,7 @@ def make_seq_configs(loadSeqs): + 'check if config.py\'s DOWNLOAD_SEQS is True' sys.exit(1) - imgfiles = os.listdir(imgSrc) + imgfiles = sorted(os.listdir(imgSrc)) imgfiles = [x for x in imgfiles if x.split('.')[1] in ['jpg', 'png']] nz, ext, startFrame, endFrame = get_format(name, imgfiles)