fffiloni commited on
Commit
ceb312c
·
1 Parent(s): 460c68a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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='cpu')
67
  g_cpu.manual_seed(10)
68
 
69
- latents = torch.randn(len(prompts), 4, 128, 128, device='cpu', generator=g_cpu,
70
- dtype=pipeline.unet.dtype,).to('cuda:0')
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,