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

Method __init__

examples/FasterRCNN/data.py:73–78  ·  view source on GitHub ↗
(self, cfg)

Source from the content-addressed store, hash-verified

71 """
72
73 def __init__(self, cfg):
74 self.cfg = cfg
75 self.aug = imgaug.AugmentorList([
76 CustomResize(cfg.PREPROC.TRAIN_SHORT_EDGE_SIZE, cfg.PREPROC.MAX_SIZE),
77 imgaug.Flip(horiz=True)
78 ])
79
80 def __call__(self, roidb):
81 fname, boxes, klass, is_crowd = roidb["file_name"], roidb["boxes"], roidb["class"], roidb["is_crowd"]

Callers

nothing calls this directly

Calls 1

CustomResizeClass · 0.90

Tested by

no test coverage detected