Manjushri commited on
Commit
bb9a542
1 Parent(s): ece3ed4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -312,7 +312,7 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, re
312
  refiner.enable_xformers_memory_efficient_attention()
313
  refiner = refiner.to(device)
314
  torch.cuda.empty_cache()
315
- int_image = pipe(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale).images
316
  image = refiner(Prompt, negative_prompt=negative_prompt, image=int_image, denoising_start=high_noise_frac).images[0]
317
  torch.cuda.empty_cache()
318
  if upscale == "Yes":
 
312
  refiner.enable_xformers_memory_efficient_attention()
313
  refiner = refiner.to(device)
314
  torch.cuda.empty_cache()
315
+ int_image = pipe(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale, output_type="latent").images
316
  image = refiner(Prompt, negative_prompt=negative_prompt, image=int_image, denoising_start=high_noise_frac).images[0]
317
  torch.cuda.empty_cache()
318
  if upscale == "Yes":