MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / channel_first

Function channel_first

code/dataset.py:92–95  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

90 return img
91
92def channel_first(img):
93 if img.shape[-1] == 3:
94 return rearrange(img, 'h w c -> c h w')
95 return img
96
97
98

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected