TalhaUsuf commited on
Commit
d8b4e17
1 Parent(s): a547607

fix(model): added model , prediction function and examples added

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.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 = "Clean Your Moire Images!"
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
- (Note: It may cost 80s per 4K image (e.g., iPhone's resolution: 4032x3024) since this demo runs on the CPU. The model can run \
80
- on a NVIDIA 3090 GPU 17ms per standard 4K image). \
81
  <br /> \
82
- The best way for a demo testing is using your mobile phone to capture a screen image, which may cause moire patterns. \
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 = "Check out the [ECCV 2022 paper](https://arxiv.org/abs/2207.09935) and the \
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  iface1 = gr.Interface(fn=predict1,
91
  inputs=gr.inputs.Image(type="pil"),
92
  outputs=gr.inputs.Image(type="pil"),
93
- examples=['001.jpg',
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

  • SHA256: 5f91c214eb9da513fb079ff1c2158e2c024d842fc4731a1ebe2baa2d54c0c95f
  • Pointer size: 130 Bytes
  • Size of remote file: 14.1 kB
n000129/0002_01.jpg ADDED

Git LFS Details

  • SHA256: ceaaee781644ce757e9fb07e1513f2d495ab6a1b46509c4e6e955b917637a6a9
  • Pointer size: 129 Bytes
  • Size of remote file: 3.93 kB
n000129/0003_01.jpg ADDED

Git LFS Details

  • SHA256: aee5fb7f4e2807e678011b34b1cfb074075ed525850aab504cde9da43b9f254b
  • Pointer size: 129 Bytes
  • Size of remote file: 9.08 kB
n000129/0004_01.jpg ADDED

Git LFS Details

  • SHA256: c1c0649782c0d8dca6dd512e787e1a37f7d024c1bf642e217e8292fc96c374e9
  • Pointer size: 130 Bytes
  • Size of remote file: 32.3 kB
n000129/0005_01.jpg ADDED

Git LFS Details

  • SHA256: b991ab9a3eef960502104ce044aa30a6d84f4942ecd489fc457a6fefbf0aa1a4
  • Pointer size: 129 Bytes
  • Size of remote file: 5.44 kB
n000129/0006_01.jpg ADDED

Git LFS Details

  • SHA256: 594c494e51c79a288082c13ec20700235f8fa0a49abb2492da62845d16b50b8d
  • Pointer size: 129 Bytes
  • Size of remote file: 9.54 kB
n000129/0007_01.jpg ADDED

Git LFS Details

  • SHA256: 4fa21c95bec188ffbda1cbffe6c8a172d7d79c0aac9a2ad8452501dd647bb5b3
  • Pointer size: 129 Bytes
  • Size of remote file: 8.46 kB
n000129/0008_01.jpg ADDED

Git LFS Details

  • SHA256: 2d179325cf44fd7220df55bb6f9bdf69d3a721c3e9b9f1837a337faf52f7d3ba
  • Pointer size: 129 Bytes
  • Size of remote file: 8.12 kB
n000129/0009_01.jpg ADDED

Git LFS Details

  • SHA256: de14cd82714249b0d565db29ba52ad4d8e35a7dab1a2e4789e223ed700cfe989
  • Pointer size: 130 Bytes
  • Size of remote file: 14.3 kB
n000129/0010_01.jpg ADDED

Git LFS Details

  • SHA256: 0315d4ab3ade385f37e5d6421fc78e74890db112481cac9b17c9043ca8b9a3c8
  • Pointer size: 129 Bytes
  • Size of remote file: 7.23 kB
n000129/0011_01.jpg ADDED

Git LFS Details

  • SHA256: 8926112a846e25c35672a4dceabd97de598070dcf85776b96d3dc0bf11fa1015
  • Pointer size: 129 Bytes
  • Size of remote file: 9.4 kB
n000129/0012_01.jpg ADDED

Git LFS Details

  • SHA256: 61ba0b798d2912fc7240ddfdb7f414e98f151ff6ecbd51c51b94102896de67a0
  • Pointer size: 130 Bytes
  • Size of remote file: 39.6 kB
n000129/0013_04.jpg ADDED

Git LFS Details

  • SHA256: 6c0e47021cd7fc46e3ff62c2f324cdbe4b39f72df69f14c3f19093d4a52d043f
  • Pointer size: 129 Bytes
  • Size of remote file: 3.13 kB
n000129/0014_01.jpg ADDED

Git LFS Details

  • SHA256: b3a732f487930caf69ee3e94ba202c28d34340f3e6dec577df8e0c2e5701c7b0
  • Pointer size: 130 Bytes
  • Size of remote file: 24.8 kB
n000129/0015_01.jpg ADDED

Git LFS Details

  • SHA256: 6bc00e2e6f25902fae500f8a416cd7230e041b52af509b7a6bdd743275a72bce
  • Pointer size: 130 Bytes
  • Size of remote file: 10.6 kB
n000129/0016_01.jpg ADDED

Git LFS Details

  • SHA256: 5b6f838753ad196256a463290bdeaefa8b63a08dd930fc453d9f4b841b9a4d9b
  • Pointer size: 129 Bytes
  • Size of remote file: 6.04 kB
n000129/0017_01.jpg ADDED

Git LFS Details

  • SHA256: f85d0b702d42e37f91fd24725832cbaed8f974d2f4510af21219cb4a8b0dc6bd
  • Pointer size: 129 Bytes
  • Size of remote file: 8.2 kB
n000129/0018_01.jpg ADDED

Git LFS Details

  • SHA256: 1070bdcc4d86bb53d5309f088cfc81d5eee3abe2459a30115731d7e2fcfc6b38
  • Pointer size: 130 Bytes
  • Size of remote file: 32.2 kB
n000129/0019_01.jpg ADDED

Git LFS Details

  • SHA256: f0a03a5694b46be0fb25e462aad09bec0e8ebf8dcaba1f257eb20ebec8cdf9f4
  • Pointer size: 130 Bytes
  • Size of remote file: 14.1 kB
n000129/0020_01.jpg ADDED

Git LFS Details

  • SHA256: 74adf1a3033ce962d53d9fd69356aae9ccad076505b76ea7740327995d77b84a
  • Pointer size: 130 Bytes
  • Size of remote file: 26 kB
n000129/0021_01.jpg ADDED

Git LFS Details

  • SHA256: f9aae4c84bfe1b93537107aca27ddda59a6fd33827ce8bdec78b498819d33eb0
  • Pointer size: 130 Bytes
  • Size of remote file: 12.8 kB
n000129/0022_01.jpg ADDED

Git LFS Details

  • SHA256: 34b9576586a7bd5f7f023d4783a5633c7a24c07d365630c5c0efc71e4389e322
  • Pointer size: 130 Bytes
  • Size of remote file: 10.2 kB
n000129/0023_01.jpg ADDED

Git LFS Details

  • SHA256: 4e693a7c81718d2dcdd7429696040361a08d5aa500fdea966c8cb3c5368fff34
  • Pointer size: 129 Bytes
  • Size of remote file: 7.74 kB
n000129/0024_01.jpg ADDED

Git LFS Details

  • SHA256: f937ac490976ec154c2c712625ec3a5756f41bb227f3e634e535e1af0f28f449
  • Pointer size: 130 Bytes
  • Size of remote file: 13.3 kB
n000129/0025_01.jpg ADDED

Git LFS Details

  • SHA256: 760d212e8767cf2ce9dd32d3df4f7db7c29c46c1dba1e78b9314a12f4accecc2
  • Pointer size: 130 Bytes
  • Size of remote file: 17.6 kB
n000129/0026_01.jpg ADDED

Git LFS Details

  • SHA256: 431d53e01eedc92dde1c155e6cd20f2711ee52cce9ff5856cd1d23ff89bbdf73
  • Pointer size: 130 Bytes
  • Size of remote file: 12 kB
n000129/0027_01.jpg ADDED

Git LFS Details

  • SHA256: bc2a1691a7d99069f8570dd24307b5ec64431d4f49a24bf620e6e89d05c7f3d2
  • Pointer size: 129 Bytes
  • Size of remote file: 8.06 kB
n000129/0028_01.jpg ADDED

Git LFS Details

  • SHA256: e4436e762100602c7d1bb5a24bbc211745a7dc3d667115e6778f0213b5cfca39
  • Pointer size: 130 Bytes
  • Size of remote file: 21.4 kB
n000129/0029_01.jpg ADDED

Git LFS Details

  • SHA256: f280e4ca87e51780c3ac377eb568e456b9f66cfb7f5195683c3c3c6731c9a7bb
  • Pointer size: 129 Bytes
  • Size of remote file: 5.13 kB
n000129/0030_01.jpg ADDED

Git LFS Details

  • SHA256: c1f6044ba8abecadf4bc7902640ed7a06ee61e5174e82b52421dd05e6e64885b
  • Pointer size: 130 Bytes
  • Size of remote file: 23.7 kB
n000129/0031_01.jpg ADDED

Git LFS Details

  • SHA256: ce7bc899d3e024812833ab1fd8b3e0aa51b78a1ea720237bdb99456c325b7f0d
  • Pointer size: 130 Bytes
  • Size of remote file: 10.6 kB
n000129/0032_01.jpg ADDED

Git LFS Details

  • SHA256: 6f3d03c2b84c9df2056e40df9b12c9ba581cc833af569f7660b8880ea1c29dd5
  • Pointer size: 130 Bytes
  • Size of remote file: 16.8 kB
n000129/0033_01.jpg ADDED

Git LFS Details

  • SHA256: 8df3b6c7c99178b807f22e63eabc5b8a6b19b564a5f3ceebf723e9757fe9dd6e
  • Pointer size: 130 Bytes
  • Size of remote file: 14 kB
n000129/0034_01.jpg ADDED

Git LFS Details

  • SHA256: 1caff92c865b4fdc05db2afd8c92cf2f42b977cab9d00a84cc267f9e5d8c7b48
  • Pointer size: 129 Bytes
  • Size of remote file: 6.01 kB
n000129/0035_01.jpg ADDED

Git LFS Details

  • SHA256: f5b0678cc1e63636d20db7ecc65273f7b23f7bd78de01e8f62c0c9c4f0b63438
  • Pointer size: 130 Bytes
  • Size of remote file: 13.4 kB
n000129/0036_01.jpg ADDED

Git LFS Details

  • SHA256: 51d394e9c423a1f61655d89996d1e265c0c6154ea6527199ab42e03d7384ca98
  • Pointer size: 130 Bytes
  • Size of remote file: 19.4 kB
n000129/0037_07.jpg ADDED

Git LFS Details

  • SHA256: d334dc59a7b9c5c1b56776aba5c36a66cd87b62f8200170105fb082b9147b0cd
  • Pointer size: 130 Bytes
  • Size of remote file: 11.5 kB
n000129/0038_01.jpg ADDED

Git LFS Details

  • SHA256: 3ad672e9784a55c239edd64ef6225757f3fd56dc66be3fb4ed2f5308b3ab3fda
  • Pointer size: 130 Bytes
  • Size of remote file: 12.4 kB
n000129/0039_01.jpg ADDED

Git LFS Details

  • SHA256: d9eee3721f5cf74a5879814a5e5628c0e014f9d21b893ac64e7cb332b5bcd1b8
  • Pointer size: 130 Bytes
  • Size of remote file: 13.9 kB
n000129/0040_01.jpg ADDED

Git LFS Details

  • SHA256: 55ed3a6ffbafee2ffbf47fe4d14636481e5bdbc1e1a57a57b50bb2047c194a16
  • Pointer size: 130 Bytes
  • Size of remote file: 13.8 kB
n000129/0041_01.jpg ADDED

Git LFS Details

  • SHA256: 79d952a44ae7e549197cdf5cb16c7216ab9dd80a01f6e9e995b9bd35b6795068
  • Pointer size: 130 Bytes
  • Size of remote file: 10.1 kB
n000129/0042_01.jpg ADDED

Git LFS Details

  • SHA256: 9acf5392656dc22be275c33e31a437d268f189daf3412d37836049bdf3b24170
  • Pointer size: 130 Bytes
  • Size of remote file: 13 kB
n000129/0043_01.jpg ADDED

Git LFS Details

  • SHA256: 182c5cf4d04322f5227ba386c16e645f39edddc8ca47f99eb3dd8fdde745cf1c
  • Pointer size: 129 Bytes
  • Size of remote file: 7.96 kB
n000129/0044_01.jpg ADDED

Git LFS Details

  • SHA256: 9e25a27974f29606971c2284e6e637ca4c371fb98079023004ec923ef416b19a
  • Pointer size: 130 Bytes
  • Size of remote file: 12.1 kB
n000129/0045_01.jpg ADDED

Git LFS Details

  • SHA256: 49cb7c4443b827ea6b70d423f47072f4a04020a9f2e3b1e078dca3bee20b9bf8
  • Pointer size: 130 Bytes
  • Size of remote file: 13.6 kB
n000129/0046_01.jpg ADDED

Git LFS Details

  • SHA256: 1bf5b3d93b304de34abb2e62877a1e474f6114ca0d5c7fde8d34113c853640b6
  • Pointer size: 130 Bytes
  • Size of remote file: 10.4 kB
n000129/0047_01.jpg ADDED

Git LFS Details

  • SHA256: c1f3b383898f9f291553d77100a024dbeaef100f566af5cfccc3529af3533aea
  • Pointer size: 129 Bytes
  • Size of remote file: 6.76 kB
n000129/0048_01.jpg ADDED

Git LFS Details

  • SHA256: f726d236ac8462f551fc3d42f0355170039152621f957d073e1d83117bbcf124
  • Pointer size: 130 Bytes
  • Size of remote file: 14.2 kB