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

Method patchify

diffsynth/models/flux_controlnet.py:46–48  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

44
45
46 def patchify(self, hidden_states):
47 hidden_states = rearrange(hidden_states, "B C (H P) (W Q) -> B (H W) (C P Q)", P=2, Q=2)
48 return hidden_states
49
50
51 def align_res_stack_to_original_blocks(self, res_stack, num_blocks, hidden_states):

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected