def run(): C.QUERY = 'emeryville' C.params.update({ 'checks': 1024, 'trees': 1, 'vote_method': 'matchonce', 'num_neighbors': 1, 'dist_threshold': 70000, 'confstring': '', }) C.print_per = 1000 C.ambiguity = 75 C.topnresults = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] # C.locator_function = system.skew_location # C.locator_function = system.load_location # C.match_callback = system.dump_combined_matches C.cacheEnable = 0 C.tagcompute = 1 C.show_feature_pairs = False C.ranking_min_consistent = max(C.topnresults) C.ncells = 10 C.resultsdir = "/media/DATAPART2/ah/evgt" results, count = system.characterize(C) for n in C.topnresults: total_count = results[n] match_rate = float(total_count) / count print "matched {0}\t out of {1}\t = {2}\t in the top {3}".format( total_count, count, match_rate, n)
def run(): C.QUERY = 'emeryville' C.params.update({ 'checks': 1024, 'trees': 1, 'vote_method': 'matchonce', 'num_neighbors': 1, 'dist_threshold': 70000, 'confstring': '', }) C.print_per = 1000 C.ambiguity = 75 C.topnresults = [1,2,3,4,5,6,7,8,9,10] # C.locator_function = system.skew_location # C.locator_function = system.load_location # C.match_callback = system.dump_combined_matches C.cacheEnable = 0 C.tagcompute = 1 C.show_feature_pairs = False C.ranking_min_consistent = max(C.topnresults) C.ncells = 10 C.resultsdir = "/media/DATAPART2/ah/evgt" results, count = system.characterize(C) for n in C.topnresults: total_count = results[n] match_rate = float(total_count) / count print "matched {0}\t out of {1}\t = {2}\t in the top {3}".format(total_count, count, match_rate, n)
C.pose_param = { 'resultsdir' : '/media/DATAPART2/ah/pose_runs/oakland', 'run_info' : 'run_info.txt', 'pose_file' : 'pose_results.txt', 'extras_file' : 'extras.txt', 'cheat' : False, 'runflag' : 11, 'remove_ground' : True, 'use_weight' : True, 'solve_bad' : False, 'draw_tags' : False, 'maxratio' : 0.8, 'ransac_iter' : 10**7, 'inlier_error' : 0.01 } # SUBSELECTIONS #C.selection = ['2011-10-28_13-00-41_047','2011-10-28_11-59-08_593'] #C.selection = ['2011-10-28_12-51-25_790'] #C.selection = ['2011-10-28_12-52-56_242'] debug = True try: print 'Query selection size: %d' % len(C.selection) except TypeError: debug = False if 'DEBUG' in os.environ or debug: system.characterize(C) else: with system.MultiprocessExecution(): system.characterize(C) # vim: et sw=2
'pose_file': 'pose_results.txt', 'extras_file': 'extras.txt', 'cheat': False, 'runflag': 11, 'remove_ground': False, 'use_weight': True, 'solve_bad': False, 'draw_tags': False, 'maxratio': 0.8, 'ransac_iter': 10**7, 'inlier_error': 0.01 } # SUBSELECTIONS #C.selection = ['2011-10-28_13-00-41_047','2011-10-28_11-59-08_593'] #C.selection = ['2011-10-28_12-51-25_790'] #C.selection = ['2011-10-28_12-52-56_242'] debug = True try: print 'Query selection size: %d' % len(C.selection) except TypeError: debug = False if 'DEBUG' in os.environ or debug: system.characterize(C) else: with system.MultiprocessExecution(): system.characterize(C) # vim: et sw=2