fix img2img

This commit is contained in:
AUTOMATIC1111
2024-06-28 09:23:41 +03:00
parent 0c7bdcc1b1
commit 0b64633584
3 changed files with 10 additions and 4 deletions

View File

@@ -73,3 +73,6 @@ class SD3Inferencer(torch.nn.Module):
(self, 'cond_stage_model'),
(self, 'model'),
]
def add_noise_to_latent(self, x, noise, amount):
return x * (1 - amount) + noise * amount