Commit d5de3f5b by vincent

test cases for FaceLandmark68Net and FaceLandmark68TinyNet

parent 4d3706fd
[{"x": 15.145603939890862, "y": 42.00849384069443}, {"x": 16.228551417589188, "y": 58.02471041679382}, {"x": 18.641504645347595, "y": 73.78255426883698}, {"x": 21.99183627963066, "y": 89.28244113922119}, {"x": 27.241109311580658, "y": 103.89149487018585}, {"x": 35.77959090471268, "y": 117.20520257949829}, {"x": 47.162988781929016, "y": 128.52083444595337}, {"x": 60.60639023780823, "y": 137.3870998620987}, {"x": 76.22466087341309, "y": 139.8476779460907}, {"x": 91.47888422012329, "y": 136.8298441171646}, {"x": 104.65206205844879, "y": 127.64202654361725}, {"x": 115.92219471931458, "y": 116.16075038909912}, {"x": 124.51052069664001, "y": 102.82219648361206}, {"x": 129.76784706115723, "y": 87.81199157238007}, {"x": 132.6519101858139, "y": 72.15077430009842}, {"x": 134.51203107833862, "y": 56.30408674478531}, {"x": 135.33487915992737, "y": 40.10292738676071}, {"x": 24.932710826396942, "y": 32.96273946762085}, {"x": 32.57601857185364, "y": 28.00302878022194}, {"x": 42.381374537944794, "y": 27.10871994495392}, {"x": 52.198585867881775, "y": 29.124750941991806}, {"x": 61.5922674536705, "y": 32.90563523769379}, {"x": 85.18133461475372, "y": 31.272751092910767}, {"x": 94.89730596542358, "y": 26.85772553086281}, {"x": 105.1171749830246, "y": 24.783611297607422}, {"x": 115.2367115020752, "y": 25.725752860307693}, {"x": 123.13878536224365, "y": 30.079219490289688}, {"x": 73.67254793643951, "y": 43.12345236539841}, {"x": 73.7981915473938, "y": 55.55519610643387}, {"x": 73.8839328289032, "y": 67.69467741250992}, {"x": 73.96439015865326, "y": 79.91722226142883}, {"x": 62.394945323467255, "y": 85.0008487701416}, {"x": 68.01678389310837, "y": 87.24332749843597}, {"x": 74.27898198366165, "y": 88.8382226228714}, {"x": 80.42970299720764, "y": 86.84954345226288}, {"x": 85.87614297866821, "y": 84.31319296360016}, {"x": 35.7684463262558, "y": 44.57894414663315}, {"x": 42.30532944202423, "y": 41.117119789123535}, {"x": 50.501713156700134, "y": 41.50397926568985}, {"x": 56.56731426715851, "y": 45.83812057971954}, {"x": 50.084468722343445, "y": 48.037388920784}, {"x": 41.91972613334656, "y": 47.92611300945282}, {"x": 91.28680229187012, "y": 44.677162170410156}, {"x": 97.76994287967682, "y": 40.084308385849}, {"x": 105.72623312473297, "y": 39.8311972618103}, {"x": 111.95003092288971, "y": 42.97384321689606}, {"x": 106.4166247844696, "y": 46.30742222070694}, {"x": 98.37331473827362, "y": 46.70642763376236}, {"x": 51.94934159517288, "y": 102.49188244342804}, {"x": 60.71081757545471, "y": 101.18674635887146}, {"x": 68.67328137159348, "y": 100.15718936920166}, {"x": 74.38371777534485, "y": 101.07522904872894}, {"x": 80.5251270532608, "y": 99.71560835838318}, {"x": 88.56176733970642, "y": 100.32560527324677}, {"x": 96.980881690979, "y": 100.81177353858948}, {"x": 89.01146650314331, "y": 108.55080485343933}, {"x": 81.3762366771698, "y": 112.2200220823288}, {"x": 74.73004907369614, "y": 113.34742605686188}, {"x": 68.42194050550461, "y": 112.92429864406586}, {"x": 60.53387671709061, "y": 110.02114713191986}, {"x": 55.876149237155914, "y": 103.3714234828949}, {"x": 68.54872852563858, "y": 104.03825640678406}, {"x": 74.44304376840591, "y": 104.46503162384033}, {"x": 80.63703775405884, "y": 103.56011688709259}, {"x": 93.1486040353775, "y": 102.0165503025055}, {"x": 80.84633946418762, "y": 104.64600920677185}, {"x": 74.63692724704742, "y": 105.62551617622375}, {"x": 68.74832957983017, "y": 105.22661805152893}] [{"x":12.409065663814545,"y":35.459357500076294},{"x":13.863831013441086,"y":53.03075462579727},{"x":17.257214337587357,"y":69.21994239091873},{"x":20.290792733430862,"y":83.73786807060242},{"x":25.19843727350235,"y":100.01502335071564},{"x":33.363962173461914,"y":114.15562033653259},{"x":42.67177730798721,"y":124.92083609104156},{"x":54.774945974349976,"y":134.97415781021118},{"x":73.93101006746292,"y":140.77884256839752},{"x":93.50163638591766,"y":135.3241503238678},{"x":106.89235031604767,"y":125.59508979320526},{"x":116.92832708358765,"y":115.29875993728638},{"x":125.80114603042603,"y":101.27357840538025},{"x":130.48838675022125,"y":84.83449816703796},{"x":133.11561048030853,"y":69.95338797569275},{"x":135.84416806697845,"y":53.477123379707336},{"x":137.16664016246796,"y":35.98061129450798},{"x":22.041092813014984,"y":26.081138849258423},{"x":29.21232059597969,"y":21.911372244358063},{"x":38.767728209495544,"y":21.422917395830154},{"x":47.85865992307663,"y":23.588016629219055},{"x":55.94828277826309,"y":26.723874360322952},{"x":88.98929357528687,"y":26.476483047008514},{"x":97.3086029291153,"y":23.411455750465393},{"x":106.5034031867981,"y":21.319837868213654},{"x":116.54528975486755,"y":21.732238680124283},{"x":124.39115345478058,"y":26.091013848781586},{"x":72.58472889661789,"y":44.89734023809433},{"x":72.1238225698471,"y":57.7533558011055},{"x":71.73694968223572,"y":70.3047975897789},{"x":71.81699573993683,"y":79.94250655174255},{"x":62.10947334766388,"y":83.842733502388},{"x":66.3440153002739,"y":85.69430708885193},{"x":72.36149311065674,"y":87.41167187690735},{"x":78.35066020488739,"y":85.74668169021606},{"x":83.0715000629425,"y":83.87293517589569},{"x":33.77652391791344,"y":40.25426656007767},{"x":39.713045954704285,"y":37.594060599803925},{"x":47.61984497308731,"y":37.72639185190201},{"x":55.496129393577576,"y":42.38396733999252},{"x":48.19572865962982,"y":44.55205053091049},{"x":39.7584468126297,"y":44.11860108375549},{"x":90.26297628879547,"y":42.310331761837006},{"x":97.85987734794617,"y":37.882326543331146},{"x":105.9216856956482,"y":37.697312235832214},{"x":112.38531768321991,"y":40.45048803091049},{"x":105.98326027393341,"y":44.305725395679474},{"x":97.26411402225494,"y":44.69909369945526},{"x":50.48552602529526,"y":100.74669420719147},{"x":58.16384553909302,"y":99.99362826347351},{"x":67.69992560148239,"y":98.86696636676788},{"x":72.78527766466141,"y":100.00039637088776},{"x":77.79269814491272,"y":98.80055487155914},{"x":88.17337453365326,"y":99.85068440437317},{"x":97.4126547574997,"y":100.27143359184265},{"x":87.91132271289825,"y":107.21607506275177},{"x":80.38677871227264,"y":111.03568375110626},{"x":73.13570827245712,"y":111.78229451179504},{"x":65.85598737001419,"y":111.23852133750916},{"x":58.75929147005081,"y":107.56462812423706},{"x":52.198053896427155,"y":100.71471333503723},{"x":66.12485200166702,"y":103.38914394378662},{"x":72.73153960704803,"y":103.6908209323883},{"x":79.6861320734024,"y":103.28285694122314},{"x":95.68716287612915,"y":100.31683444976807},{"x":79.67764735221863,"y":103.91019880771637},{"x":72.93425649404526,"y":104.61705923080444},{"x":66.34287983179092,"y":103.94268035888672}]
\ No newline at end of file \ No newline at end of file
[{"x":12.591811269521713,"y":37.18056008219719},{"x":14.489217102527618,"y":54.375430941581726},{"x":18.031097576022148,"y":70.10978311300278},{"x":21.278046816587448,"y":83.95282924175262},{"x":26.40417516231537,"y":99.72459375858307},{"x":34.79916527867317,"y":113.51814866065979},{"x":44.21398043632507,"y":124.09239113330841},{"x":56.03765398263931,"y":134.3254119157791},{"x":75.41389167308807,"y":140.46012461185455},{"x":94.84915137290955,"y":134.49379205703735},{"x":107.92432129383087,"y":123.9702969789505},{"x":118.00838112831116,"y":113.45937252044678},{"x":126.69345438480377,"y":99.56673681735992},{"x":131.41701221466064,"y":83.40703547000885},{"x":133.99315774440765,"y":68.92484575510025},{"x":136.772882938385,"y":52.720874547958374},{"x":137.7272218465805,"y":35.40073335170746},{"x":21.938379853963852,"y":28.243593871593475},{"x":29.08402383327484,"y":24.014483392238617},{"x":38.46672624349594,"y":23.24410155415535},{"x":47.45165705680847,"y":24.920182675123215},{"x":55.57771772146225,"y":27.864713966846466},{"x":89.10931348800659,"y":27.321801334619522},{"x":97.32098579406738,"y":24.548690021038055},{"x":106.52551352977753,"y":22.409027069807053},{"x":116.49984419345856,"y":22.863386571407318},{"x":124.49341714382172,"y":26.976196467876434},{"x":72.84769266843796,"y":46.6731995344162},{"x":72.5912556052208,"y":59.78170037269592},{"x":72.49848246574402,"y":72.47795909643173},{"x":72.59156405925751,"y":82.31859505176544},{"x":63.02006542682648,"y":85.39192378520966},{"x":67.24515706300735,"y":87.40304410457611},{"x":73.31620305776596,"y":89.13427591323853},{"x":79.3295681476593,"y":87.3850017786026},{"x":83.98161828517914,"y":85.33579409122467},{"x":34.017493575811386,"y":42.064668238162994},{"x":39.69891518354416,"y":39.04064744710922},{"x":47.665129601955414,"y":39.02306109666824},{"x":55.84650635719299,"y":43.793052434921265},{"x":48.43880832195282,"y":46.189695596694946},{"x":39.91182893514633,"y":45.974622666835785},{"x":90.23652970790863,"y":43.494392931461334},{"x":97.89576530456543,"y":38.67722600698471},{"x":105.97457885742188,"y":38.45117390155792},{"x":112.57963478565216,"y":41.22479259967804},{"x":106.20929896831512,"y":45.47332227230072},{"x":97.40135371685028,"y":45.80201804637909},{"x":51.17177367210388,"y":100.92100203037262},{"x":58.8924765586853,"y":100.64716637134552},{"x":68.65793466567993,"y":99.5934247970581},{"x":73.81858080625534,"y":100.83856880664825},{"x":78.77743542194366,"y":99.58769381046295},{"x":89.21037912368774,"y":100.49387812614441},{"x":98.3612447977066,"y":100.58583319187164},{"x":88.92414271831512,"y":107.61089622974396},{"x":81.55436217784882,"y":111.79174482822418},{"x":74.08711463212967,"y":112.78842687606812},{"x":66.74499660730362,"y":112.13003396987915},{"x":59.4507560133934,"y":108.14197361469269},{"x":52.86548137664795,"y":100.84743797779083},{"x":67.18341708183289,"y":104.20102179050446},{"x":73.75064492225647,"y":104.48753535747528},{"x":80.83339333534241,"y":104.14700210094452},{"x":96.58516645431519,"y":100.67276358604431},{"x":80.59312999248505,"y":104.5551985502243},{"x":73.77402484416962,"y":105.33222556114197},{"x":67.1465814113617,"y":104.65545952320099}]
\ No newline at end of file
[{"x": 9.995004907250404, "y": 53.55449616909027}, {"x": 12.50796876847744, "y": 71.41348421573639}, {"x": 16.677917540073395, "y": 88.59677910804749}, {"x": 22.6475290954113, "y": 104.6014130115509}, {"x": 30.59161528944969, "y": 119.35952603816986}, {"x": 41.422560811042786, "y": 132.23226964473724}, {"x": 54.74700182676315, "y": 142.4335777759552}, {"x": 70.32481580972672, "y": 149.33189749717712}, {"x": 87.31497824192047, "y": 150.50972700119019}, {"x": 103.98584604263306, "y": 145.98273038864136}, {"x": 117.90181696414948, "y": 135.19554734230042}, {"x": 128.67935299873352, "y": 121.79077863693237}, {"x": 136.7296814918518, "y": 105.85636496543884}, {"x": 140.29521346092224, "y": 88.25878500938416}, {"x": 140.9232795238495, "y": 70.16736567020416}, {"x": 140.2374029159546, "y": 52.73242145776749}, {"x": 137.97148168087006, "y": 34.537942707538605}, {"x": 14.37721811234951, "y": 33.1049881875515}, {"x": 22.6781465113163, "y": 24.685607850551605}, {"x": 34.36600640416145, "y": 21.1758591234684}, {"x": 46.24761343002319, "y": 22.49436378479004}, {"x": 57.12086856365204, "y": 26.742971688508987}, {"x": 81.21025264263153, "y": 23.014162480831146}, {"x": 92.2086775302887, "y": 15.48520065844059}, {"x": 104.77548837661743, "y": 11.306393891572952}, {"x": 117.67798662185669, "y": 11.740228906273842}, {"x": 127.28274464607239, "y": 18.115675449371338}, {"x": 69.62742805480957, "y": 41.51403307914734}, {"x": 70.82946002483368, "y": 55.146731436252594}, {"x": 71.84555232524872, "y": 68.59723627567291}, {"x": 73.0046421289444, "y": 81.93029165267944}, {"x": 60.417647659778595, "y": 88.01697492599487}, {"x": 67.98770427703857, "y": 90.65443575382233}, {"x": 76.07284784317017, "y": 91.86699986457825}, {"x": 84.35145914554596, "y": 88.2117748260498}, {"x": 90.86072444915771, "y": 83.67109894752502}, {"x": 28.828849643468857, "y": 47.794362902641296}, {"x": 36.311765760183334, "y": 43.33548992872238}, {"x": 44.95347887277603, "y": 43.20283681154251}, {"x": 52.85406410694122, "y": 48.07424694299698}, {"x": 44.7566494345665, "y": 49.9691516160965}, {"x": 35.997654497623444, "y": 50.32083839178085}, {"x": 89.51361179351807, "y": 42.501528561115265}, {"x": 97.55686819553375, "y": 35.38782298564911}, {"x": 106.73499405384064, "y": 33.59129726886749}, {"x": 114.8474782705307, "y": 36.34611591696739}, {"x": 108.40394496917725, "y": 40.97002297639847}, {"x": 98.98389279842377, "y": 42.47862249612808}, {"x": 53.17014008760452, "y": 109.99322533607483}, {"x": 62.47727572917938, "y": 105.5664449930191}, {"x": 72.82306104898453, "y": 102.35638618469238}, {"x": 80.85319697856903, "y": 103.16510796546936}, {"x": 89.42103087902069, "y": 100.08856952190399}, {"x": 99.8135894536972, "y": 100.0435084104538}, {"x": 109.78849232196808, "y": 101.60946249961853}, {"x": 101.90783143043518, "y": 115.25328755378723}, {"x": 92.65078604221344, "y": 122.49988317489624}, {"x": 83.28675627708435, "y": 125.00075697898865}, {"x": 74.31002408266068, "y": 125.16917288303375}, {"x": 63.37641924619675, "y": 121.38420939445496}, {"x": 57.85811394453049, "y": 110.28821468353271}, {"x": 73.27612638473511, "y": 108.2253098487854}, {"x": 81.34059011936188, "y": 108.251291513443}, {"x": 89.9710088968277, "y": 105.99507093429565}, {"x": 104.85810041427612, "y": 103.1228095293045}, {"x": 90.87785482406616, "y": 112.19902038574219}, {"x": 82.05846548080444, "y": 114.52528238296509}, {"x": 73.8232746720314, "y": 114.64338898658752}] [{"x":9.57956425845623,"y":52.39383280277252},{"x":12.517975643277168,"y":69.67290490865707},{"x":17.382895946502686,"y":85.59838235378265},{"x":22.254569828510284,"y":100.24277865886688},{"x":29.952556639909744,"y":115.30093252658844},{"x":40.607236325740814,"y":127.02118456363678},{"x":52.21455842256546,"y":135.75681746006012},{"x":66.94714576005936,"y":144.7398841381073},{"x":87.62003481388092,"y":148.519966006279},{"x":107.54483342170715,"y":139.5822286605835},{"x":120.26938498020172,"y":127.25696861743927},{"x":129.46229875087738,"y":116.31288528442383},{"x":136.60779297351837,"y":101.43148005008698},{"x":139.15124237537384,"y":84.36994850635529},{"x":139.66587781906128,"y":68.84740144014359},{"x":139.49655890464783,"y":52.11438238620758},{"x":138.19187879562378,"y":34.275998175144196},{"x":17.73911565542221,"y":34.247177839279175},{"x":23.905900865793228,"y":27.4917371571064},{"x":33.15091207623482,"y":23.992185294628143},{"x":42.38297492265701,"y":24.080870300531387},{"x":50.80330967903137,"y":25.668590515851974},{"x":82.72879421710968,"y":22.588082402944565},{"x":90.8599466085434,"y":18.972241133451462},{"x":100.4738599061966,"y":16.92224331200123},{"x":111.04867458343506,"y":17.707618698477745},{"x":120.33791542053223,"y":22.05384224653244},{"x":69.454425573349,"y":45.07347196340561},{"x":70.71190774440765,"y":59.0581476688385},{"x":71.70603275299072,"y":72.0032662153244},{"x":73.040771484375,"y":81.89877569675446},{"x":63.307446241378784,"y":87.61201500892639},{"x":68.28959137201309,"y":88.8374537229538},{"x":75.32510161399841,"y":89.66150879859924},{"x":81.8707287311554,"y":87.05066442489624},{"x":87.0687872171402,"y":84.28579866886139},{"x":31.470197439193726,"y":46.391429007053375},{"x":36.97886019945145,"y":42.39812046289444},{"x":45.00039964914322,"y":41.7159765958786},{"x":53.23628783226013,"y":45.5289289355278},{"x":46.301740407943726,"y":48.1160894036293},{"x":37.982627749443054,"y":48.80691468715668},{"x":87.06339597702026,"y":41.115787625312805},{"x":93.96767914295197,"y":35.74279770255089},{"x":102.04813778400421,"y":34.39944013953209},{"x":109.27990972995758,"y":36.874495446681976},{"x":102.8844952583313,"y":40.83576053380966},{"x":94.25925314426422,"y":42.34584420919418},{"x":51.57048851251602,"y":105.63550293445587},{"x":58.90470743179321,"y":101.6682118177414},{"x":70.55880725383759,"y":98.85237514972687},{"x":77.36653983592987,"y":99.13035929203033},{"x":83.67621302604675,"y":97.07690477371216},{"x":97.94619083404541,"y":96.29683792591095},{"x":109.81523394584656,"y":97.79501259326935},{"x":101.1863261461258,"y":112.63381540775299},{"x":92.58085191249847,"y":120.5494076013565},{"x":82.98978209495544,"y":123.54103624820709},{"x":73.21132868528366,"y":123.69250059127808},{"x":63.237668573856354,"y":118.47777664661407},{"x":53.231893479824066,"y":105.59755861759186},{"x":69.4526419043541,"y":103.36487889289856},{"x":78.06874215602875,"y":102.5748610496521},{"x":87.34851479530334,"y":101.16179287433624},{"x":108.10398459434509,"y":98.21300804615021},{"x":90.36072492599487,"y":113.51232826709747},{"x":81.56309723854065,"y":116.386878490448},{"x":72.68635332584381,"y":116.3683533668518}]
\ No newline at end of file \ No newline at end of file
[{"x":10.509434714913368,"y":52.461858093738556},{"x":13.533616438508034,"y":69.72497999668121},{"x":18.125666677951813,"y":85.49389243125916},{"x":22.68524095416069,"y":99.90644752979279},{"x":29.770859330892563,"y":115.02401232719421},{"x":40.009237825870514,"y":127.17496454715729},{"x":51.13186240196228,"y":134.8838210105896},{"x":64.93598967790604,"y":142.67239272594452},{"x":86.1398845911026,"y":145.5208271741867},{"x":106.27160668373108,"y":137.6600593328476},{"x":119.85296308994293,"y":126.55811011791229},{"x":129.32697236537933,"y":115.91286063194275},{"x":136.9260460138321,"y":101.54499113559723},{"x":140.04463255405426,"y":85.47771871089935},{"x":140.39686918258667,"y":70.350381731987},{"x":140.93535840511322,"y":53.595203161239624},{"x":139.76540565490723,"y":35.78364551067352},{"x":18.718457221984863,"y":33.92140567302704},{"x":24.8894065618515,"y":27.165759354829788},{"x":34.25554856657982,"y":23.889242112636566},{"x":43.19920241832733,"y":23.89446794986725},{"x":51.55668407678604,"y":25.493214279413223},{"x":83.17877948284149,"y":22.116592526435852},{"x":91.0528689622879,"y":19.1002294421196},{"x":100.33524334430695,"y":17.00422614812851},{"x":110.7668548822403,"y":18.07868331670761},{"x":119.95638906955719,"y":22.73145094513893},{"x":69.94039714336395,"y":44.93928104639053},{"x":70.8938866853714,"y":58.68610739707947},{"x":71.92910313606262,"y":71.54497504234314},{"x":73.07412475347519,"y":81.73994421958923},{"x":63.52762430906296,"y":87.66357600688934},{"x":68.80622059106827,"y":89.00657594203949},{"x":75.79838633537292,"y":89.81735408306122},{"x":82.58680701255798,"y":87.12102770805359},{"x":87.82331049442291,"y":84.34564769268036},{"x":32.21326768398285,"y":45.98721116781235},{"x":37.76122033596039,"y":42.323389649391174},{"x":45.626114308834076,"y":41.58268868923187},{"x":53.76068651676178,"y":45.14274448156357},{"x":46.830734610557556,"y":47.79057204723358},{"x":38.68361413478851,"y":48.451441526412964},{"x":87.2931182384491,"y":41.23439937829971},{"x":93.99429559707642,"y":36.358749121427536},{"x":101.83376669883728,"y":35.318271070718765},{"x":109.02988314628601,"y":37.269607186317444},{"x":102.72921323776245,"y":41.246773302555084},{"x":94.33983564376831,"y":42.437638342380524},{"x":51.489101350307465,"y":106.93963766098022},{"x":59.81220602989197,"y":103.0700147151947},{"x":71.77513092756271,"y":100.07118880748749},{"x":78.22524905204773,"y":100.49879550933838},{"x":84.36182141304016,"y":98.41773211956024},{"x":98.11981916427612,"y":97.42594063282013},{"x":109.53287780284882,"y":98.12568426132202},{"x":99.13961291313171,"y":110.45710444450378},{"x":90.27182757854462,"y":117.69201457500458},{"x":80.78381717205048,"y":120.45529782772064},{"x":71.48520648479462,"y":120.73915600776672},{"x":62.03146129846573,"y":116.77920520305634},{"x":53.2006099820137,"y":106.71007633209229},{"x":70.40069103240967,"y":104.98761534690857},{"x":78.83743643760681,"y":104.08617854118347},{"x":88.0838692188263,"y":102.68035233020782},{"x":107.74409472942352,"y":98.4467625617981},{"x":88.4322077035904,"y":110.55790185928345},{"x":79.5111358165741,"y":113.10129761695862},{"x":71.03536427021027,"y":113.31479251384735}]
\ No newline at end of file
[{"x": 1.41040606983006, "y": 39.10264679789543}, {"x": 6.364097021520138, "y": 59.51536446809769}, {"x": 9.736957371234894, "y": 77.80020213127136}, {"x": 13.817122921347618, "y": 96.05930614471436}, {"x": 20.00808236002922, "y": 110.73724734783173}, {"x": 26.37610113620758, "y": 121.9759613275528}, {"x": 33.717534959316254, "y": 132.17582309246063}, {"x": 41.72355371713638, "y": 140.95428133010864}, {"x": 50.880420446395874, "y": 146.48704254627228}, {"x": 61.8572758436203, "y": 146.95429050922394}, {"x": 72.31115305423737, "y": 142.27578461170197}, {"x": 81.12127649784088, "y": 134.44229400157928}, {"x": 90.62704622745514, "y": 123.21754229068756}, {"x": 99.09188437461853, "y": 110.66853940486908}, {"x": 106.08789837360382, "y": 92.88722932338715}, {"x": 110.42981934547424, "y": 72.83273243904114}, {"x": 110.97252583503723, "y": 51.15715354681015}, {"x": 19.203872233629227, "y": 37.71118628978729}, {"x": 30.421346753835678, "y": 37.16629707813263}, {"x": 39.97739166021347, "y": 40.400769114494324}, {"x": 49.04381215572357, "y": 45.61803185939789}, {"x": 56.723132252693176, "y": 53.29851043224335}, {"x": 56.084791123867035, "y": 46.76303869485855}, {"x": 65.71077406406403, "y": 46.11447751522064}, {"x": 75.0335134267807, "y": 46.96638810634613}, {"x": 83.45012521743774, "y": 51.2211879491806}, {"x": 90.43923103809357, "y": 59.06730401515961}, {"x": 57.634793639183044, "y": 60.69884181022644}, {"x": 56.081126153469086, "y": 72.10934686660767}, {"x": 54.33526223897934, "y": 84.50968235731125}, {"x": 52.046833634376526, "y": 99.18286514282227}, {"x": 43.99328297376633, "y": 99.4484453201294}, {"x": 49.026043593883514, "y": 104.39998996257782}, {"x": 55.01739031076431, "y": 107.4150230884552}, {"x": 59.81684720516205, "y": 105.90647208690643}, {"x": 64.0739357471466, "y": 101.74840021133423}, {"x": 27.087938010692596, "y": 55.09133046865463}, {"x": 34.27653384208679, "y": 55.21461433172226}, {"x": 42.54729217290878, "y": 57.39108908176422}, {"x": 48.454275488853455, "y": 61.82331371307373}, {"x": 41.1783966422081, "y": 61.66855639219284}, {"x": 34.177026987075806, "y": 60.50751310586929}, {"x": 59.51743584871292, "y": 62.6235288977623}, {"x": 65.59782898426056, "y": 61.08310657739639}, {"x": 73.38363683223724, "y": 63.624403953552246}, {"x": 78.78980994224548, "y": 67.99472141265869}, {"x": 72.09050583839417, "y": 68.4499539732933}, {"x": 64.50075209140778, "y": 66.9551106095314}, {"x": 34.73506963253021, "y": 112.76923489570618}, {"x": 42.499454855918884, "y": 113.63057744503021}, {"x": 49.24748706817627, "y": 114.29424142837524}, {"x": 55.50651115179062, "y": 115.7518025636673}, {"x": 62.20475721359253, "y": 116.19831931591034}, {"x": 66.55372452735901, "y": 117.66684019565582}, {"x": 71.82598805427551, "y": 118.23190891742706}, {"x": 64.1076112985611, "y": 127.00456368923187}, {"x": 58.63429069519043, "y": 129.7624831199646}, {"x": 52.65244817733765, "y": 129.39003217220306}, {"x": 47.463079154491425, "y": 127.39845669269562}, {"x": 42.28087282180786, "y": 123.10187613964081}, {"x": 38.320072412490845, "y": 114.88845479488373}, {"x": 49.383214592933655, "y": 119.21215355396271}, {"x": 55.4133198261261, "y": 120.68333745002747}, {"x": 60.75339984893799, "y": 121.00764191150665}, {"x": 67.49378943443298, "y": 118.56007528305054}, {"x": 59.50732082128525, "y": 124.34931361675262}, {"x": 54.06349813938141, "y": 124.39959263801575}, {"x": 48.627867102622986, "y": 122.32591986656189}] [{"x":9.103168368339539,"y":101.01195418834686},{"x":14.784232437610626,"y":109.96735978126526},{"x":20.72097545862198,"y":120.9920563697815},{"x":23.68257150053978,"y":127.4499876499176},{"x":33.172756016254425,"y":135.1237609386444},{"x":40.30949687957764,"y":136.57750260829926},{"x":46.08676642179489,"y":136.41320192813873},{"x":48.44881075620651,"y":143.47557425498962},{"x":58.82970488071442,"y":146.31987726688385},{"x":65.03185284137726,"y":143.93176698684692},{"x":70.69711172580719,"y":141.56521546840668},{"x":73.59640145301819,"y":140.66094636917114},{"x":85.81815421581268,"y":125.65490245819092},{"x":91.43581211566925,"y":117.32116794586182},{"x":93.22071814537048,"y":103.55141079425812},{"x":97.05579698085785,"y":97.57390463352203},{"x":89.83693969249725,"y":80.89369875192642},{"x":8.929109543561935,"y":95.41884541511536},{"x":15.941815882921219,"y":91.92907392978668},{"x":22.651149570941925,"y":87.75521492958069},{"x":25.080495923757553,"y":87.33296239376068},{"x":35.09866887331009,"y":87.67910146713257},{"x":55.91999834775925,"y":77.73741436004639},{"x":60.79969918727875,"y":76.88318556547165},{"x":72.479785323143,"y":77.81150668859482},{"x":72.09985733032227,"y":80.98973709344864},{"x":84.31956672668457,"y":76.90173119306564},{"x":46.01968437433243,"y":93.13016855716705},{"x":44.01630175113678,"y":100.97888398170471},{"x":40.80449330806732,"y":107.36412870883942},{"x":38.621174454689026,"y":114.48911905288696},{"x":33.12944173812866,"y":118.61227464675903},{"x":35.98146861791611,"y":119.76905286312103},{"x":43.14035201072693,"y":121.47148418426514},{"x":49.96515953540802,"y":119.40146112442017},{"x":54.14790153503418,"y":118.55489778518677},{"x":22.290891706943512,"y":101.89636206626892},{"x":26.193063497543335,"y":97.70843470096588},{"x":32.05891406536102,"y":95.37641751766205},{"x":36.877059400081635,"y":95.59315097332001},{"x":31.79427993297577,"y":98.80662655830383},{"x":26.30974444746971,"y":101.54476964473724},{"x":53.97727316617966,"y":88.98845142126083},{"x":59.00451451539993,"y":90.48788344860077},{"x":65.20665884017944,"y":89.76256692409515},{"x":72.8481148481369,"y":81.40269559621811},{"x":68.15013182163239,"y":88.9257538318634},{"x":59.68368661403656,"y":92.8312953710556},{"x":26.978514283895493,"y":124.41534793376923},{"x":37.64959371089935,"y":129.4168745279312},{"x":38.14149236679077,"y":127.94919180870056},{"x":44.06257927417755,"y":127.01305139064789},{"x":48.707089364528656,"y":122.96710205078125},{"x":57.109412133693695,"y":125.86821961402893},{"x":63.49719738960266,"y":116.9522500038147},{"x":51.657943189144135,"y":119.83492803573608},{"x":46.5363906621933,"y":126.18525648117065},{"x":43.10889798402786,"y":128.2001837491989},{"x":42.599557995796204,"y":130.2384203672409},{"x":31.888991057872772,"y":126.56950533390045},{"x":27.653676003217697,"y":126.88065385818481},{"x":44.846410274505615,"y":133.13909232616425},{"x":46.87078648805618,"y":129.8393074274063},{"x":52.942511677742004,"y":126.64793169498444},{"x":62.26701807975769,"y":119.98195624351501},{"x":47.63777244091034,"y":122.5474488735199},{"x":42.832436323165894,"y":123.82451903820038},{"x":39.61905354261398,"y":124.0300487279892}]
\ No newline at end of file \ No newline at end of file
[{"x":28.1980222761631,"y":82.78948521614075},{"x":41.05900514125824,"y":94.1000794172287},{"x":45.85652047395706,"y":100.0026285648346},{"x":46.66536271572113,"y":103.72171652317047},{"x":46.17695450782776,"y":108.95469212532043},{"x":44.9439537525177,"y":113.12937867641449},{"x":41.77620494365692,"y":118.82230281829834},{"x":36.76300173997879,"y":120.5938982963562},{"x":40.35541081428528,"y":126.7483412027359},{"x":45.805581748485565,"y":129.04026460647583},{"x":52.93079322576523,"y":126.84588611125946},{"x":53.27251535654068,"y":126.36341333389282},{"x":55.39190810918808,"y":125.28188920021057},{"x":61.80034518241882,"y":123.59300637245178},{"x":70.61709320545197,"y":115.20878064632416},{"x":82.92120599746704,"y":111.2279531955719},{"x":81.62196671962738,"y":100.77173101902008},{"x":24.95584148168564,"y":76.60648649930954},{"x":32.25624072551727,"y":74.50906938314438},{"x":29.986725986003876,"y":73.17802804708481},{"x":37.48139047622681,"y":68.97298204898834},{"x":43.13521087169647,"y":72.66015625},{"x":66.04641699790955,"y":72.61856651306152},{"x":67.14672982692719,"y":77.07855653762817},{"x":75.16640496253967,"y":78.80701857805252},{"x":78.36494970321655,"y":81.77029263973236},{"x":83.96591889858246,"y":86.9630047082901},{"x":49.43720746040344,"y":86.65960651636124},{"x":45.592297196388245,"y":89.74523079395294},{"x":38.21692967414856,"y":95.09447729587555},{"x":36.639003574848175,"y":99.00447487831116},{"x":38.06128841638565,"y":99.63473975658417},{"x":38.76173406839371,"y":100.46630108356476},{"x":41.303012907505035,"y":101.67539536952972},{"x":44.19621616601944,"y":103.10262358188629},{"x":43.459695279598236,"y":107.30739903450012},{"x":35.52263468503952,"y":84.4736732840538},{"x":35.70898097753525,"y":81.59145677089691},{"x":39.94155639410019,"y":83.26475405693054},{"x":42.95827788114548,"y":86.43353658914566},{"x":39.764176189899445,"y":87.32476645708084},{"x":36.219153583049774,"y":85.95869213342667},{"x":64.10197567939758,"y":89.49556505680084},{"x":68.22205686569214,"y":86.13673758506775},{"x":71.8127316236496,"y":86.98408073186874},{"x":73.26841568946838,"y":89.27346312999725},{"x":71.92459321022034,"y":92.17298924922943},{"x":62.44171500205994,"y":93.04573714733124},{"x":31.96991491317749,"y":107.6513100862503},{"x":36.91116398572922,"y":108.80632710456848},{"x":37.83100974559784,"y":107.84696221351624},{"x":39.75290495157242,"y":108.15859878063202},{"x":41.08729958534241,"y":109.05613076686859},{"x":45.37723106145859,"y":114.44351887702942},{"x":49.86580538749695,"y":115.59975600242615},{"x":43.856497406959534,"y":108.97726941108704},{"x":41.35492968559265,"y":110.25707685947418},{"x":40.04151773452759,"y":111.69485104084015},{"x":36.815838396549225,"y":109.72805964946747},{"x":36.58897018432617,"y":108.29451870918274},{"x":32.02847445011139,"y":108.27437102794647},{"x":39.47241109609604,"y":111.86161315441132},{"x":40.09113299846649,"y":111.6380364894867},{"x":43.23629933595657,"y":113.00234961509705},{"x":49.69379901885986,"y":116.33892869949341},{"x":41.574267983436584,"y":107.91563832759857},{"x":39.02515745162964,"y":108.83277690410614},{"x":38.635754346847534,"y":107.74428224563599}]
\ No newline at end of file
import * as tf from '@tensorflow/tfjs-core'; import * as tf from '@tensorflow/tfjs-core';
import { import { FaceDetectionNet, FaceRecognitionNet, IPoint, IRect, Mtcnn, NeuralNetwork, TinyYolov2 } from '../src/';
FaceDetectionNet,
FaceLandmarkNet,
FaceRecognitionNet,
IPoint,
IRect,
Mtcnn,
NeuralNetwork,
TinyYolov2,
} from '../src/';
import { allFacesMtcnnFactory, allFacesSsdMobilenetv1Factory, allFacesTinyYolov2Factory } from '../src/allFacesFactory'; import { allFacesMtcnnFactory, allFacesSsdMobilenetv1Factory, allFacesTinyYolov2Factory } from '../src/allFacesFactory';
import { FaceDetection } from '../src/classes/FaceDetection'; import { FaceDetection } from '../src/classes/FaceDetection';
import { FaceLandmarks } from '../src/classes/FaceLandmarks'; import { FaceLandmarks } from '../src/classes/FaceLandmarks';
import { FullFaceDescription } from '../src/classes/FullFaceDescription'; import { FullFaceDescription } from '../src/classes/FullFaceDescription';
import { FaceLandmark68Net } from '../src/faceLandmarkNet/FaceLandmark68Net';
import { FaceLandmark68TinyNet } from '../src/faceLandmarkNet/FaceLandmark68TinyNet';
import { allFacesMtcnnFunction, allFacesSsdMobilenetv1Function, allFacesTinyYolov2Function } from '../src/globalApi'; import { allFacesMtcnnFunction, allFacesSsdMobilenetv1Function, allFacesTinyYolov2Function } from '../src/globalApi';
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000 jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000
...@@ -106,7 +99,8 @@ export type InjectNetArgs = { ...@@ -106,7 +99,8 @@ export type InjectNetArgs = {
allFacesTinyYolov2: allFacesTinyYolov2Function allFacesTinyYolov2: allFacesTinyYolov2Function
allFacesMtcnn: allFacesMtcnnFunction allFacesMtcnn: allFacesMtcnnFunction
faceDetectionNet: FaceDetectionNet faceDetectionNet: FaceDetectionNet
faceLandmarkNet: FaceLandmarkNet faceLandmark68Net: FaceLandmark68Net
faceLandmark68TinyNet: FaceLandmark68TinyNet
faceRecognitionNet: FaceRecognitionNet faceRecognitionNet: FaceRecognitionNet
mtcnn: Mtcnn mtcnn: Mtcnn
tinyYolov2: TinyYolov2 tinyYolov2: TinyYolov2
...@@ -118,7 +112,8 @@ export type DescribeWithNetsOptions = { ...@@ -118,7 +112,8 @@ export type DescribeWithNetsOptions = {
withAllFacesTinyYolov2?: boolean withAllFacesTinyYolov2?: boolean
withAllFacesMtcnn?: boolean withAllFacesMtcnn?: boolean
withFaceDetectionNet?: WithNetOptions withFaceDetectionNet?: WithNetOptions
withFaceLandmarkNet?: WithNetOptions withFaceLandmark68Net?: WithNetOptions
withFaceLandmark68TinyNet?: WithNetOptions
withFaceRecognitionNet?: WithNetOptions withFaceRecognitionNet?: WithNetOptions
withMtcnn?: WithNetOptions withMtcnn?: WithNetOptions
withTinyYolov2?: WithTinyYolov2Options withTinyYolov2?: WithTinyYolov2Options
...@@ -148,12 +143,13 @@ export function describeWithNets( ...@@ -148,12 +143,13 @@ export function describeWithNets(
describe(description, () => { describe(description, () => {
let faceDetectionNet: FaceDetectionNet = new FaceDetectionNet() let faceDetectionNet: FaceDetectionNet = new FaceDetectionNet()
let faceLandmarkNet: FaceLandmarkNet = new FaceLandmarkNet() let faceLandmark68Net: FaceLandmark68Net = new FaceLandmark68Net()
let faceLandmark68TinyNet: FaceLandmark68TinyNet = new FaceLandmark68TinyNet()
let faceRecognitionNet: FaceRecognitionNet = new FaceRecognitionNet() let faceRecognitionNet: FaceRecognitionNet = new FaceRecognitionNet()
let mtcnn: Mtcnn = new Mtcnn() let mtcnn: Mtcnn = new Mtcnn()
let tinyYolov2: TinyYolov2 = new TinyYolov2(options.withTinyYolov2 && options.withTinyYolov2.withSeparableConv) let tinyYolov2: TinyYolov2 = new TinyYolov2(options.withTinyYolov2 && options.withTinyYolov2.withSeparableConv)
let allFacesSsdMobilenetv1 = allFacesSsdMobilenetv1Factory(faceDetectionNet, faceLandmarkNet, faceRecognitionNet) let allFacesSsdMobilenetv1 = allFacesSsdMobilenetv1Factory(faceDetectionNet, faceLandmark68Net, faceRecognitionNet)
let allFacesTinyYolov2 = allFacesTinyYolov2Factory(tinyYolov2, faceLandmarkNet, faceRecognitionNet) let allFacesTinyYolov2 = allFacesTinyYolov2Factory(tinyYolov2, faceLandmark68Net, faceRecognitionNet)
let allFacesMtcnn = allFacesMtcnnFactory(mtcnn, faceRecognitionNet) let allFacesMtcnn = allFacesMtcnnFactory(mtcnn, faceRecognitionNet)
beforeAll(async () => { beforeAll(async () => {
...@@ -162,7 +158,8 @@ export function describeWithNets( ...@@ -162,7 +158,8 @@ export function describeWithNets(
withAllFacesTinyYolov2, withAllFacesTinyYolov2,
withAllFacesMtcnn, withAllFacesMtcnn,
withFaceDetectionNet, withFaceDetectionNet,
withFaceLandmarkNet, withFaceLandmark68Net,
withFaceLandmark68TinyNet,
withFaceRecognitionNet, withFaceRecognitionNet,
withMtcnn, withMtcnn,
withTinyYolov2 withTinyYolov2
...@@ -175,10 +172,17 @@ export function describeWithNets( ...@@ -175,10 +172,17 @@ export function describeWithNets(
) )
} }
if (withFaceLandmarkNet || withAllFacesSsdMobilenetv1 || withAllFacesTinyYolov2) { if (withFaceLandmark68Net || withAllFacesSsdMobilenetv1 || withAllFacesTinyYolov2) {
await initNet<FaceLandmarkNet>( await initNet<FaceLandmark68Net>(
faceLandmarkNet, faceLandmark68Net,
!!withFaceLandmarkNet && !withFaceLandmarkNet.quantized && 'face_landmark_68_model.weights' !!withFaceLandmark68Net && !withFaceLandmark68Net.quantized && 'face_landmark_68_model.weights'
)
}
if (withFaceLandmark68TinyNet) {
await initNet<FaceLandmark68TinyNet>(
faceLandmark68TinyNet,
!!withFaceLandmark68TinyNet && !withFaceLandmark68TinyNet.quantized && 'face_landmark_68_tiny_model.weights'
) )
} }
...@@ -208,7 +212,7 @@ export function describeWithNets( ...@@ -208,7 +212,7 @@ export function describeWithNets(
afterAll(() => { afterAll(() => {
faceDetectionNet && faceDetectionNet.dispose() faceDetectionNet && faceDetectionNet.dispose()
faceLandmarkNet && faceLandmarkNet.dispose() faceLandmark68Net && faceLandmark68Net.dispose()
faceRecognitionNet && faceRecognitionNet.dispose() faceRecognitionNet && faceRecognitionNet.dispose()
mtcnn && mtcnn.dispose(), mtcnn && mtcnn.dispose(),
tinyYolov2 && tinyYolov2.dispose() tinyYolov2 && tinyYolov2.dispose()
...@@ -219,7 +223,8 @@ export function describeWithNets( ...@@ -219,7 +223,8 @@ export function describeWithNets(
allFacesTinyYolov2, allFacesTinyYolov2,
allFacesMtcnn, allFacesMtcnn,
faceDetectionNet, faceDetectionNet,
faceLandmarkNet, faceLandmark68Net,
faceLandmark68TinyNet,
faceRecognitionNet, faceRecognitionNet,
mtcnn, mtcnn,
tinyYolov2 tinyYolov2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment