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

Function im_preprocess

yolox/motdt_tracker/reid_model.py:245–249  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

243
244
245def im_preprocess(image):
246 image = np.asarray(image, np.float32)
247 image -= np.array([104, 117, 123], dtype=np.float32).reshape(1, 1, -1)
248 image = image.transpose((2, 0, 1))
249 return image
250
251
252def extract_image_patches(image, bboxes):

Callers 1

extract_reid_featuresFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected