Singularity666 commited on
Commit
c57515e
·
1 Parent(s): a489489

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -97,9 +97,11 @@ def main():
97
  resized_image_bytes = resize_image(image_bytes)
98
 
99
  st.success("Upscaling image with stable-diffusion-x4-latent-upscaler...")
 
100
  upscaled_image_bytes = upscale_image_stable_diffusion(resized_image_bytes)
101
 
102
  st.success("Further upscaling image with GFPGAN...")
 
103
  img = further_upscale_image(upscaled_image_bytes)
104
 
105
  st.image(img, caption='Upscaled Image', use_column_width=True)
 
97
  resized_image_bytes = resize_image(image_bytes)
98
 
99
  st.success("Upscaling image with stable-diffusion-x4-latent-upscaler...")
100
+ # use the resized_image_bytes instead of the original image_bytes
101
  upscaled_image_bytes = upscale_image_stable_diffusion(resized_image_bytes)
102
 
103
  st.success("Further upscaling image with GFPGAN...")
104
+ # Again use the upscaled_image_bytes from the previous step for the GFPGAN
105
  img = further_upscale_image(upscaled_image_bytes)
106
 
107
  st.image(img, caption='Upscaled Image', use_column_width=True)