mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-06 21:52:27 +00:00
fix to use zero for initial latent
This commit is contained in:
@@ -64,7 +64,8 @@ def do_sample(
|
||||
device: str,
|
||||
):
|
||||
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:
|
||||
latent = initial_latent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user