mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
allow generation to be started with any dimensions specified
This commit is contained in:
@@ -75,3 +75,6 @@ class SD3Inferencer(torch.nn.Module):
|
||||
|
||||
def add_noise_to_latent(self, x, noise, amount):
|
||||
return x * (1 - amount) + noise * amount
|
||||
|
||||
def fix_dimensions(self, width, height):
|
||||
return width // 16 * 16, height // 16 * 16
|
||||
|
Reference in New Issue
Block a user