Spaces:
Build error
Build error
TalhaUsuf
commited on
Commit
•
d8b4e17
1
Parent(s):
a547607
fix(model): added model , prediction function and examples added
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitignore +1 -0
- app.py +600 -12
- n000129/0001_01.jpg +3 -0
- n000129/0002_01.jpg +3 -0
- n000129/0003_01.jpg +3 -0
- n000129/0004_01.jpg +3 -0
- n000129/0005_01.jpg +3 -0
- n000129/0006_01.jpg +3 -0
- n000129/0007_01.jpg +3 -0
- n000129/0008_01.jpg +3 -0
- n000129/0009_01.jpg +3 -0
- n000129/0010_01.jpg +3 -0
- n000129/0011_01.jpg +3 -0
- n000129/0012_01.jpg +3 -0
- n000129/0013_04.jpg +3 -0
- n000129/0014_01.jpg +3 -0
- n000129/0015_01.jpg +3 -0
- n000129/0016_01.jpg +3 -0
- n000129/0017_01.jpg +3 -0
- n000129/0018_01.jpg +3 -0
- n000129/0019_01.jpg +3 -0
- n000129/0020_01.jpg +3 -0
- n000129/0021_01.jpg +3 -0
- n000129/0022_01.jpg +3 -0
- n000129/0023_01.jpg +3 -0
- n000129/0024_01.jpg +3 -0
- n000129/0025_01.jpg +3 -0
- n000129/0026_01.jpg +3 -0
- n000129/0027_01.jpg +3 -0
- n000129/0028_01.jpg +3 -0
- n000129/0029_01.jpg +3 -0
- n000129/0030_01.jpg +3 -0
- n000129/0031_01.jpg +3 -0
- n000129/0032_01.jpg +3 -0
- n000129/0033_01.jpg +3 -0
- n000129/0034_01.jpg +3 -0
- n000129/0035_01.jpg +3 -0
- n000129/0036_01.jpg +3 -0
- n000129/0037_07.jpg +3 -0
- n000129/0038_01.jpg +3 -0
- n000129/0039_01.jpg +3 -0
- n000129/0040_01.jpg +3 -0
- n000129/0041_01.jpg +3 -0
- n000129/0042_01.jpg +3 -0
- n000129/0043_01.jpg +3 -0
- n000129/0044_01.jpg +3 -0
- n000129/0045_01.jpg +3 -0
- n000129/0046_01.jpg +3 -0
- n000129/0047_01.jpg +3 -0
- n000129/0048_01.jpg +3 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
model/__pycache__/
|
app.py
CHANGED
@@ -10,6 +10,9 @@ from PIL import ImageFile
|
|
10 |
import math
|
11 |
import os
|
12 |
import torch.nn.functional as F
|
|
|
|
|
|
|
13 |
|
14 |
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
|
15 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
@@ -72,31 +75,616 @@ def img_pad(x, w_pad, h_pad, w_odd_pad, h_odd_pad):
|
|
72 |
return y
|
73 |
|
74 |
|
75 |
-
title = "
|
76 |
description = " The model was trained to remove the moire patterns from your captured screen images! Specially, this model is capable of tackling \
|
77 |
images up to 4K resolution, which adapts to most of the modern mobile phones. \
|
78 |
<br /> \
|
79 |
-
|
80 |
-
on a NVIDIA 3090 GPU 17ms per standard 4K image). \
|
81 |
<br /> \
|
82 |
-
|
83 |
-
You can scan the [QR code](https://github.com/CVMI-Lab/UHDM/blob/main/figures/QR.jpg) to play on your mobile phone. "
|
84 |
|
85 |
-
article = "
|
86 |
-
[official training code](https://github.com/CVMI-Lab/UHDM) which the demo is based on.\
|
87 |
-
<center><img src='https://visitor-badge.glitch.me/badge?page_id=Andyx_screen_image_demoire' alt='visitor badge'></center>"
|
88 |
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
inputs=gr.inputs.Image(type="pil"),
|
92 |
outputs=gr.inputs.Image(type="pil"),
|
93 |
-
examples=
|
94 |
-
'002.jpg',
|
95 |
-
'005.jpg'],
|
96 |
title = title,
|
97 |
description = description,
|
98 |
article = article
|
99 |
)
|
100 |
|
101 |
-
|
102 |
iface1.launch()
|
|
|
10 |
import math
|
11 |
import os
|
12 |
import torch.nn.functional as F
|
13 |
+
from rich.panel import Panel
|
14 |
+
from rich.columns import Columns
|
15 |
+
from rich.console import Console
|
16 |
|
17 |
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
|
18 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
|
|
75 |
return y
|
76 |
|
77 |
|
78 |
+
title = "image restore"
|
79 |
description = " The model was trained to remove the moire patterns from your captured screen images! Specially, this model is capable of tackling \
|
80 |
images up to 4K resolution, which adapts to most of the modern mobile phones. \
|
81 |
<br /> \
|
82 |
+
It takes time to perform inference \
|
|
|
83 |
<br /> \
|
84 |
+
",
|
|
|
85 |
|
86 |
+
article = "Reference:\n Towards Efficient and Scale-Robust Ultra-High-Definition Image Demoiréing. CVMI Lab, Nov. 21, 2022. Accessed: Nov. 21, 2022. [Online]. Available: https://github.com/CVMI-Lab/UHDM"
|
|
|
|
|
87 |
|
88 |
|
89 |
+
files = [
|
90 |
+
'0001_01.jpg',
|
91 |
+
'0002_01.jpg',
|
92 |
+
'0003_01.jpg',
|
93 |
+
'0004_01.jpg',
|
94 |
+
'0005_01.jpg',
|
95 |
+
'0006_01.jpg',
|
96 |
+
'0007_01.jpg',
|
97 |
+
'0008_01.jpg',
|
98 |
+
'0009_01.jpg',
|
99 |
+
'0010_01.jpg',
|
100 |
+
'0011_01.jpg',
|
101 |
+
'0012_01.jpg',
|
102 |
+
'0013_04.jpg',
|
103 |
+
'0014_01.jpg',
|
104 |
+
'0015_01.jpg',
|
105 |
+
'0016_01.jpg',
|
106 |
+
'0017_01.jpg',
|
107 |
+
'0018_01.jpg',
|
108 |
+
'0019_01.jpg',
|
109 |
+
'0020_01.jpg',
|
110 |
+
'0021_01.jpg',
|
111 |
+
'0022_01.jpg',
|
112 |
+
'0023_01.jpg',
|
113 |
+
'0024_01.jpg',
|
114 |
+
'0025_01.jpg',
|
115 |
+
'0026_01.jpg',
|
116 |
+
'0027_01.jpg',
|
117 |
+
'0028_01.jpg',
|
118 |
+
'0029_01.jpg',
|
119 |
+
'0030_01.jpg',
|
120 |
+
'0031_01.jpg',
|
121 |
+
'0032_01.jpg',
|
122 |
+
'0033_01.jpg',
|
123 |
+
'0034_01.jpg',
|
124 |
+
'0035_01.jpg',
|
125 |
+
'0036_01.jpg',
|
126 |
+
'0037_07.jpg',
|
127 |
+
'0038_01.jpg',
|
128 |
+
'0039_01.jpg',
|
129 |
+
'0040_01.jpg',
|
130 |
+
'0041_01.jpg',
|
131 |
+
'0042_01.jpg',
|
132 |
+
'0043_01.jpg',
|
133 |
+
'0044_01.jpg',
|
134 |
+
'0045_01.jpg',
|
135 |
+
'0046_01.jpg',
|
136 |
+
'0047_01.jpg',
|
137 |
+
'0048_01.jpg',
|
138 |
+
'0049_01.jpg',
|
139 |
+
'0050_01.jpg',
|
140 |
+
'0051_01.jpg',
|
141 |
+
'0052_01.jpg',
|
142 |
+
'0053_01.jpg',
|
143 |
+
'0054_01.jpg',
|
144 |
+
'0055_01.jpg',
|
145 |
+
'0056_01.jpg',
|
146 |
+
'0057_01.jpg',
|
147 |
+
'0058_01.jpg',
|
148 |
+
'0059_01.jpg',
|
149 |
+
'0060_01.jpg',
|
150 |
+
'0061_01.jpg',
|
151 |
+
'0062_01.jpg',
|
152 |
+
'0063_02.jpg',
|
153 |
+
'0064_01.jpg',
|
154 |
+
'0065_01.jpg',
|
155 |
+
'0066_01.jpg',
|
156 |
+
'0067_01.jpg',
|
157 |
+
'0068_01.jpg',
|
158 |
+
'0069_01.jpg',
|
159 |
+
'0070_01.jpg',
|
160 |
+
'0071_01.jpg',
|
161 |
+
'0072_01.jpg',
|
162 |
+
'0073_01.jpg',
|
163 |
+
'0074_01.jpg',
|
164 |
+
'0075_01.jpg',
|
165 |
+
'0076_01.jpg',
|
166 |
+
'0077_01.jpg',
|
167 |
+
'0078_01.jpg',
|
168 |
+
'0079_01.jpg',
|
169 |
+
'0080_01.jpg',
|
170 |
+
'0081_01.jpg',
|
171 |
+
'0082_01.jpg',
|
172 |
+
'0083_01.jpg',
|
173 |
+
'0084_01.jpg',
|
174 |
+
'0085_02.jpg',
|
175 |
+
'0086_01.jpg',
|
176 |
+
'0087_02.jpg',
|
177 |
+
'0088_01.jpg',
|
178 |
+
'0089_01.jpg',
|
179 |
+
'0090_02.jpg',
|
180 |
+
'0091_01.jpg',
|
181 |
+
'0092_01.jpg',
|
182 |
+
'0093_01.jpg',
|
183 |
+
'0094_01.jpg',
|
184 |
+
'0095_01.jpg',
|
185 |
+
'0096_01.jpg',
|
186 |
+
'0097_01.jpg',
|
187 |
+
'0098_01.jpg',
|
188 |
+
'0099_01.jpg',
|
189 |
+
'0100_01.jpg',
|
190 |
+
'0101_01.jpg',
|
191 |
+
'0102_01.jpg',
|
192 |
+
'0103_01.jpg',
|
193 |
+
'0104_01.jpg',
|
194 |
+
'0105_01.jpg',
|
195 |
+
'0106_01.jpg',
|
196 |
+
'0107_01.jpg',
|
197 |
+
'0108_01.jpg',
|
198 |
+
'0109_01.jpg',
|
199 |
+
'0110_01.jpg',
|
200 |
+
'0111_01.jpg',
|
201 |
+
'0112_01.jpg',
|
202 |
+
'0113_01.jpg',
|
203 |
+
'0114_01.jpg',
|
204 |
+
'0115_01.jpg',
|
205 |
+
'0116_01.jpg',
|
206 |
+
'0117_01.jpg',
|
207 |
+
'0118_01.jpg',
|
208 |
+
'0119_01.jpg',
|
209 |
+
'0120_01.jpg',
|
210 |
+
'0121_01.jpg',
|
211 |
+
'0122_01.jpg',
|
212 |
+
'0123_01.jpg',
|
213 |
+
'0124_01.jpg',
|
214 |
+
'0125_01.jpg',
|
215 |
+
'0126_01.jpg',
|
216 |
+
'0127_01.jpg',
|
217 |
+
'0128_01.jpg',
|
218 |
+
'0129_01.jpg',
|
219 |
+
'0130_01.jpg',
|
220 |
+
'0131_01.jpg',
|
221 |
+
'0132_02.jpg',
|
222 |
+
'0133_01.jpg',
|
223 |
+
'0134_01.jpg',
|
224 |
+
'0135_01.jpg',
|
225 |
+
'0136_01.jpg',
|
226 |
+
'0137_01.jpg',
|
227 |
+
'0138_02.jpg',
|
228 |
+
'0139_01.jpg',
|
229 |
+
'0140_01.jpg',
|
230 |
+
'0141_01.jpg',
|
231 |
+
'0142_01.jpg',
|
232 |
+
'0143_01.jpg',
|
233 |
+
'0144_01.jpg',
|
234 |
+
'0145_01.jpg',
|
235 |
+
'0146_01.jpg',
|
236 |
+
'0147_01.jpg',
|
237 |
+
'0148_01.jpg',
|
238 |
+
'0149_01.jpg',
|
239 |
+
'0150_02.jpg',
|
240 |
+
'0151_01.jpg',
|
241 |
+
'0152_01.jpg',
|
242 |
+
'0153_01.jpg',
|
243 |
+
'0154_01.jpg',
|
244 |
+
'0155_01.jpg',
|
245 |
+
'0156_01.jpg',
|
246 |
+
'0157_01.jpg',
|
247 |
+
'0158_01.jpg',
|
248 |
+
'0159_01.jpg',
|
249 |
+
'0160_01.jpg',
|
250 |
+
'0161_01.jpg',
|
251 |
+
'0162_01.jpg',
|
252 |
+
'0163_01.jpg',
|
253 |
+
'0164_01.jpg',
|
254 |
+
'0165_01.jpg',
|
255 |
+
'0166_01.jpg',
|
256 |
+
'0167_01.jpg',
|
257 |
+
'0168_01.jpg',
|
258 |
+
'0169_01.jpg',
|
259 |
+
'0170_01.jpg',
|
260 |
+
'0171_01.jpg',
|
261 |
+
'0172_01.jpg',
|
262 |
+
'0173_01.jpg',
|
263 |
+
'0174_01.jpg',
|
264 |
+
'0175_01.jpg',
|
265 |
+
'0176_01.jpg',
|
266 |
+
'0177_03.jpg',
|
267 |
+
'0178_01.jpg',
|
268 |
+
'0179_01.jpg',
|
269 |
+
'0180_01.jpg',
|
270 |
+
'0181_01.jpg',
|
271 |
+
'0182_01.jpg',
|
272 |
+
'0183_01.jpg',
|
273 |
+
'0184_01.jpg',
|
274 |
+
'0185_01.jpg',
|
275 |
+
'0186_01.jpg',
|
276 |
+
'0187_01.jpg',
|
277 |
+
'0188_01.jpg',
|
278 |
+
'0189_01.jpg',
|
279 |
+
'0190_01.jpg',
|
280 |
+
'0191_01.jpg',
|
281 |
+
'0192_01.jpg',
|
282 |
+
'0193_01.jpg',
|
283 |
+
'0194_02.jpg',
|
284 |
+
'0195_01.jpg',
|
285 |
+
'0196_01.jpg',
|
286 |
+
'0197_02.jpg',
|
287 |
+
'0198_01.jpg',
|
288 |
+
'0199_02.jpg',
|
289 |
+
'0200_01.jpg',
|
290 |
+
'0201_01.jpg',
|
291 |
+
'0202_02.jpg',
|
292 |
+
'0203_01.jpg',
|
293 |
+
'0204_01.jpg',
|
294 |
+
'0205_01.jpg',
|
295 |
+
'0206_01.jpg',
|
296 |
+
'0207_01.jpg',
|
297 |
+
'0208_01.jpg',
|
298 |
+
'0209_01.jpg',
|
299 |
+
'0210_01.jpg',
|
300 |
+
'0211_01.jpg',
|
301 |
+
'0212_01.jpg',
|
302 |
+
'0213_01.jpg',
|
303 |
+
'0214_01.jpg',
|
304 |
+
'0215_01.jpg',
|
305 |
+
'0216_01.jpg',
|
306 |
+
'0217_02.jpg',
|
307 |
+
'0218_01.jpg',
|
308 |
+
'0219_01.jpg',
|
309 |
+
'0220_01.jpg',
|
310 |
+
'0221_01.jpg',
|
311 |
+
'0222_01.jpg',
|
312 |
+
'0223_01.jpg',
|
313 |
+
'0224_01.jpg',
|
314 |
+
'0225_01.jpg',
|
315 |
+
'0226_02.jpg',
|
316 |
+
'0227_01.jpg',
|
317 |
+
'0228_02.jpg',
|
318 |
+
'0229_01.jpg',
|
319 |
+
'0230_01.jpg',
|
320 |
+
'0231_01.jpg',
|
321 |
+
'0232_01.jpg',
|
322 |
+
'0233_02.jpg',
|
323 |
+
'0234_01.jpg',
|
324 |
+
'0235_01.jpg',
|
325 |
+
'0236_01.jpg',
|
326 |
+
'0237_01.jpg',
|
327 |
+
'0238_01.jpg',
|
328 |
+
'0239_01.jpg',
|
329 |
+
'0240_02.jpg',
|
330 |
+
'0241_01.jpg',
|
331 |
+
'0242_01.jpg',
|
332 |
+
'0243_01.jpg',
|
333 |
+
'0244_01.jpg',
|
334 |
+
'0245_01.jpg',
|
335 |
+
'0246_01.jpg',
|
336 |
+
'0247_01.jpg',
|
337 |
+
'0248_01.jpg',
|
338 |
+
'0249_01.jpg',
|
339 |
+
'0250_01.jpg',
|
340 |
+
'0251_01.jpg',
|
341 |
+
'0252_01.jpg',
|
342 |
+
'0253_01.jpg',
|
343 |
+
'0254_01.jpg',
|
344 |
+
'0255_01.jpg',
|
345 |
+
'0256_01.jpg',
|
346 |
+
'0257_01.jpg',
|
347 |
+
'0258_02.jpg',
|
348 |
+
'0259_01.jpg',
|
349 |
+
'0260_02.jpg',
|
350 |
+
'0261_01.jpg',
|
351 |
+
'0262_01.jpg',
|
352 |
+
'0263_01.jpg',
|
353 |
+
'0264_01.jpg',
|
354 |
+
'0265_01.jpg',
|
355 |
+
'0266_01.jpg',
|
356 |
+
'0267_01.jpg',
|
357 |
+
'0268_01.jpg',
|
358 |
+
'0269_01.jpg',
|
359 |
+
'0270_01.jpg',
|
360 |
+
'0271_01.jpg',
|
361 |
+
'0272_01.jpg',
|
362 |
+
'0273_01.jpg',
|
363 |
+
'0274_01.jpg',
|
364 |
+
'0275_01.jpg',
|
365 |
+
'0276_01.jpg',
|
366 |
+
'0277_02.jpg',
|
367 |
+
'0278_01.jpg',
|
368 |
+
'0279_01.jpg',
|
369 |
+
'0280_01.jpg',
|
370 |
+
'0281_01.jpg',
|
371 |
+
'0282_01.jpg',
|
372 |
+
'0283_01.jpg',
|
373 |
+
'0284_01.jpg',
|
374 |
+
'0285_01.jpg',
|
375 |
+
'0286_01.jpg',
|
376 |
+
'0287_01.jpg',
|
377 |
+
'0288_01.jpg',
|
378 |
+
'0289_02.jpg',
|
379 |
+
'0290_01.jpg',
|
380 |
+
'0291_01.jpg',
|
381 |
+
'0292_01.jpg',
|
382 |
+
'0293_01.jpg',
|
383 |
+
'0294_01.jpg',
|
384 |
+
'0295_01.jpg',
|
385 |
+
'0296_01.jpg',
|
386 |
+
'0297_01.jpg',
|
387 |
+
'0298_02.jpg',
|
388 |
+
'0299_02.jpg',
|
389 |
+
'0300_01.jpg',
|
390 |
+
'0301_02.jpg',
|
391 |
+
'0302_01.jpg',
|
392 |
+
'0303_01.jpg',
|
393 |
+
'0304_01.jpg',
|
394 |
+
'0305_02.jpg',
|
395 |
+
'0306_03.jpg',
|
396 |
+
'0307_01.jpg',
|
397 |
+
'0308_01.jpg',
|
398 |
+
'0309_01.jpg',
|
399 |
+
'0310_01.jpg',
|
400 |
+
'0311_01.jpg',
|
401 |
+
'0312_02.jpg',
|
402 |
+
'0313_02.jpg',
|
403 |
+
'0314_01.jpg',
|
404 |
+
'0315_01.jpg',
|
405 |
+
'0316_01.jpg',
|
406 |
+
'0317_03.jpg',
|
407 |
+
'0318_01.jpg',
|
408 |
+
'0319_01.jpg',
|
409 |
+
'0320_01.jpg',
|
410 |
+
'0321_01.jpg',
|
411 |
+
'0322_01.jpg',
|
412 |
+
'0323_01.jpg',
|
413 |
+
'0324_01.jpg',
|
414 |
+
'0325_02.jpg',
|
415 |
+
'0326_01.jpg',
|
416 |
+
'0327_01.jpg',
|
417 |
+
'0328_01.jpg',
|
418 |
+
'0329_01.jpg',
|
419 |
+
'0330_01.jpg',
|
420 |
+
'0331_01.jpg',
|
421 |
+
'0332_03.jpg',
|
422 |
+
'0333_01.jpg',
|
423 |
+
'0334_01.jpg',
|
424 |
+
'0335_02.jpg',
|
425 |
+
'0336_01.jpg',
|
426 |
+
'0337_01.jpg',
|
427 |
+
'0338_01.jpg',
|
428 |
+
'0339_01.jpg',
|
429 |
+
'0340_01.jpg',
|
430 |
+
'0341_03.jpg',
|
431 |
+
'0342_01.jpg',
|
432 |
+
'0343_02.jpg',
|
433 |
+
'0344_02.jpg',
|
434 |
+
'0345_01.jpg',
|
435 |
+
'0346_01.jpg',
|
436 |
+
'0347_01.jpg',
|
437 |
+
'0348_02.jpg',
|
438 |
+
'0349_01.jpg',
|
439 |
+
'0350_01.jpg',
|
440 |
+
'0351_01.jpg',
|
441 |
+
'0352_01.jpg',
|
442 |
+
'0353_01.jpg',
|
443 |
+
'0354_01.jpg',
|
444 |
+
'0355_01.jpg',
|
445 |
+
'0356_01.jpg',
|
446 |
+
'0357_01.jpg',
|
447 |
+
'0358_01.jpg',
|
448 |
+
'0359_01.jpg',
|
449 |
+
'0360_01.jpg',
|
450 |
+
'0361_01.jpg',
|
451 |
+
'0362_01.jpg',
|
452 |
+
'0363_01.jpg',
|
453 |
+
'0364_01.jpg',
|
454 |
+
'0365_01.jpg',
|
455 |
+
'0366_01.jpg',
|
456 |
+
'0367_01.jpg',
|
457 |
+
'0368_01.jpg',
|
458 |
+
'0369_01.jpg',
|
459 |
+
'0370_01.jpg',
|
460 |
+
'0371_01.jpg',
|
461 |
+
'0372_03.jpg',
|
462 |
+
'0373_01.jpg',
|
463 |
+
'0374_02.jpg',
|
464 |
+
'0375_01.jpg',
|
465 |
+
'0376_01.jpg',
|
466 |
+
'0377_01.jpg',
|
467 |
+
'0378_01.jpg',
|
468 |
+
'0379_01.jpg',
|
469 |
+
'0380_01.jpg',
|
470 |
+
'0381_01.jpg',
|
471 |
+
'0382_01.jpg',
|
472 |
+
'0383_01.jpg',
|
473 |
+
'0384_01.jpg',
|
474 |
+
'0385_01.jpg',
|
475 |
+
'0386_01.jpg',
|
476 |
+
'0387_01.jpg',
|
477 |
+
'0388_01.jpg',
|
478 |
+
'0389_01.jpg',
|
479 |
+
'0390_01.jpg',
|
480 |
+
'0391_02.jpg',
|
481 |
+
'0392_01.jpg',
|
482 |
+
'0393_01.jpg',
|
483 |
+
'0394_01.jpg',
|
484 |
+
'0395_01.jpg',
|
485 |
+
'0396_02.jpg',
|
486 |
+
'0397_01.jpg',
|
487 |
+
'0398_01.jpg',
|
488 |
+
'0399_01.jpg',
|
489 |
+
'0400_01.jpg',
|
490 |
+
'0401_02.jpg',
|
491 |
+
'0402_02.jpg',
|
492 |
+
'0403_01.jpg',
|
493 |
+
'0404_01.jpg',
|
494 |
+
'0405_01.jpg',
|
495 |
+
'0406_01.jpg',
|
496 |
+
'0407_01.jpg',
|
497 |
+
'0408_01.jpg',
|
498 |
+
'0409_01.jpg',
|
499 |
+
'0410_10.jpg',
|
500 |
+
'0411_01.jpg',
|
501 |
+
'0412_01.jpg',
|
502 |
+
'0413_02.jpg',
|
503 |
+
'0414_01.jpg',
|
504 |
+
'0415_01.jpg',
|
505 |
+
'0416_01.jpg',
|
506 |
+
'0417_01.jpg',
|
507 |
+
'0418_01.jpg',
|
508 |
+
'0419_01.jpg',
|
509 |
+
'0421_01.jpg',
|
510 |
+
'0422_01.jpg',
|
511 |
+
'0423_01.jpg',
|
512 |
+
'0424_01.jpg',
|
513 |
+
'0425_01.jpg',
|
514 |
+
'0426_01.jpg',
|
515 |
+
'0427_01.jpg',
|
516 |
+
'0428_01.jpg',
|
517 |
+
'0429_03.jpg',
|
518 |
+
'0430_02.jpg',
|
519 |
+
'0431_01.jpg',
|
520 |
+
'0432_02.jpg',
|
521 |
+
'0433_01.jpg',
|
522 |
+
'0434_01.jpg',
|
523 |
+
'0435_01.jpg',
|
524 |
+
'0436_02.jpg',
|
525 |
+
'0437_02.jpg',
|
526 |
+
'0439_01.jpg',
|
527 |
+
'0440_01.jpg',
|
528 |
+
'0441_01.jpg',
|
529 |
+
'0442_01.jpg',
|
530 |
+
'0443_01.jpg',
|
531 |
+
'0444_01.jpg',
|
532 |
+
'0445_01.jpg',
|
533 |
+
'0446_01.jpg',
|
534 |
+
'0448_02.jpg',
|
535 |
+
'0449_02.jpg',
|
536 |
+
'0450_01.jpg',
|
537 |
+
'0451_01.jpg',
|
538 |
+
'0452_01.jpg',
|
539 |
+
'0453_01.jpg',
|
540 |
+
'0454_03.jpg',
|
541 |
+
'0455_02.jpg',
|
542 |
+
'0456_01.jpg',
|
543 |
+
'0457_01.jpg',
|
544 |
+
'0458_03.jpg',
|
545 |
+
'0459_01.jpg',
|
546 |
+
'0460_01.jpg',
|
547 |
+
'0461_01.jpg',
|
548 |
+
'0464_02.jpg',
|
549 |
+
'0465_03.jpg',
|
550 |
+
'0466_01.jpg',
|
551 |
+
'0467_01.jpg',
|
552 |
+
'0468_01.jpg',
|
553 |
+
'0469_02.jpg',
|
554 |
+
'0470_01.jpg',
|
555 |
+
'0471_01.jpg',
|
556 |
+
'0472_01.jpg',
|
557 |
+
'0473_01.jpg',
|
558 |
+
'0474_01.jpg',
|
559 |
+
'0475_03.jpg',
|
560 |
+
'0476_01.jpg',
|
561 |
+
'0477_01.jpg',
|
562 |
+
'0478_02.jpg',
|
563 |
+
'0479_01.jpg',
|
564 |
+
'0480_01.jpg',
|
565 |
+
'0481_01.jpg',
|
566 |
+
'0482_09.jpg',
|
567 |
+
'0483_01.jpg',
|
568 |
+
'0484_01.jpg',
|
569 |
+
'0485_03.jpg',
|
570 |
+
'0486_01.jpg',
|
571 |
+
'0487_01.jpg',
|
572 |
+
'0488_01.jpg',
|
573 |
+
'0489_01.jpg',
|
574 |
+
'0490_01.jpg',
|
575 |
+
'0491_02.jpg',
|
576 |
+
'0492_01.jpg',
|
577 |
+
'0493_01.jpg',
|
578 |
+
'0494_04.jpg',
|
579 |
+
'0495_01.jpg',
|
580 |
+
'0496_01.jpg',
|
581 |
+
'0497_02.jpg',
|
582 |
+
'0498_02.jpg',
|
583 |
+
'0499_01.jpg',
|
584 |
+
'0500_02.jpg',
|
585 |
+
'0501_02.jpg',
|
586 |
+
'0502_02.jpg',
|
587 |
+
'0503_01.jpg',
|
588 |
+
'0504_01.jpg',
|
589 |
+
'0505_01.jpg',
|
590 |
+
'0506_03.jpg',
|
591 |
+
'0507_01.jpg',
|
592 |
+
'0508_01.jpg',
|
593 |
+
'0509_01.jpg',
|
594 |
+
'0510_02.jpg',
|
595 |
+
'0511_01.jpg',
|
596 |
+
'0513_02.jpg',
|
597 |
+
'0514_01.jpg',
|
598 |
+
'0517_01.jpg',
|
599 |
+
'0519_01.jpg',
|
600 |
+
'0520_01.jpg',
|
601 |
+
'0522_02.jpg',
|
602 |
+
'0526_01.jpg',
|
603 |
+
'0528_01.jpg',
|
604 |
+
'0530_02.jpg',
|
605 |
+
'0533_03.jpg',
|
606 |
+
'0536_02.jpg',
|
607 |
+
'0558_01.jpg',
|
608 |
+
'0559_01.jpg',
|
609 |
+
'0560_01.jpg',
|
610 |
+
'0561_01.jpg',
|
611 |
+
'0562_01.jpg',
|
612 |
+
'0563_01.jpg',
|
613 |
+
'0564_01.jpg',
|
614 |
+
'0565_01.jpg',
|
615 |
+
'0566_01.jpg',
|
616 |
+
'0567_01.jpg',
|
617 |
+
'0568_01.jpg',
|
618 |
+
'0569_01.jpg',
|
619 |
+
'0571_01.jpg',
|
620 |
+
'0572_01.jpg',
|
621 |
+
'0573_01.jpg',
|
622 |
+
'0574_03.jpg',
|
623 |
+
'0575_02.jpg',
|
624 |
+
'0576_01.jpg',
|
625 |
+
'0578_01.jpg',
|
626 |
+
'0579_02.jpg',
|
627 |
+
'0580_01.jpg',
|
628 |
+
'0581_01.jpg',
|
629 |
+
'0583_01.jpg',
|
630 |
+
'0584_01.jpg',
|
631 |
+
'0585_01.jpg',
|
632 |
+
'0586_02.jpg',
|
633 |
+
'0587_01.jpg',
|
634 |
+
'0588_01.jpg',
|
635 |
+
'0589_02.jpg',
|
636 |
+
'0591_01.jpg',
|
637 |
+
'0593_01.jpg',
|
638 |
+
'0594_01.jpg',
|
639 |
+
'0595_01.jpg',
|
640 |
+
'0597_02.jpg',
|
641 |
+
'0599_01.jpg',
|
642 |
+
'0600_01.jpg',
|
643 |
+
'0601_01.jpg',
|
644 |
+
'0602_01.jpg',
|
645 |
+
'0603_01.jpg',
|
646 |
+
'0604_02.jpg',
|
647 |
+
'0605_01.jpg',
|
648 |
+
'0606_01.jpg',
|
649 |
+
'0607_01.jpg',
|
650 |
+
'0608_01.jpg',
|
651 |
+
'0609_02.jpg',
|
652 |
+
'0610_04.jpg',
|
653 |
+
'0611_01.jpg',
|
654 |
+
'0612_01.jpg',
|
655 |
+
'0613_01.jpg',
|
656 |
+
'0614_05.jpg',
|
657 |
+
'0615_01.jpg',
|
658 |
+
'0616_01.jpg',
|
659 |
+
'0617_03.jpg',
|
660 |
+
'0618_01.jpg',
|
661 |
+
'0619_01.jpg',
|
662 |
+
'0620_01.jpg',
|
663 |
+
'0621_02.jpg',
|
664 |
+
'0622_02.jpg',
|
665 |
+
'0623_01.jpg',
|
666 |
+
'0624_02.jpg',
|
667 |
+
'0627_05.jpg',
|
668 |
+
'0628_03.jpg',
|
669 |
+
'0629_01.jpg',
|
670 |
+
'0630_01.jpg',
|
671 |
+
'0633_01.jpg',
|
672 |
+
'0634_01.jpg',
|
673 |
+
'0671_10.jpg'
|
674 |
+
]
|
675 |
+
|
676 |
+
files = [os.path.join("n000129", k) for k in files]
|
677 |
+
|
678 |
+
Console().print(Columns ([Panel.fit(f"{k}", style="red on black") for k in files]))
|
679 |
+
|
680 |
iface1 = gr.Interface(fn=predict1,
|
681 |
inputs=gr.inputs.Image(type="pil"),
|
682 |
outputs=gr.inputs.Image(type="pil"),
|
683 |
+
examples=files,
|
|
|
|
|
684 |
title = title,
|
685 |
description = description,
|
686 |
article = article
|
687 |
)
|
688 |
|
689 |
+
iface1.queue(concurrency_count=3)
|
690 |
iface1.launch()
|
n000129/0001_01.jpg
ADDED
Git LFS Details
|
n000129/0002_01.jpg
ADDED
Git LFS Details
|
n000129/0003_01.jpg
ADDED
Git LFS Details
|
n000129/0004_01.jpg
ADDED
Git LFS Details
|
n000129/0005_01.jpg
ADDED
Git LFS Details
|
n000129/0006_01.jpg
ADDED
Git LFS Details
|
n000129/0007_01.jpg
ADDED
Git LFS Details
|
n000129/0008_01.jpg
ADDED
Git LFS Details
|
n000129/0009_01.jpg
ADDED
Git LFS Details
|
n000129/0010_01.jpg
ADDED
Git LFS Details
|
n000129/0011_01.jpg
ADDED
Git LFS Details
|
n000129/0012_01.jpg
ADDED
Git LFS Details
|
n000129/0013_04.jpg
ADDED
Git LFS Details
|
n000129/0014_01.jpg
ADDED
Git LFS Details
|
n000129/0015_01.jpg
ADDED
Git LFS Details
|
n000129/0016_01.jpg
ADDED
Git LFS Details
|
n000129/0017_01.jpg
ADDED
Git LFS Details
|
n000129/0018_01.jpg
ADDED
Git LFS Details
|
n000129/0019_01.jpg
ADDED
Git LFS Details
|
n000129/0020_01.jpg
ADDED
Git LFS Details
|
n000129/0021_01.jpg
ADDED
Git LFS Details
|
n000129/0022_01.jpg
ADDED
Git LFS Details
|
n000129/0023_01.jpg
ADDED
Git LFS Details
|
n000129/0024_01.jpg
ADDED
Git LFS Details
|
n000129/0025_01.jpg
ADDED
Git LFS Details
|
n000129/0026_01.jpg
ADDED
Git LFS Details
|
n000129/0027_01.jpg
ADDED
Git LFS Details
|
n000129/0028_01.jpg
ADDED
Git LFS Details
|
n000129/0029_01.jpg
ADDED
Git LFS Details
|
n000129/0030_01.jpg
ADDED
Git LFS Details
|
n000129/0031_01.jpg
ADDED
Git LFS Details
|
n000129/0032_01.jpg
ADDED
Git LFS Details
|
n000129/0033_01.jpg
ADDED
Git LFS Details
|
n000129/0034_01.jpg
ADDED
Git LFS Details
|
n000129/0035_01.jpg
ADDED
Git LFS Details
|
n000129/0036_01.jpg
ADDED
Git LFS Details
|
n000129/0037_07.jpg
ADDED
Git LFS Details
|
n000129/0038_01.jpg
ADDED
Git LFS Details
|
n000129/0039_01.jpg
ADDED
Git LFS Details
|
n000129/0040_01.jpg
ADDED
Git LFS Details
|
n000129/0041_01.jpg
ADDED
Git LFS Details
|
n000129/0042_01.jpg
ADDED
Git LFS Details
|
n000129/0043_01.jpg
ADDED
Git LFS Details
|
n000129/0044_01.jpg
ADDED
Git LFS Details
|
n000129/0045_01.jpg
ADDED
Git LFS Details
|
n000129/0046_01.jpg
ADDED
Git LFS Details
|
n000129/0047_01.jpg
ADDED
Git LFS Details
|
n000129/0048_01.jpg
ADDED
Git LFS Details
|