Manjushri commited on
Commit
b66ce33
·
verified ·
1 Parent(s): 197df94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, up
98
  refiner.enable_xformers_memory_efficient_attention()
99
  refiner = refiner.to(device)
100
  torch.cuda.empty_cache()
101
- image = semi(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale, output_type="latent").images
102
  image = refiner(Prompt, negative_prompt=negative_prompt, image=image, denoising_start=high_noise_frac).images[0]
103
  torch.cuda.empty_cache()
104
  return image
 
98
  refiner.enable_xformers_memory_efficient_attention()
99
  refiner = refiner.to(device)
100
  torch.cuda.empty_cache()
101
+ image = semi(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale).images
102
  image = refiner(Prompt, negative_prompt=negative_prompt, image=image, denoising_start=high_noise_frac).images[0]
103
  torch.cuda.empty_cache()
104
  return image