Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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
|
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
|