Manjushri commited on
Commit
1c08fd3
1 Parent(s): c55678d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def genie (prompt, negative_prompt, height, width, scale, steps, seed, upscaler)
20
  pipe.enable_xformers_memory_efficient_attention()
21
  torch.cuda.empty_cache()
22
  generator = torch.Generator(device=device).manual_seed(seed)
23
- int_image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=steps, height=height, width=width, guidance_scale=scale, num_images_per_prompt=1, generator=generator).images
24
  torch.cuda.empty_cache()
25
  if upscaler == 'Yes':
26
  torch.cuda.max_memory_allocated(device='cuda')
 
20
  pipe.enable_xformers_memory_efficient_attention()
21
  torch.cuda.empty_cache()
22
  generator = torch.Generator(device=device).manual_seed(seed)
23
+ int_image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=steps, height=height, width=width, guidance_scale=scale, num_images_per_prompt=1, generator=generator, output_type="latent").images
24
  torch.cuda.empty_cache()
25
  if upscaler == 'Yes':
26
  torch.cuda.max_memory_allocated(device='cuda')