MCPcopy Create free account
hub / github.com/NVlabs/SPADE / __flip

Function __flip

data/base_dataset.py:125–128  ·  view source on GitHub ↗
(img, flip)

Source from the content-addressed store, hash-verified

123
124
125def __flip(img, flip):
126 if flip:
127 return img.transpose(Image.FLIP_LEFT_RIGHT)
128 return img

Callers 1

get_transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected