Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def genie (Prompt, negative_prompt, height, width, scale, steps, seed, upscale,
|
|
18 |
generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
|
19 |
if upscale == "Yes":
|
20 |
#n_steps = 30
|
21 |
-
int_image = pipe(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale
|
22 |
image = refiner(Prompt, negative_prompt=negative_prompt, image=int_image, denoising_start=high_noise_frac).images[0]
|
23 |
return image
|
24 |
else:
|
@@ -33,7 +33,7 @@ gr.Interface(fn=genie, inputs=[gr.Textbox(label='What you want the AI to generat
|
|
33 |
gr.Slider(25, maximum=100, value=50, step=25, label='Number of Iterations'),
|
34 |
gr.Slider(minimum=0, step=1, maximum=9999999999999999, randomize=True, label='Seed: 0 is Random'),
|
35 |
gr.Radio(["Yes", "No"], label='SDXL 1.0 Refiner', value='No'),
|
36 |
-
gr.Slider(minimum=.
|
37 |
outputs=gr.Image(label='Generated Image'),
|
38 |
title="PhotoReal V3.6 with SDXL 1.0 Refiner - GPU",
|
39 |
description="<br><br><b/>Warning: This Demo is capable of producing NSFW content.",
|
|
|
18 |
generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
|
19 |
if upscale == "Yes":
|
20 |
#n_steps = 30
|
21 |
+
int_image = pipe(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale).images
|
22 |
image = refiner(Prompt, negative_prompt=negative_prompt, image=int_image, denoising_start=high_noise_frac).images[0]
|
23 |
return image
|
24 |
else:
|
|
|
33 |
gr.Slider(25, maximum=100, value=50, step=25, label='Number of Iterations'),
|
34 |
gr.Slider(minimum=0, step=1, maximum=9999999999999999, randomize=True, label='Seed: 0 is Random'),
|
35 |
gr.Radio(["Yes", "No"], label='SDXL 1.0 Refiner', value='No'),
|
36 |
+
gr.Slider(minimum=.9, maximum=.99, value=.8, step=.01, label='Refiner Denoise Start %')],
|
37 |
outputs=gr.Image(label='Generated Image'),
|
38 |
title="PhotoReal V3.6 with SDXL 1.0 Refiner - GPU",
|
39 |
description="<br><br><b/>Warning: This Demo is capable of producing NSFW content.",
|