MCPcopy Create free account
hub / github.com/BVLC/caffe / valid_dirname

Function valid_dirname

scripts/download_model_binary.py:42–48  ·  view source on GitHub ↗
(dirname)

Source from the content-addressed store, hash-verified

40
41
42def valid_dirname(dirname):
43 try:
44 return parse_readme_frontmatter(dirname)
45 except Exception as e:
46 print('ERROR: {}'.format(e))
47 raise argparse.ArgumentTypeError(
48 'Must be valid Caffe model directory with a correct readme.md')
49
50
51if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

parse_readme_frontmatterFunction · 0.85

Tested by

no test coverage detected