Spaces:
Running
Running
Added Multiple things
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import numpy as np
|
|
5 |
import cv2
|
6 |
|
7 |
# Existing imports
|
8 |
-
from models.lancros_interpolation import upsample_lancros
|
9 |
from models.fourier_interpolation import fourier_upscale
|
10 |
from models.autoencoder import autoencoder_upscale
|
11 |
from models.espcn import espcn_upscale
|
@@ -80,17 +80,17 @@ def edge_directed_interpolation(lr_img_pil, scale=2):
|
|
80 |
|
81 |
|
82 |
# === Interfaces === #
|
83 |
-
lancros_page = gr.Interface(
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
)
|
94 |
|
95 |
fourier_page = gr.Interface(
|
96 |
fn=fourier_upscale,
|
@@ -184,8 +184,8 @@ srcnn_page = gr.Interface(
|
|
184 |
|
185 |
# Tabs setup
|
186 |
demo = gr.TabbedInterface(
|
187 |
-
[srgan_page,
|
188 |
-
["GAN based Super Resolution",
|
189 |
"EspCN Super Resolution", "Random Forest based Super Resolution", "Edge Directed Interpolation", "RCAN Super Resolution","SRCNN Super Resolution"],
|
190 |
title="Image Super Resolution"
|
191 |
)
|
|
|
5 |
import cv2
|
6 |
|
7 |
# Existing imports
|
8 |
+
# from models.lancros_interpolation import upsample_lancros
|
9 |
from models.fourier_interpolation import fourier_upscale
|
10 |
from models.autoencoder import autoencoder_upscale
|
11 |
from models.espcn import espcn_upscale
|
|
|
80 |
|
81 |
|
82 |
# === Interfaces === #
|
83 |
+
# lancros_page = gr.Interface(
|
84 |
+
# fn=upsample_lancros,
|
85 |
+
# inputs=[gr.Image(label="Low Resolution Image"),
|
86 |
+
# gr.Slider(2, 6, step=1, value=2, label="Upscaling Factor"),],
|
87 |
+
# outputs=gr.Image(type="pil", label="High Resolution Images"),
|
88 |
+
# title="Lancros Upsampling",
|
89 |
+
# examples=[
|
90 |
+
# ["sample_images/0001.png"],
|
91 |
+
# ["sample_images/0172.png"]
|
92 |
+
# ]
|
93 |
+
# )
|
94 |
|
95 |
fourier_page = gr.Interface(
|
96 |
fn=fourier_upscale,
|
|
|
184 |
|
185 |
# Tabs setup
|
186 |
demo = gr.TabbedInterface(
|
187 |
+
[srgan_page,fourier_page, autoencoder_page, espcn_page, random_forest_page, edi_page, rcan_page,srcnn_page],
|
188 |
+
["GAN based Super Resolution","Fourier Interpolation", "Autoencoder based Super Resolution",
|
189 |
"EspCN Super Resolution", "Random Forest based Super Resolution", "Edge Directed Interpolation", "RCAN Super Resolution","SRCNN Super Resolution"],
|
190 |
title="Image Super Resolution"
|
191 |
)
|