sayakpaul HF staff commited on
Commit
1f3f870
1 Parent(s): 7652e71

add: example images.

Browse files
app.py CHANGED
@@ -2,14 +2,74 @@ import gradio as gr
2
 
3
  demo = gr.Blocks()
4
 
5
- io1 = gr.Interface.load("spaces/sayakpaul/raindrop-deraining-maxim")
6
- io2 = gr.Interface.load("spaces/sayakpaul/sots-outdoor-dehazing-maxim")
7
- io3 = gr.Interface.load("spaces/sayakpaul/sots-indoor-dehazing-maxim")
8
- io4 = gr.Interface.load("spaces/sayakpaul/fivek-retouching-maxim")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
- io5 = gr.Interface.load("spaces/sayakpaul/gopro-deblurring-maxim")
11
- io6 = gr.Interface.load("spaces/sayakpaul/sidd-denoising-maxim")
12
- io7 = gr.Interface.load("spaces/sayakpaul/lol-enhancement-maxim")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  with demo:
15
  gr.TabbedInterface(
 
2
 
3
  demo = gr.Blocks()
4
 
5
+ io1 = gr.Interface.load(
6
+ "spaces/sayakpaul/raindrop-deraining-maxim",
7
+ examples=[
8
+ ["images/Deraining/input/15.png"],
9
+ ["images/Deraining/input/55.png"],
10
+ ["images/Deraining/input/1.png"],
11
+ ["images/Deraining/input/0.jpg"],
12
+ ],
13
+ )
14
+ io2 = gr.Interface.load(
15
+ "spaces/sayakpaul/sots-outdoor-dehazing-maxim",
16
+ examples=[
17
+ ["images/Dehazing/input/1444_10.png"],
18
+ ["images/Dehazing/input/0003_0.8_0.2.png"],
19
+ ["images/Dehazing/input/0048_0.9_0.2.png"],
20
+ ["images/Dehazing/input/0010_0.95_0.16.png"],
21
+ ["images/Dehazing/input/0014_0.8_0.12.png"],
22
+ ["images/Dehazing/input/1440_10.png"],
23
+ ],
24
+ )
25
+ io3 = gr.Interface.load(
26
+ "spaces/sayakpaul/sots-indoor-dehazing-maxim",
27
+ examples=[
28
+ ["images/Dehazing/input/1444_10.png"],
29
+ ["images/Dehazing/input/0003_0.8_0.2.png"],
30
+ ["images/Dehazing/input/0048_0.9_0.2.png"],
31
+ ["images/Dehazing/input/0010_0.95_0.16.png"],
32
+ ["images/Dehazing/input/0014_0.8_0.12.png"],
33
+ ["images/Dehazing/input/1440_10.png"],
34
+ ],
35
+ )
36
+ io4 = gr.Interface.load(
37
+ "spaces/sayakpaul/fivek-retouching-maxim",
38
+ examples=[
39
+ ["images/Enhancement/input/748.png"],
40
+ ["images/Enhancement/input/111.png"],
41
+ ["images/Enhancement/input/a4541-DSC_0040-2.png"],
42
+ ["images/Enhancement/input/1.png"],
43
+ ],
44
+ )
45
 
46
+ io5 = gr.Interface.load(
47
+ "spaces/sayakpaul/gopro-deblurring-maxim",
48
+ examples=[
49
+ ["images/Deblurring/input/1fromGOPR1096.MP4.png"],
50
+ ["images/Deblurring/input/1fromGOPR0950.png"],
51
+ ["images/Deblurring/input/109fromGOPR1096.MP4.png"],
52
+ ["images/Deblurring/input/110fromGOPR1087.MP4.png"],
53
+ ],
54
+ )
55
+ io6 = gr.Interface.load(
56
+ "spaces/sayakpaul/sidd-denoising-maxim",
57
+ examples=[
58
+ ["images/Denoising/input/0039_04.png"],
59
+ ["images/Denoising/input/0003_30.png"],
60
+ ["images/Denoising/input/0011_23.png"],
61
+ ["images/Denoising/input/0013_19.png"],
62
+ ],
63
+ )
64
+ io7 = gr.Interface.load(
65
+ "spaces/sayakpaul/lol-enhancement-maxim",
66
+ examples=[
67
+ ["images/Enhancement/input/748.png"],
68
+ ["images/Enhancement/input/111.png"],
69
+ ["images/Enhancement/input/a4541-DSC_0040-2.png"],
70
+ ["images/Enhancement/input/1.png"],
71
+ ],
72
+ )
73
 
74
  with demo:
75
  gr.TabbedInterface(
glob_p.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import glob
2
+ import os
3
+
4
+ root_path = "images"
5
+ tasks = ["Deraining", "Dehazing", "Enhancement", "Deblurring", "Denoising"]
6
+ task_wise_image_paths = {}
7
+
8
+ for task in tasks:
9
+ task_path = os.path.join(root_path, task, "input")
10
+ image_paths = os.listdir(task_path)
11
+ image_paths = [os.path.join(task_path, image_path) for image_path in image_paths]
12
+ image_paths = [[i] for i in image_paths]
13
+ task_wise_image_paths.update({task: image_paths})
14
+
15
+ print(task_wise_image_paths)
images/Deblurring/input/109fromGOPR1096.MP4.png ADDED
images/Deblurring/input/110fromGOPR1087.MP4.png ADDED
images/Deblurring/input/1fromGOPR0950.png ADDED
images/Deblurring/input/1fromGOPR1096.MP4.png ADDED
images/Dehazing/input/0003_0.8_0.2.png ADDED
images/Dehazing/input/0010_0.95_0.16.png ADDED
images/Dehazing/input/0014_0.8_0.12.png ADDED
images/Dehazing/input/0048_0.9_0.2.png ADDED
images/Dehazing/input/1440_10.png ADDED
images/Dehazing/input/1444_10.png ADDED
images/Denoising/input/0003_30.png ADDED
images/Denoising/input/0011_23.png ADDED
images/Denoising/input/0013_19.png ADDED
images/Denoising/input/0039_04.png ADDED
images/Deraining/input/0.jpg ADDED
images/Deraining/input/1.png ADDED
images/Deraining/input/15.png ADDED
images/Deraining/input/55.png ADDED
images/Enhancement/input/1.png ADDED
images/Enhancement/input/111.png ADDED
images/Enhancement/input/748.png ADDED
images/Enhancement/input/a4541-DSC_0040-2.png ADDED
images/overview.png ADDED