mirror of
https://github.com/nod-ai/AMD-SHARK-Studio.git
synced 2026-04-03 03:00:17 -04:00
Force stable diffusion fp16 and fp32 to generate images with similar noise (#431)
This commit is contained in:
@@ -129,8 +129,8 @@ if __name__ == "__main__":
|
||||
latents = torch.randn(
|
||||
(batch_size, 4, height // 8, width // 8),
|
||||
generator=generator,
|
||||
dtype=dtype,
|
||||
)
|
||||
dtype=torch.float32,
|
||||
).to(dtype)
|
||||
|
||||
scheduler.set_timesteps(num_inference_steps)
|
||||
scheduler.is_scale_input_called = True
|
||||
|
||||
Reference in New Issue
Block a user