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

Class Resize

utils/augmentations.py:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103
104class Resize(object):
105 def __init__(self, size=300):
106 self.size = size
107
108 def __call__(self, image, boxes=None, labels=None):
109 image = cv2.resize(image, (self.size,
110 self.size))
111 return image, boxes, labels
112
113
114class RandomSaturation(object):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected