diff --git a/TODO.md b/TODO.md index 6861c14..86cea6f 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,7 @@ * [x] La ou les images avec des cadres apposés sur les visages par mes logiciels ```bash -for i in ChrisEvan1.jpg ChrisEvan2.jpg MargotRobbie1.jpg MargotRobbie2.jpg RobertDowney1.jpg RobertDowney2.jpg ; do cargo run --all-features --release --example face_detection -- --face-detection-model ../models/face_detection_model.pb -s ~/Documents/other/AIMailys/src/$i -o ~/Documents/other/AIMailys/boxes/$i -r 250; done +for i in ChrisEvan1.jpg ChrisEvan2.jpg MargotRobbie1.jpg MargotRobbie2.jpg RobertDowney1.jpg RobertDowney2.jpg JenniferLawrence1.png JenniferLawrence2.png; do cargo run --all-features --release --example face_detection -- --face-detection-model ../models/face_detection_model.pb -s ~/Documents/other/AIMailys/src/$i -o ~/Documents/other/AIMailys/boxes/$i -r 250; done ``` * [x] Eventuellement un tableau de comparaison de proximité identifiés sur différents visages @@ -14,14 +14,13 @@ cargo run --all-features --release --example face_compare_multiple -- --face-det * [x] La localisation des visages ```bash -for i in ChrisEvan1.jpg ChrisEvan2.jpg MargotRobbie1.jpg MargotRobbie2.jpg RobertDowney1.jpg RobertDowney2.jpg ; do cargo run --all-features --release --example face_detection -- --face-detection-model ../models/face_detection_model. -pb -s ~/Documents/other/AIMailys/src/$i 2> /dev/null | grep From | sed "s/^/$i: /g"; done +for i in ChrisEvan1.jpg ChrisEvan2.jpg MargotRobbie1.jpg MargotRobbie2.jpg RobertDowney1.jpg RobertDowney2.jpg JenniferLawrence1.png JenniferLawrence2.png; do cargo run --all-features --release --example face_detection -- --face-detection-model ../models/face_detection_model.pb -s ~/Documents/other/AIMailys/src/$i 2> /dev/null | grep From | sed "s/^/$i: /g"; done ``` * [x] Les embeddings (les fameux nombres dont je t'avais parlé) issu du dernier modèle ```bash -for i in ChrisEvan1.jpg ChrisEvan2.jpg MargotRobbie1.jpg MargotRobbie2.jpg RobertDowney1.jpg RobertDowney2.jpg ; do cargo run --all-features --release --example face_embeddings_extractor -- --face-detection-model ../models/face_detection_model.pb --face-embeddings-model ../models/face_embeddings_model_v2.pb --image ~/Documents/other/AIMailys/src/$i > ~/Documents/other/AIMailys/embeddings/$i.txt; done +for i in ChrisEvan1.jpg ChrisEvan2.jpg MargotRobbie1.jpg MargotRobbie2.jpg RobertDowney1.jpg RobertDowney2.jpg JenniferLawrence1.png JenniferLawrence2.png; do cargo run --all-features --release --example face_embeddings_extractor -- --face-detection-model ../models/face_detection_model.pb --face-embeddings-model ../models/face_embeddings_model_v2.pb --image ~/Documents/other/AIMailys/src/$i > ~/Documents/other/AIMailys/embeddings/$i.txt; done ``` * [ ] Des informations techniques un peu plus détaillées sur mes modèles diff --git a/boxes/JenniferLawrence1.png b/boxes/JenniferLawrence1.png new file mode 100644 index 0000000..8739fcf Binary files /dev/null and b/boxes/JenniferLawrence1.png differ diff --git a/boxes/JenniferLawrence2.png b/boxes/JenniferLawrence2.png new file mode 100644 index 0000000..792c65f Binary files /dev/null and b/boxes/JenniferLawrence2.png differ diff --git a/embeddings/JenniferLawrence1.png.txt b/embeddings/JenniferLawrence1.png.txt new file mode 100644 index 0000000..f5825a4 --- /dev/null +++ b/embeddings/JenniferLawrence1.png.txt @@ -0,0 +1 @@ +0.059789382 -0.06540175 0.09384677 -0.09344663 -0.124955855 -0.14620578 0.21621326 0.08681343 -0.22887544 0.16835837 -0.21205847 -0.09929459 -0.07712983 0.18850496 0.0040708827 0.06931689 -0.12965605 -0.19898388 0.15594587 -0.05846893 0.010512652 0.029273292 -0.06976994 -0.009134532 -0.075729 0.15730128 0.20621045 -0.14657775 -0.023199601 0.19438854 -0.025176251 0.16280289 0.15292016 0.203397 -0.042337168 -0.043469157 0.13448407 -0.07164188 0.25583833 0.014922339 -0.11000569 0.17076612 -0.11343877 -0.03459193 -0.07640086 0.09205383 -0.09176708 0.009503559 -0.10276184 -0.0680929 -0.06760132 0.12734948 -0.067464754 0.034245383 -0.030228864 -0.043915395 0.0072117387 0.1366474 0.032039784 0.039552618 -0.13448033 -0.049129415 -0.070208974 -0.11192467 0.0077691986 -0.09058856 0.007923333 0.15862593 -0.0441338 0.18257132 0.11437641 0.047846057 0.06540898 -0.056939643 -0.0064649535 0.04443105 -0.06582029 -0.094180234 0.026080629 -0.043123882 0.052541822 -0.066220045 -0.031253625 -0.014365362 -0.030886997 -0.015664259 -0.09257816 0.0117671965 -0.018785734 0.018891882 -0.086992756 0.1330208 -0.0472171 -0.013287547 -0.080245994 0.0035603195 -0.033081498 -0.017256219 0.06913957 0.0291235 -0.0057697054 -0.04429207 -0.17319635 -0.1331113 -0.048168566 -0.057445955 -0.11418376 -0.10913006 -0.12299465 0.11582708 -0.019224066 -0.1671122 0.011502104 -0.07045502 0.14687648 0.008338821 -0.057212986 -0.07145432 0.11368221 0.06900518 0.07788772 -0.042550106 -0.17789641 0.045252983 0.014051363 0.024645478 0.09975756 0.08491579 diff --git a/embeddings/JenniferLawrence2.png.txt b/embeddings/JenniferLawrence2.png.txt new file mode 100644 index 0000000..71376d2 --- /dev/null +++ b/embeddings/JenniferLawrence2.png.txt @@ -0,0 +1 @@ +0.16005716 0.076156735 0.16193645 -0.21621859 -0.2571957 -0.10455944 0.091813326 0.033656098 -0.122088514 0.031684343 -0.1354792 -0.07998721 -0.13181129 0.18243468 -0.037664693 -0.012345141 -0.108560525 -0.09054701 0.20024402 -0.036360238 -0.027235607 0.11776284 -0.09652584 -0.10003503 -0.003698002 0.10343425 0.04863798 -0.13029248 -0.043561827 0.09067346 -0.035874106 0.13161556 0.12215604 0.13581792 -0.107420646 -0.060057603 0.19065872 -0.04573018 0.2577701 -0.10456151 -0.18593733 0.068834156 -0.1600925 -0.07208002 -0.047668252 0.14516315 -0.058428377 0.015585062 -0.112819314 0.072363496 -0.0122910235 0.021849113 -0.07917786 -0.0023796752 -0.049921356 -0.049883433 0.01973215 0.09125702 -0.023181368 0.13044763 -0.018214699 -0.036862813 -0.10727749 -0.029471066 0.13753429 -0.056649994 0.012959195 0.0029174492 -0.03787227 0.14127485 0.07385965 0.0012567937 0.01574732 -0.08644294 0.0135780545 0.041744985 -0.09225706 -0.17323083 0.1080697 -0.0025476217 0.060255416 -0.059042882 0.080105044 0.07115413 0.07285856 -0.051781513 -0.04479378 0.008541184 0.009128533 -0.029694086 -0.080430724 0.093619294 -0.046648797 -0.10635169 -0.02564686 0.020522792 -0.076644585 0.081298105 0.040721975 -0.1300374 0.062976025 -0.06555356 -0.06941373 -0.11976286 -0.094863154 0.02765801 -0.11323353 0.030560726 -0.060199194 -0.020698423 -0.05780431 -0.23564884 -0.08474537 -0.012516049 0.1313817 -0.00076461956 0.012327949 0.0041619265 0.090147786 0.13463947 0.06200534 -0.0056341127 -0.17758763 0.15112175 0.039281882 -0.051480036 -0.052742593 0.059106607 diff --git a/faces_location.txt b/faces_location.txt index 609e0d9..98c8851 100644 --- a/faces_location.txt +++ b/faces_location.txt @@ -3,4 +3,6 @@ ChrisEvan2.jpg: From 541x1006 to 1844x2347 MargotRobbie1.jpg: From 527x181 to 1014x715 MargotRobbie2.jpg: From 697x359 to 1680x1358 RobertDowney1.jpg: From 384x159 to 845x736 -RobertDowney2.jpg: From 360x119 to 553x350 \ No newline at end of file +RobertDowney2.jpg: From 360x119 to 553x350 +JenniferLawrence1.png: From 196x115 to 365x314 +JenniferLawrence2.png: From 695x428 to 1591x1396 \ No newline at end of file