MCPcopy Create free account
hub / github.com/OpenGVLab/UniFormerV2 / posterize

Function posterize

slowfast/datasets/rand_augment.py:175–178  ·  view source on GitHub ↗
(img, bits_to_keep, **__)

Source from the content-addressed store, hash-verified

173
174
175def posterize(img, bits_to_keep, **__):
176 if bits_to_keep >= 8:
177 return img
178 return ImageOps.posterize(img, bits_to_keep)
179
180
181def contrast(img, factor, **__):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected