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

Class Upsample

diffsynth/models/wan_video_vae.py:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74class Upsample(nn.Upsample):
75
76 def forward(self, x):
77 """
78 Fix bfloat16 support for nearest neighbor interpolation.
79 """
80 return super().forward(x.float()).type_as(x)
81
82
83class Resample(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected