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

Function _make_gaussian3x3_kernel

diffsynth/pipelines/flashvsr_tiny.py:46–52  ·  view source on GitHub ↗
(dtype, device)

Source from the content-addressed store, hash-verified

44# 小波式模糊与分解/重构(ColorCorrector 用)
45# -----------------------------
46def _make_gaussian3x3_kernel(dtype, device) -> torch.Tensor:
47 vals = [
48 [0.0625, 0.125, 0.0625],
49 [0.125, 0.25, 0.125 ],
50 [0.0625, 0.125, 0.0625],
51 ]
52 return torch.tensor(vals, dtype=dtype, device=device)
53
54
55def _wavelet_blur(x: torch.Tensor, radius: int) -> torch.Tensor:

Callers 1

_wavelet_blurFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected