MCPcopy Create free account
hub / github.com/amdegroot/ssd.pytorch / __init__

Method __init__

utils/augmentations.py:221–232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 labels (Tensor): the class labels for each bbox
220 """
221 def __init__(self):
222 self.sample_options = (
223 # using entire original input image
224 None,
225 # sample a patch s.t. MIN jaccard w/ obj in .1,.3,.4,.7,.9
226 (0.1, None),
227 (0.3, None),
228 (0.7, None),
229 (0.9, None),
230 # randomly sample a patch
231 (None, None),
232 )
233
234 def __call__(self, image, boxes=None, labels=None):
235 height, width, _ = image.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected