original_docstring: Parses the yolo-v3 layer configuration file and returns module definitions
docstring: Parses the yolo-v3 layer configuration file and returns module definitions
docstring_tokens: Parses the yolo - v3 layer configuration file and returns module definitions
code: def parse_model_config(path):
      """Parses the yolo-v3 layer configuration file and returns module definitions"""
      file = open(path, 'r')
      lines = file.read().split('\n')
      lines = [x for x in lines if x and not x.startswith('#')]
      lines = [x.rstrip().lstrip() for x in lines]  # get rid of fringe whitespaces
      module_defs = []
      for line in lines:
          if line.startswith('['):  # This marks the start of a new block
              module_defs.append({})
              module_defs[-1]['type'] = line[1:-1].rstrip()
              if module_defs[-1]['type'] == 'convolutional':
                  module_defs[-1]['batch_normalize'] = 0
          else:
              key, value = line.split("=")
              value = value.strip()
              module_defs[-1][key.rstrip()] = value.strip()
  
      return module_defs
code_tokens: def parse_model_config ( path ) : file = open ( path , 'r' ) lines = file . read ( ) . split ( '\n' ) lines = [ x for x in lines if x and not x . startswith ( '#' ) ] lines = [ x . rstrip ( ) . lstrip ( ) for x in lines ] module_defs = [ ] for line in lines : if line . startswith ( '[' ) : module_defs . append ( { } ) module_defs [ - 1 ] [ 'type' ] = line [ 1 : - 1 ] . rstrip ( ) if module_defs [ - 1 ] [ 'type' ] == 'convolutional' : module_defs [ - 1 ] [ 'batch_normalize' ] = 0 else : key , value = line . split ( "=" ) value = value . strip ( ) module_defs [ - 1 ] [ key . rstrip ( ) ] = value . strip ( ) return module_defs
short_docstring: Parses the yolo-v3 layer configuration file and returns module definitions
short_docstring_tokens: Parses the yolo - v3 layer configuration file and returns module definitions
comment: """Parses the yolo-v3 layer configuration file and returns module definitions"""$SEP$# get rid of fringe whitespaces
  $SEP$# This marks the start of a new block
  