ultimaxxl commited on
Commit
0c6a371
·
1 Parent(s): 7f7588e

Move examples dictionary to examples_db

Browse files
Files changed (2) hide show
  1. app.py +1 -86
  2. examples_db.py +113 -0
app.py CHANGED
@@ -135,92 +135,7 @@ MODE_DEFAULTS: dict[str, Mode] = {
135
 
136
  # ================== PRESET EXAMPLES =====================
137
 
138
- MODE_EXAMPLES = {
139
- "Subject Generation": [
140
- [
141
- "assets/subj1.jpg",
142
- "Close-up portrait of a fruit bowl",
143
- "assets/subj1_out.jpg",
144
- ],
145
- ["assets/subj2.jpg", "A penguin standing in snow", "assets/subj2_out.jpg"],
146
- ["assets/subj3.jpg", "A cat with glowing eyes", "assets/subj3_out.jpg"],
147
- ["assets/subj4.jpg", "A child playing with bubbles", "assets/subj4_out.jpg"],
148
- [
149
- "assets/subj5.jpg",
150
- "A stylish young man in neon lights",
151
- "assets/subj5_out.jpg",
152
- ],
153
- ["assets/subj6.jpg", "Old man with a mysterious look", "assets/subj6_out.jpg"],
154
- ],
155
- "Background Generation": [
156
- ["assets/bg1.jpg", "Modern living room with plants", "assets/bg1_out.jpg"],
157
- ["assets/bg2.jpg", "Fantasy forest background", "assets/bg2_out.jpg"],
158
- ["assets/bg3.jpg", "Futuristic cityscape", "assets/bg3_out.jpg"],
159
- ["assets/bg4.jpg", "Minimalist white studio", "assets/bg4_out.jpg"],
160
- ["assets/bg5.jpg", "Snowy mountain landscape", "assets/bg5_out.jpg"],
161
- ["assets/bg6.jpg", "Golden sunset over the sea", "assets/bg6_out.jpg"],
162
- ],
163
- "Canny": [
164
- ["assets/canny1.jpg", "A neon cyberpunk city skyline", "assets/canny1_out.jpg"],
165
- ["assets/canny2.jpg", "A robot walking in the fog", "assets/canny2_out.jpg"],
166
- [
167
- "assets/canny3.jpg",
168
- "A futuristic vehicle parked under a bridge",
169
- "assets/canny3_out.jpg",
170
- ],
171
- [
172
- "assets/canny4.jpg",
173
- "Sci-fi lab interior with glowing machinery",
174
- "assets/canny4_out.jpg",
175
- ],
176
- [
177
- "assets/canny5.jpg",
178
- "A portrait of a woman outlined in neon",
179
- "assets/canny5_out.jpg",
180
- ],
181
- [
182
- "assets/canny6.jpg",
183
- "Post-apocalyptic abandoned street",
184
- "assets/canny6_out.jpg",
185
- ],
186
- ],
187
- "Depth": [
188
- [
189
- "assets/depth1.jpg",
190
- "A narrow alleyway with deep perspective",
191
- "assets/depth1_out.jpg",
192
- ],
193
- [
194
- "assets/depth2.jpg",
195
- "A mountain road vanishing into the distance",
196
- "assets/depth2_out.jpg",
197
- ],
198
- [
199
- "assets/depth3.jpg",
200
- "A hallway with strong depth of field",
201
- "assets/depth3_out.jpg",
202
- ],
203
- [
204
- "assets/depth4.jpg",
205
- "A misty forest path stretching far away",
206
- "assets/depth4_out.jpg",
207
- ],
208
- ["assets/depth5.jpg", "A bridge over a deep canyon", "assets/depth5_out.jpg"],
209
- [
210
- "assets/depth6.jpg",
211
- "An underground tunnel with receding arches",
212
- "assets/depth6_out.jpg",
213
- ],
214
- ],
215
- "Deblurring": [
216
- ["assets/deblur1.jpg", "", "assets/deblur1_out.jpg"],
217
- ["assets/deblur2.jpg", "", "assets/deblur2_out.jpg"],
218
- ["assets/deblur3.jpg", "", "assets/deblur3_out.jpg"],
219
- ["assets/deblur4.jpg", "", "assets/deblur4_out.jpg"],
220
- ["assets/deblur5.jpg", "", "assets/deblur5_out.jpg"],
221
- ["assets/deblur6.jpg", "", "assets/deblur6_out.jpg"],
222
- ],
223
- }
224
 
225
 
226
  # ================== UI =====================
 
135
 
136
  # ================== PRESET EXAMPLES =====================
137
 
138
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
 
140
 
141
  # ================== UI =====================
examples_db.py ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MODE_EXAMPLES = {
2
+ "Subject Generation": [
3
+ [
4
+ "imgs/sub_i1.png",
5
+ "Low angle photography, shoes, stepping in water in a futuristic cityscape with neon lights, in the back in large, the words 'ZenCtrl 2025' are written in a futuristic font",
6
+ "imgs/sub_o1.webp",
7
+ ],
8
+ [
9
+ "imgs/sub_i2.png",
10
+ "blue car, on the road, outdoor, sunny day , beautiful cityscape",
11
+ "imgs/sub_o2.webp",
12
+ ],
13
+ [
14
+ "imgs/sub_i3.png",
15
+ "in a modern living room , next to a flower vase",
16
+ "imgs/sub_o3.webp",
17
+ ],
18
+ ["imgs/subj4.jpg", "A child playing with bubbles", "imgs/subj4_out.jpg"],
19
+ [
20
+ "imgs/subj5.jpg",
21
+ "A stylish young man in neon lights",
22
+ "imgs/subj5_out.jpg",
23
+ ],
24
+ ["imgs/subj6.jpg", "Old man with a mysterious look", "imgs/subj6_out.jpg"],
25
+ ],
26
+ "Background Generation": [
27
+ [
28
+ "imgs/bg_i1.png",
29
+ "placed on a dark marble table in a bathroom of luxury hotel modern light authentic atmosphere",
30
+ "imgs/bg_o1.png",
31
+ ],
32
+ [
33
+ "imgs/bg_i2.png",
34
+ "sitting on the middle of the city road on a sunny day very bright day front view",
35
+ "imgs/bg_o2.png",
36
+ ],
37
+ [
38
+ "imgs/bg_i3.png",
39
+ "A creative capture in an art gallery, with soft, focused lighting highlighting both the person’s features and the abstract surroundings, exuding sophistication.",
40
+ "imgs/bg_o3.jpg",
41
+ ],
42
+ [
43
+ "imgs/bg_i4.png",
44
+ "In a rain-soaked urban nightscape, with headlights piercing through the mist and wet streets reflecting the city’s vibrant neon colors, creating an atmosphere of mystery and modern elegance.",
45
+ "imgs/bg_o4.jpg",
46
+ ],
47
+ [
48
+ "imgs/bg_i5.png",
49
+ "An elegant room scene featuring a minimalist table and chairs, illuminated by ambient lighting that casts gentle shadows and enhances the refined, contemporary decor.",
50
+ "imgs/bg_o5.jpg",
51
+ ],
52
+ ],
53
+ "Canny": [
54
+ ["assets/canny1.jpg", "A neon cyberpunk city skyline", "assets/canny1_out.jpg"],
55
+ ["assets/canny2.jpg", "A robot walking in the fog", "assets/canny2_out.jpg"],
56
+ [
57
+ "assets/canny3.jpg",
58
+ "A futuristic vehicle parked under a bridge",
59
+ "assets/canny3_out.jpg",
60
+ ],
61
+ [
62
+ "assets/canny4.jpg",
63
+ "Sci-fi lab interior with glowing machinery",
64
+ "assets/canny4_out.jpg",
65
+ ],
66
+ [
67
+ "assets/canny5.jpg",
68
+ "A portrait of a woman outlined in neon",
69
+ "assets/canny5_out.jpg",
70
+ ],
71
+ [
72
+ "assets/canny6.jpg",
73
+ "Post-apocalyptic abandoned street",
74
+ "assets/canny6_out.jpg",
75
+ ],
76
+ ],
77
+ "Depth": [
78
+ [
79
+ "assets/depth1.jpg",
80
+ "A narrow alleyway with deep perspective",
81
+ "assets/depth1_out.jpg",
82
+ ],
83
+ [
84
+ "assets/depth2.jpg",
85
+ "A mountain road vanishing into the distance",
86
+ "assets/depth2_out.jpg",
87
+ ],
88
+ [
89
+ "assets/depth3.jpg",
90
+ "A hallway with strong depth of field",
91
+ "assets/depth3_out.jpg",
92
+ ],
93
+ [
94
+ "assets/depth4.jpg",
95
+ "A misty forest path stretching far away",
96
+ "assets/depth4_out.jpg",
97
+ ],
98
+ ["assets/depth5.jpg", "A bridge over a deep canyon", "assets/depth5_out.jpg"],
99
+ [
100
+ "assets/depth6.jpg",
101
+ "An underground tunnel with receding arches",
102
+ "assets/depth6_out.jpg",
103
+ ],
104
+ ],
105
+ "Deblurring": [
106
+ ["assets/deblur1.jpg", "", "assets/deblur1_out.jpg"],
107
+ ["assets/deblur2.jpg", "", "assets/deblur2_out.jpg"],
108
+ ["assets/deblur3.jpg", "", "assets/deblur3_out.jpg"],
109
+ ["assets/deblur4.jpg", "", "assets/deblur4_out.jpg"],
110
+ ["assets/deblur5.jpg", "", "assets/deblur5_out.jpg"],
111
+ ["assets/deblur6.jpg", "", "assets/deblur6_out.jpg"],
112
+ ],
113
+ }