MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / posterize

Function posterize

timm/data/auto_augment.py:151–154  ·  view source on GitHub ↗
(img, bits_to_keep, **__)

Source from the content-addressed store, hash-verified

149
150
151def posterize(img, bits_to_keep, **__):
152 if bits_to_keep >= 8:
153 return img
154 return ImageOps.posterize(img, bits_to_keep)
155
156
157def contrast(img, factor, **__):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected