diff --git a/run.py b/run.py index 75402e5c8226f79f7f9c00f29846c0d696db6107..4d94222297bf3fd8fcab5f00d0f82a88edfda72c 100644 --- a/run.py +++ b/run.py @@ -109,6 +109,12 @@ def main(path_to_config_file): for file in las_segmented_files: os.system("cp {} {}".format(file, config["general"]["output_folder"])) + ### if both semantic and instance segmentation are run transfer data to the output folder + if config["general"]["run_sematic_segmentation"] and config["general"]["run_instance_segmentation"]: + source_folder = os.path.join(config["general"]["input_folder"], "results") + # copy all the files and folders from the source folder to the output folder + os.system("cp -r {} {}".format(source_folder + '/*', config["general"]["output_folder"])) + if __name__ == "__main__": parser = argparse.ArgumentParser('Run the application in a production environment.') parser.add_argument("--path_to_config_file", type=str, default="./config/config.yaml")