MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / _convert

Function _convert

yolox/data/data_augment.py:151–155  ·  view source on GitHub ↗
(image, alpha=1, beta=0)

Source from the content-addressed store, hash-verified

149
150def _distort(image):
151 def _convert(image, alpha=1, beta=0):
152 tmp = image.astype(float) * alpha + beta
153 tmp[tmp < 0] = 0
154 tmp[tmp > 255] = 255
155 image[:] = tmp
156
157 image = image.copy()
158

Callers 1

_distortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected