MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / color_normalize

Function color_normalize

eval_video_segmentation.py:244–248  ·  view source on GitHub ↗
(x, mean=[0.485, 0.456, 0.406], std=[0.228, 0.224, 0.225])

Source from the content-addressed store, hash-verified

242
243
244def color_normalize(x, mean=[0.485, 0.456, 0.406], std=[0.228, 0.224, 0.225]):
245 for t, m, s in zip(x, mean, std):
246 t.sub_(m)
247 t.div_(s)
248 return x
249
250
251if __name__ == '__main__':

Callers 1

read_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected