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

Method patchify

diffsynth/models/flux_dit.py:297–299  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

295
296
297 def patchify(self, hidden_states):
298 hidden_states = rearrange(hidden_states, "B C (H P) (W Q) -> B (H W) (C P Q)", P=2, Q=2)
299 return hidden_states
300
301
302 def unpatchify(self, hidden_states, height, width):

Callers 9

construct_maskMethod · 0.95
forwardMethod · 0.95
usp_dit_forwardFunction · 0.45
model_fn_wan_videoFunction · 0.45
model_fn_wan_videoFunction · 0.45
lets_dance_fluxFunction · 0.45
model_fn_wan_videoFunction · 0.45
model_fn_wan_videoFunction · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected