parameters: ()
return_statement: return args
docstring: Parse input arguments.
docstring_summary: Parse input arguments.
docstring_tokens: Parse input arguments .
function: def parse_args():
      """Parse input arguments."""
      parser = argparse.ArgumentParser(description='Faster R-CNN demo')
      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 [ResNet-101]',
                          choices=NETS.keys(), default='ResNet-101')
  
      args = parser.parse_args()
  
      return args
function_tokens: def parse_args ( ) : parser = argparse . ArgumentParser ( description = 'Faster R-CNN demo' ) 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 [ResNet-101]' , choices = NETS . keys ( ) , default = 'ResNet-101' ) args = parser . parse_args ( ) return args