Changeset 16291


Ignore:
Timestamp:
Jul 14, 2016, 11:54:26 AM (3 years ago)
Author:
dferreira
Message:

Changes made to the tests of illustration2Vec

Location:
internals/2016/aptoideimagesdetector/trunk/Source Code/Illustration2Vector/illustration2vec-master
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • internals/2016/aptoideimagesdetector/trunk/Source Code/Illustration2Vector/illustration2vec-master/test.py

    r16289 r16291  
    2323
    2424                img = Image.open(image_file)
    25                 list = illust2vec.estimate_plausible_tags([img], threshold=0.5)
     25                list = illust2vec.estimate_specific_tags([img], ["explicit", "safe"])
    2626                print "Time processing image: "+str(datetime.now()-now)
    2727                f.write('\n')
     
    2929                f.write(image_file)
    3030                f.write('\n')
    31                 for item in list:
    32                         for char in item.values():
    33                                 for one in char:
    34                                         for fin in one:
    35                                                 print fin
    36                                                 f.write(str(fin))
    37                                                 f.write('\n')
     31                if(list[0]['explicit']>list[0]['safe']):
     32                        print "explicit"
     33                        f.write("explicit")
     34                else:
     35                        print "safe"
     36                        f.write("safe")
    3837
    3938for image_dir in ('aptoide_images/nude', 'aptoide_images/not_nude'):
     
    4443
    4544                img = Image.open(image_file)
    46                 list = illust2vec.estimate_plausible_tags([img], threshold=0.5)
     45                list = illust2vec.estimate_specific_tags([img], ["explicit", "safe"])
    4746                print "Time processing image: "+str(datetime.now()-now)
    4847                f.write('\n')
     
    5049                f.write(image_file)
    5150                f.write('\n')
    52                 for item in list:
    53                         for char in item.values():
    54                                 for one in char:
    55                                         for fin in one:
    56                                                 print fin
    57                                                 f.write(str(fin))
    58                                                 f.write('\n')
     51                if(list[0]['explicit']>list[0]['safe']):
     52                        print "explicit"
     53                        f.write("explicit")
     54                else:
     55                        print "safe"
     56                        f.write("safe")
    5957
    6058print "Time processing all images: "+str(datetime.now()-global_time)
  • internals/2016/aptoideimagesdetector/trunk/Source Code/Illustration2Vector/illustration2vec-master/test.txt

    r16289 r16291  
    22
    33aptoide_images/nude/27.png
    4 questionable
    5 0.848231434822
    64safe
    7 0.066905349493
    8 explicit
    9 0.0639914274216
    10 photo
    11 0.969734549522
    12 ass
    13 0.637254238129
    14 
    155
    166aptoide_images/nude/3.png
    17 questionable
    18 0.758947730064
    197explicit
    20 0.219287604094
    21 safe
    22 0.0594719350338
    23 photo
    24 0.996548771858
    25 
    268
    279aptoide_images/nude/19.png
    2810explicit
    29 0.703502655029
    30 questionable
    31 0.45050406456
    32 safe
    33 0.022006213665
    34 photo
    35 0.999758541584
    36 
    3711
    3812aptoide_images/nude/22.png
    39 questionable
    40 0.744982242584
    4113explicit
    42 0.252141714096
    43 safe
    44 0.0628703534603
    45 photo
    46 0.988466560841
    47 ass
    48 0.765235543251
    49 
    5014
    5115aptoide_images/nude/5.png
    5216explicit
    53 0.687717199326
    54 questionable
    55 0.411350339651
    56 safe
    57 0.0175547897816
    58 photo
    59 0.89805406332
    60 nude
    61 0.683707177639
    62 
    6317
    6418aptoide_images/nude/21.png
    6519explicit
    66 0.428443133831
    67 questionable
    68 0.375044763088
    69 safe
    70 0.168290168047
    71 
    7220
    7321aptoide_images/nude/17.png
    7422explicit
    75 0.889416575432
    76 questionable
    77 0.127310603857
    78 safe
    79 0.0147050023079
    80 breasts
    81 0.852306187153
    82 1girl
    83 0.619193613529
    84 
    8523
    8624aptoide_images/nude/15.png
    87 questionable
    88 0.696538865566
    8925explicit
    90 0.299039334059
    91 safe
    92 0.0653734207153
    93 photo
    94 0.998194217682
    95 
    9626
    9727aptoide_images/nude/16.png
    98 questionable
    99 0.729526996613
    10028explicit
    101 0.165377676487
    102 safe
    103 0.111323028803
    104 photo
    105 0.998865604401
    106 
    10729
    10830aptoide_images/nude/4.png
    10931explicit
    110 0.975086688995
    111 questionable
    112 0.0295670628548
    113 safe
    114 0.00253900885582
    115 1girl
    116 0.829764008522
    117 breasts
    118 0.765668392181
    119 cum
    120 0.76277256012
    121 purple hair
    122 0.602563381195
    123 lips
    124 0.576240956783
    125 
    12632
    12733aptoide_images/nude/8.png
    128 questionable
    129 0.700215518475
    13034safe
    131 0.202992916107
    132 explicit
    133 0.00996819138527
    134 photo
    135 0.998886346817
    136 breasts
    137 0.738438010216
    138 
    13935
    14036aptoide_images/nude/28.png
    141 questionable
    142 0.693161785603
    14337safe
    144 0.209242105484
    145 explicit
    146 0.0226238369942
    147 photo
    148 0.985422134399
    149 underwear
    150 0.905564963818
    151 bra
    152 0.890359401703
    153 lingerie
    154 0.855623722076
    155 panties
    156 0.68530857563
    157 1girl
    158 0.616284370422
    159 
    16038
    16139aptoide_images/nude/14.png
    16240explicit
    163 0.548208117485
    164 safe
    165 0.449438333511
    166 questionable
    167 0.12734696269
    168 photo
    169 0.868532657623
    170 1girl
    171 0.504790067673
    172 
    17341
    17442aptoide_images/nude/2.png
    17543explicit
    176 0.957913279533
    177 questionable
    178 0.121743232012
    179 safe
    180 0.00213608145714
    181 photo
    182 0.995689809322
    183 nude
    184 0.525258719921
    185 
    18644
    18745aptoide_images/nude/11.png
    18846explicit
    189 0.754307985306
    190 questionable
    191 0.360940814018
    192 safe
    193 0.0918036699295
    194 photo
    195 0.797878146172
    196 
    19747
    19848aptoide_images/nude/29.png
    19949explicit
    200 0.785110235214
    201 questionable
    202 0.427620708942
    203 safe
    204 0.00366017222404
    205 photo
    206 0.999970316887
    207 
    20850
    20951aptoide_images/nude/18.png
    21052explicit
    211 0.528886318207
    212 questionable
    213 0.271532356739
    214 safe
    215 0.000727117061615
    216 photo
    217 0.884977579117
    218 nude
    219 0.792543649673
    220 breasts
    221 0.542562603951
    222 1girl
    223 0.525411367416
    224 
    22553
    22654aptoide_images/nude/9.png
    227 questionable
    228 0.603667676449
    22955safe
    230 0.385613709688
    231 explicit
    232 0.0260193645954
    233 photo
    234 0.991956472397
    235 bikini
    236 0.850679159164
    237 swimsuit
    238 0.845859706402
    239 
    24056
    24157aptoide_images/nude/30.png
    24258explicit
    243 0.885293066502
    244 questionable
    245 0.10204860568
    246 safe
    247 0.0418464243412
    248 photo
    249 0.99988514185
    250 
    25159
    25260aptoide_images/nude/12.png
    253 questionable
    254 0.60053050518
    25561explicit
    256 0.361666798592
    257 safe
    258 0.0063202381134
    259 breasts
    260 0.971150457859
    261 1girl
    262 0.785932898521
    263 lips
    264 0.614695429802
    265 nipples
    266 0.611649811268
    267 long hair
    268 0.567155241966
    269 purple hair
    270 0.554100692272
    271 
    27262
    27363aptoide_images/nude/23.png
    27464explicit
    275 0.927468657494
    276 questionable
    277 0.067632496357
    278 safe
    279 0.00115591287613
    280 photo
    281 0.999632894993
    282 
    28365
    28466aptoide_images/nude/25.png
    28567safe
    286 0.387692034245
    287 questionable
    288 0.319337099791
    289 explicit
    290 0.203854709864
    291 photo
    292 0.822073340416
    293 
    29468
    29569aptoide_images/nude/24.png
    29670explicit
    297 0.899822771549
    298 questionable
    299 0.0846903324127
    300 safe
    301 0.00440901517868
    302 photo
    303 0.99995803833
    304 
    30571
    30672aptoide_images/nude/13.png
    30773safe
    308 0.562061607838
    309 questionable
    310 0.449449986219
    311 explicit
    312 0.0667886435986
    313 photo
    314 0.954006135464
    315 
    31674
    31775aptoide_images/nude/26.png
    318 questionable
    319 0.493202716112
    32076safe
    321 0.372440636158
    322 explicit
    323 0.0833474397659
    324 photo
    325 0.981223106384
    326 
    32777
    32878aptoide_images/not_nude/27.png
    32979safe
    330 0.929653167725
    331 questionable
    332 0.0502074360847
    333 explicit
    334 0.00575709342957
    335 
    33680
    33781aptoide_images/not_nude/3.png
    33882safe
    339 0.994255244732
    340 questionable
    341 0.00473186373711
    342 explicit
    343 0.000241935253143
    344 
    34583
    34684aptoide_images/not_nude/19.png
    34785safe
    348 0.976660430431
    349 questionable
    350 0.0148570537567
    351 explicit
    352 0.00594273209572
    353 solo
    354 0.538303911686
    355 no humans
    356 0.510990083218
    357 
    35886
    35987aptoide_images/not_nude/22.png
    36088safe
    361 0.986630916595
    362 questionable
    363 0.00916051864624
    364 explicit
    365 0.00175157189369
    366 solo
    367 0.585966348648
    368 
    36989
    37090aptoide_images/not_nude/17.png
    37191safe
    372 0.856870412827
    373 questionable
    374 0.126031905413
    375 explicit
    376 0.0274550616741
    377 
    37892
    37993aptoide_images/not_nude/15.png
    38094safe
    381 0.98951292038
    382 questionable
    383 0.00934237241745
    384 explicit
    385 0.000339508056641
    386 sky
    387 0.61644500494
    388 cloud
    389 0.516617357731
    390 
    39195
    39296aptoide_images/not_nude/16.png
    39397safe
    394 0.977010965347
    395 questionable
    396 0.0200383365154
    397 explicit
    398 0.000833362340927
    399 solo
    400 0.578824460506
    401 
    40298
    40399aptoide_images/not_nude/8.png
    404100explicit
    405 0.572850465775
    406 questionable
    407 0.265529692173
    408 safe
    409 0.205667495728
    410 photo
    411 0.998793125153
    412 
    413101
    414102aptoide_images/not_nude/28.png
    415103safe
    416 0.9844160676
    417 questionable
    418 0.0119275450706
    419 explicit
    420 0.000441700220108
    421 no humans
    422 0.566313445568
    423 
    424104
    425105aptoide_images/not_nude/10.png
    426106safe
    427 0.950699687004
    428 questionable
    429 0.0445168018341
    430 explicit
    431 0.00151664018631
    432 
    433107
    434108aptoide_images/not_nude/1.png
    435109safe
    436 0.988319516182
    437 questionable
    438 0.00946500897408
    439 explicit
    440 0.000994890928268
    441 touhou
    442 0.549978494644
    443 letterboxed
    444 0.584486663342
    445 
    446110
    447111aptoide_images/not_nude/14.png
    448112safe
    449 0.960101723671
    450 questionable
    451 0.031714618206
    452 explicit
    453 0.00247383117676
    454 
    455113
    456114aptoide_images/not_nude/6.png
    457115safe
    458 0.960447847843
    459 questionable
    460 0.0303691923618
    461 explicit
    462 0.00525903701782
    463 
    464116
    465117aptoide_images/not_nude/2.png
    466118safe
    467 0.929564476013
    468 questionable
    469 0.0554696917534
    470 explicit
    471 0.0134274065495
    472 
    473119
    474120aptoide_images/not_nude/11.png
    475121safe
    476 0.972501277924
    477 questionable
    478 0.0256915390491
    479 explicit
    480 0.00061246752739
    481 
    482122
    483123aptoide_images/not_nude/18.png
    484124safe
    485 0.990138292313
    486 questionable
    487 0.00765207409859
    488 explicit
    489 0.000378966331482
    490 touhou
    491 0.567956566811
    492 
    493125
    494126aptoide_images/not_nude/9.png
    495127safe
    496 0.982333183289
    497 questionable
    498 0.016064286232
    499 explicit
    500 0.00168216228485
    501 touhou
    502 0.612617790699
    503 solo
    504 0.55559027195
    505 
    506128
    507129aptoide_images/not_nude/30.png
    508130safe
    509 0.965798735619
    510 questionable
    511 0.0283818244934
    512 explicit
    513 0.00460058450699
    514 no humans
    515 0.54985255003
    516 
    517131
    518132aptoide_images/not_nude/12.png
    519133safe
    520 0.980462908745
    521 questionable
    522 0.0139269530773
    523 explicit
    524 0.00241360068321
    525 solo
    526 0.566770553589
    527 
    528134
    529135aptoide_images/not_nude/23.png
    530136safe
    531 0.990032196045
    532 questionable
    533 0.00796085596085
    534 explicit
    535 0.00117599964142
    536 no humans
    537 0.562404930592
    538 
    539137
    540138aptoide_images/not_nude/25.png
    541139safe
    542 0.874699413776
    543 questionable
    544 0.118736445904
    545 explicit
    546 0.0120711922646
    547 photo
    548 0.955276370049
    549 
    550140
    551141aptoide_images/not_nude/24.png
    552142safe
    553 0.995624065399
    554 questionable
    555 0.0050265789032
    556 explicit
    557 0.000160455703735
    558 multiple boys
    559 0.556077718735
    560 
    561143
    562144aptoide_images/not_nude/13.png
    563145safe
    564 0.976636528969
    565 questionable
    566 0.0169933438301
    567 explicit
    568 0.00159004330635
    569 
    570146
    571147aptoide_images/not_nude/31.png
    572148safe
    573 0.957935929298
    574 questionable
    575 0.035985738039
    576 explicit
    577 0.00264602899551
    578 solo
    579 0.6333938241
    580 
    581149
    582150aptoide_images/not_nude/26.png
    583151safe
    584 0.977290272713
    585 questionable
    586 0.0182290673256
    587 explicit
    588 0.00141084194183
    589 1boy
    590 0.784272372723
    591 blonde hair
    592 0.706839621067
    593 blue eyes
    594 0.641205072403
    595 solo
    596 0.622608184814
    597 
    598152
    599153aptoide_images/not_nude/20.png
    600154explicit
    601 0.581529200077
    602 safe
    603 0.370683372021
    604 questionable
    605 0.312610983849
    606 photo
    607 0.609063208103
    608 
    609155
    610156aptoide_images/nude/31.jpg
    611 questionable
    612 0.509108006954
    613157explicit
    614 0.421681672335
    615 safe
    616 0.104020953178
    617 photo
    618 0.859425842762
    619 blonde hair
    620 0.561423182487
    621 
    622158
    623159aptoide_images/nude/7.jpg
    624 questionable
    625 0.804831266403
    626160safe
    627 0.070591211319
    628 explicit
    629 0.0491546392441
    630 photo
    631 0.998984932899
    632 underwear
    633 0.848879933357
    634 panties
    635 0.717840611935
    636 lingerie
    637 0.666093587875
    638 bra
    639 0.544156014919
    640 
    641161
    642162aptoide_images/nude/32.jpg
    643 questionable
    644 0.54441177845
    645163explicit
    646 0.322020828724
    647 safe
    648 0.101432949305
    649 photo
    650 0.788264870644
    651 
    652164
    653165aptoide_images/nude/10.jpg
    654 questionable
    655 0.613721013069
    656166explicit
    657 0.179948210716
    658 safe
    659 0.0373676419258
    660 photo
    661 0.999167442322
    662 
    663167
    664168aptoide_images/nude/20.jpg
    665 questionable
    666 0.662364006042
    667169explicit
    668 0.265569597483
    669 safe
    670 0.0543987452984
    671 photo
    672 0.957788467407
    673 nude
    674 0.769218564034
    675 
    676170
    677171aptoide_images/nude/6.jpg
    678 questionable
    679 0.888691067696
    680172explicit
    681 0.0725678801537
    682 safe
    683 0.00716638565063
    684 photo
    685 0.999128878117
    686 underwear
    687 0.847479224205
    688 panties
    689 0.788908839226
    690 topless
    691 0.777956366539
    692 
    693173
    694174aptoide_images/nude/1.jpg
    695 questionable
    696 0.587774217129
    697175safe
    698 0.377189129591
    699 explicit
    700 0.0348729789257
    701 blonde hair
    702 0.974552512169
    703 breasts
    704 0.908967137337
    705 1girl
    706 0.880692958832
    707 swimsuit
    708 0.863780796528
    709 solo
    710 0.847996115685
    711 bikini
    712 0.798884272575
    713 cleavage
    714 0.741185426712
    715 lips
    716 0.612565696239
    717 long hair
    718 0.585021793842
    719 large breasts
    720 0.538421273232
    721 
    722176
    723177aptoide_images/not_nude/7.jpg
    724178safe
    725 0.961519956589
    726 questionable
    727 0.0337066352367
    728 explicit
    729 0.00147530436516
    730 
    731179
    732180aptoide_images/not_nude/4.jpg
    733181safe
    734 0.973885536194
    735 questionable
    736 0.0211772322655
    737 explicit
    738 0.00199350714684
    739 
    740182
    741183aptoide_images/not_nude/5.jpg
    742184safe
    743 0.981823205948
    744 questionable
    745 0.0178908705711
    746 explicit
    747 0.00065889954567
    748 blonde hair
    749 0.665204823017
    750 
    751185
    752186aptoide_images/not_nude/21.jpg
    753187safe
    754 0.927895069122
    755 questionable
    756 0.0557812154293
    757 explicit
    758 0.0032731294632
    759 
    760188
    761189aptoide_images/not_nude/29.jpg
    762190safe
    763 0.957887649536
    764 questionable
    765 0.0328436493874
    766 explicit
    767 0.00275835394859
Note: See TracChangeset for help on using the changeset viewer.