Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -63,11 +63,11 @@ def run(ref_path, ref_style, ref_prompt, prompt1, prompt2, prompt3):
|
|
63 |
|
64 |
zT, inversion_callback = inversion.make_inversion_callback(zts, offset=5)
|
65 |
|
66 |
-
g_cpu = torch.Generator(device='
|
67 |
g_cpu.manual_seed(10)
|
68 |
|
69 |
-
latents = torch.randn(len(prompts), 4, 128, 128, device='
|
70 |
-
dtype=pipeline.unet.dtype,).to('cuda
|
71 |
latents[0] = zT
|
72 |
|
73 |
images_a = pipeline(prompts, latents=latents,
|
|
|
63 |
|
64 |
zT, inversion_callback = inversion.make_inversion_callback(zts, offset=5)
|
65 |
|
66 |
+
g_cpu = torch.Generator(device='cuda')
|
67 |
g_cpu.manual_seed(10)
|
68 |
|
69 |
+
latents = torch.randn(len(prompts), 4, 128, 128, device='cuda', generator=g_cpu,
|
70 |
+
dtype=pipeline.unet.dtype,).to('cuda')
|
71 |
latents[0] = zT
|
72 |
|
73 |
images_a = pipeline(prompts, latents=latents,
|