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

Function _wavelet_reconstruct

diffsynth/pipelines/flashvsr_tiny_long.py:78–81  ·  view source on GitHub ↗
(content: torch.Tensor, style: torch.Tensor, levels: int = 5)

Source from the content-addressed store, hash-verified

76
77
78def _wavelet_reconstruct(content: torch.Tensor, style: torch.Tensor, levels: int = 5) -> torch.Tensor:
79 c_high, _ = _wavelet_decompose(content, levels=levels)
80 _, s_low = _wavelet_decompose(style, levels=levels)
81 return c_high + s_low
82
83
84# -----------------------------

Callers 1

forwardMethod · 0.70

Calls 1

_wavelet_decomposeFunction · 0.70

Tested by

no test coverage detected