MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / unpatchify

Method unpatchify

diffsynth/models/flux_dit.py:302–304  ·  view source on GitHub ↗
(self, hidden_states, height, width)

Source from the content-addressed store, hash-verified

300
301
302 def unpatchify(self, hidden_states, height, width):
303 hidden_states = rearrange(hidden_states, "B (H W) (C P Q) -> B C (H P) (W Q)", P=2, Q=2, H=height//2, W=width//2)
304 return hidden_states
305
306
307 def prepare_image_ids(self, latents):

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected