SuperSecureHuman commited on
Commit
eadf2af
1 Parent(s): dcc0b46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -0
app.py CHANGED
@@ -107,6 +107,32 @@ def process_image(img):
107
  image = gr.inputs.Image()
108
  image_out = gr.outputs.Image()
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  gr.Interface(
111
  process_image,
112
  title="EDSR - Enhanced Deep Residual Networks for Single Image Super-Resolution",
 
107
  image = gr.inputs.Image()
108
  image_out = gr.outputs.Image()
109
 
110
+ markdown_part = """
111
+
112
+ This space is the demo for the EDSR (Enhanced Deep Residual Networks for Single Image Super-Resolution) model. This model surpassed the performace of the current available SOTA models.
113
+
114
+ Paper Link - https://arxiv.org/pdf/1707.02921
115
+
116
+ Keras Example link - https://keras.io/examples/vision/edsr/
117
+
118
+
119
+ TODO:
120
+
121
+ Hack to make this work for any image size. Currently the model takes input of image size 150 x 150.
122
+
123
+ We pad the input image with transparent pixels so that it is a square image, which is a multiple of 150 x 150
124
+
125
+ Then we chop the image into multiple 150 x 150 sub images
126
+
127
+ Upscale it and stitch it together.
128
+
129
+ The output image might look a bit off, because each sub-image dosent have data about other sub-images.
130
+
131
+ This approach assumes that the subimage has enough data about its surroundings
132
+ """
133
+
134
+ gr.markdown(markdown_part)
135
+
136
  gr.Interface(
137
  process_image,
138
  title="EDSR - Enhanced Deep Residual Networks for Single Image Super-Resolution",