Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -314,7 +314,7 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, re
|
|
314 |
pipe.enable_xformers_memory_efficient_attention()
|
315 |
pipe = pipe.to(device)
|
316 |
torch.cuda.empty_cache()
|
317 |
-
image =
|
318 |
torch.cuda.empty_cache()
|
319 |
if upscale == "Yes":
|
320 |
refiner = DiffusionPipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16, use_safetensors=True)
|
|
|
314 |
pipe.enable_xformers_memory_efficient_attention()
|
315 |
pipe = pipe.to(device)
|
316 |
torch.cuda.empty_cache()
|
317 |
+
image = pipe(Prompt, negative_prompt=negative_prompt, image=int_image, denoising_start=high_noise_frac).images[0]
|
318 |
torch.cuda.empty_cache()
|
319 |
if upscale == "Yes":
|
320 |
refiner = DiffusionPipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16, use_safetensors=True)
|