This commit is contained in:
kijai 2026-04-01 18:02:40 +03:00
parent e433039102
commit c35def1107
2 changed files with 1 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class ZeroSFT(nn.Module):
else:
h_raw = h
h = h.add_(self.zero_conv(c))
h = h + self.zero_conv(c)
if h_ori is not None and self.pre_concat:
h = torch.cat([h_ori, h], dim=1)
actv = self.mlp_shared(c)

View File

@ -1,5 +1,4 @@
import torch
import comfy.model_management
from comfy.ldm.modules.diffusionmodules.openaimodel import Upsample
@ -29,7 +28,6 @@ class SUPIRPatch:
return
x = kwargs["x"]
batch_size = x.shape[0]
comfy.model_management.load_models_gpu([self.model_patch])
hint = self.hint_latent.to(device=x.device, dtype=x.dtype)
if hint.shape[0] < batch_size:
hint = hint.repeat(batch_size // hint.shape[0], 1, 1, 1)[:batch_size]