| 17 | import rrc_evaluation_funcs |
| 18 | |
| 19 | def argparser(): |
| 20 | parse = argparse.ArgumentParser() |
| 21 | parse.add_argument('-g', dest='g', default='./gt.zip', help="Path of the Ground Truth file. In most cases, the Ground Truth will be included in the same Zip file named 'gt.zip', gt.txt' or 'gt.json'. If not, you will be able to get it on the Downloads page of the Task.") |
| 22 | parse.add_argument('-s', dest='s', default='./submit.zip', help="Path of your method's results file.") |
| 23 | parse.add_argument('-o', dest='o', help="Path to a directory where to copy the file 'results.zip' that containts per-sample results.") |
| 24 | parse.add_argument('-p', dest='p', help="JSON string parameters to override the script default parameters. The parameters that can be overrided are inside the function 'default_evaluation_params' located at the begining of the evaluation Script. use: -p '{\"CRLF\":true}'") |
| 25 | parse.add_argument('-c', dest='choice', default='IoU', help="choose algorithm for differet tasks.(Challenges 1、2 use 'DetEva' Challenges 4 use 'IoU', default 'IoU')") |
| 26 | args = parse.parse_args() |
| 27 | return args |
| 28 | |
| 29 | if __name__=='__main__': |
| 30 | args = argparser() |