def parse_args():
    parser = argparse.ArgumentParser(description='Train a Fast R-CNN network')
    parser.add_argument('--gpu', dest='gpu_id', help='GPU device id to use [0]',
                        default=0, type=int)
    parser.add_argument('--cpu', dest='cpu_mode',
                        help='Use CPU mode (overrides --gpu)',
                        action='store_true')
    parser.add_argument('--net', dest='demo_net', help='Network to use [vgg16]',
                        choices=NETS.keys(), default='vgg16')

    args = parser.parse_args()

    return args
Handler for exit menu command and close window event.
dataset/ETHPy150Open rbgirshick/fast-rcnn/tools/demo.py/parse_args--crossover with--dataset/ETHPy150Open cpbotha/nvpy/nvpy/view.py/View.handler_close