MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / _resize

Method _resize

yolox/deepsort_tracker/reid_model.py:133–134  ·  view source on GitHub ↗
(im, size)

Source from the content-addressed store, hash-verified

131 4. normalize
132 """
133 def _resize(im, size):
134 return cv2.resize(im.astype(np.float32)/255., size)
135
136 im_batch = torch.cat([self.norm(_resize(im, self.size)).unsqueeze(
137 0) for im in im_crops], dim=0).float()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected