mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
fix to use zero for initial latent
This commit is contained in:
@@ -64,7 +64,8 @@ def do_sample(
|
|||||||
device: str,
|
device: str,
|
||||||
):
|
):
|
||||||
if initial_latent is None:
|
if initial_latent is None:
|
||||||
latent = torch.ones(1, 16, height // 8, width // 8, device=device) * 0.0609
|
# latent = torch.ones(1, 16, height // 8, width // 8, device=device) * 0.0609
|
||||||
|
latent = torch.zeros(1, 16, height // 8, width // 8, device=device)
|
||||||
else:
|
else:
|
||||||
latent = initial_latent
|
latent = initial_latent
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user