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

Method __call__

utils/augmentations.py:204–205  ·  view source on GitHub ↗
(self, cvimage, boxes=None, labels=None)

Source from the content-addressed store, hash-verified

202
203class ToTensor(object):
204 def __call__(self, cvimage, boxes=None, labels=None):
205 return torch.from_numpy(cvimage.astype(np.float32)).permute(2, 0, 1), boxes, labels
206
207
208class RandomSampleCrop(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected