Manjushri commited on
Commit
18437c4
1 Parent(s): b205433

Update app.py

Browse files

Raised iterations to 25

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ pipe = pipe.to(device)
12
  def upscale(low_res_img, prompt, negative_prompt):
13
  low_res_img = Image.open(low_res_img).convert("RGB")
14
  low_res_img = low_res_img.resize((128, 128))
15
- upscaled_image = pipe(prompt=prompt, negative_prompt=negative_prompt, image=low_res_img, guidance_scale=2, num_inference_steps=20).images[0]
16
  #upscaled_image.save("upsampled.png")
17
  return upscaled_image
18
  #launch interface
 
12
  def upscale(low_res_img, prompt, negative_prompt):
13
  low_res_img = Image.open(low_res_img).convert("RGB")
14
  low_res_img = low_res_img.resize((128, 128))
15
+ upscaled_image = pipe(prompt=prompt, negative_prompt=negative_prompt, image=low_res_img, guidance_scale=2, num_inference_steps=25).images[0]
16
  #upscaled_image.save("upsampled.png")
17
  return upscaled_image
18
  #launch interface