Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ refiner = refiner.to(device)
|
|
17 |
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 =
|
21 |
-
high_noise_frac = 0.
|
22 |
int_image = pipe(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale).images[0]
|
23 |
image = refiner(Prompt, negative_prompt=negative_prompt, image=int_image, num_inference_steps=n_steps, denoising_start=high_noise_frac).images[0]
|
24 |
return (int_image, image)
|
|
|
17 |
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 |
+
high_noise_frac = 0.95
|
22 |
int_image = pipe(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale).images[0]
|
23 |
image = refiner(Prompt, negative_prompt=negative_prompt, image=int_image, num_inference_steps=n_steps, denoising_start=high_noise_frac).images[0]
|
24 |
return (int_image, image)
|