Пример #1
0
        if not run:
            print("skipping {}...".format(filename))
            continue

        for resolution in [1, 0.8, 0.6, 0.4]:
            for j in range(3):
                if (resolution != 1) and (not eval_resolution):
                    continue

                if resolution == 1 and not os.path.exists(PATH_TO_TMP_DIR +
                                                          "/" + filename):
                    dh = DataHandler(filename=filename,
                                     url=url,
                                     dest=PATH_TO_TMP_DIR)
                    print("downloading {}...".format(filename))
                    dh.download()
                    print("unzipping {}...".format(filename))
                    dh.unzip()
                    print("deleting zip file...")
                    dh.delete_zip()

                ################################
                # run algorithms
                ################################
                if platform == "linux" or platform == "linux2":
                    try:
                        ##################### ORB ###########################
                        res_orb_dir = os.path.join(PATH_TO_RESULT_DIR,
                                                   filename, "ORB")
                        if resolution != 1:
                            res_orb_dir = os.path.join(