Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -84,8 +84,8 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, up
|
|
84 |
semi.enable_xformers_memory_efficient_attention()
|
85 |
torch.cuda.empty_cache()
|
86 |
if upscale == "Yes":
|
87 |
-
|
88 |
-
image = refiner(Prompt, negative_prompt=negative_prompt, image=
|
89 |
torch.cuda.empty_cache()
|
90 |
return image
|
91 |
else:
|
|
|
84 |
semi.enable_xformers_memory_efficient_attention()
|
85 |
torch.cuda.empty_cache()
|
86 |
if upscale == "Yes":
|
87 |
+
image = semi(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale, output_type="latent").images
|
88 |
+
image = refiner(Prompt, negative_prompt=negative_prompt, image=image, denoising_start=high_noise_frac).images[0]
|
89 |
torch.cuda.empty_cache()
|
90 |
return image
|
91 |
else:
|