MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __init__

Method __init__

tensorpack/dataflow/dataset/ilsvrc.py:26–34  ·  view source on GitHub ↗
(self, dir=None)

Source from the content-addressed store, hash-verified

24 """
25
26 def __init__(self, dir=None):
27 if dir is None:
28 dir = get_dataset_path('ilsvrc_metadata')
29 self.dir = os.path.expanduser(dir)
30 mkdir_p(self.dir)
31 f = os.path.join(self.dir, 'synsets.txt')
32 if not os.path.isfile(f):
33 self._download_caffe_meta()
34 self.caffepb = None
35
36 def get_synset_words_1000(self):
37 """

Callers

nothing calls this directly

Calls 4

_download_caffe_metaMethod · 0.95
get_dataset_pathFunction · 0.85
mkdir_pFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected