{"id":217,"date":"2024-12-06T22:03:01","date_gmt":"2024-12-06T22:03:01","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/?p=217"},"modified":"2024-12-08T03:51:45","modified_gmt":"2024-12-08T03:51:45","slug":"alanis-status-report-for-11-7","status":"publish","type":"post","link":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/2024\/12\/06\/alanis-status-report-for-11-7\/","title":{"rendered":"Alanis&#8217; Status Report for 12\/7"},"content":{"rendered":"<p><b>What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours.<\/b><\/p>\n<p><span style=\"font-weight: 400\">This week, I finished the systematic testing of our classification models by testing how brightness, x\/y translations, and rotations affect the accuracy of our classification models. I wrote a <\/span><a href=\"https:\/\/github.com\/rkrzywda\/B5_Style_Sprout\/blob\/main\/classification\/test.py\"><span style=\"font-weight: 400\">script<\/span><\/a><span style=\"font-weight: 400\"> to do this and also created some graphs.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-219\" style=\"font-size: 1rem\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.03.40\u202fPM-300x196.png\" alt=\"\" width=\"300\" height=\"196\" srcset=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.03.40\u202fPM-300x196.png 300w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.03.40\u202fPM-768x501.png 768w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.03.40\u202fPM-1024x668.png 1024w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.03.40\u202fPM.png 1122w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400\">I also evaluated which architecture out of ResNet50\/101\/152 would be best for the color and clothing type models by weighing the correct predictions vs close predictions. A close prediction for clothing type would be guessing jeans instead of trousers or a dress instead of a jumpsuit. A close prediction for color would be guessing beige instead of white or black instead of grey. The general description of the criteria I used to determine a close guess for clothing type would be the same category(tops, overwear, botto<\/span><span style=\"font-size: 1rem\">ms) and a similar shape\/usage\/weather (jeans and trousers can both be casual or business casual, dress and jumpsuit are both suitable for warm and neutral but not cold weather). The general description of the criteria I used to determine a close guess for color would be if the actual color could be predicted by lightening\/darkening the predicted color(lighting would do this, and you could reach white by lightening beige which is already quite light, you could reach black by darkening grey, but you could not reach blue by lightening\/darkening red). The exact criteria for close guesses will be outlined in our final report, however it is quite long so I will not include it here.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-221\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.10\u202fPM-300x95.png\" alt=\"\" width=\"420\" height=\"133\" srcset=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.10\u202fPM-300x95.png 300w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.10\u202fPM-768x243.png 768w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.10\u202fPM-1024x324.png 1024w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.10\u202fPM.png 1158w\" sizes=\"(max-width: 420px) 100vw, 420px\" \/><\/p>\n<p><span style=\"font-weight: 400\">Also, this wasn\u2019t done for the us<\/span><span style=\"font-size: 1rem\">age model since only the ResNet50 architecture was able to converge during training.<\/span><\/p>\n<p><span style=\"font-weight: 400\">I also debugged our .tflite color model. We have 3 classification models (clothing type, color, and usage) that we converted to .tflite for inference on the Jetson. They are all ResNet50 architecture and trained in the same way (mostly the same data but with different labels). They all perform at an accuracy of 60-70% before conversion to .tflite. After running inference on the converted .tflite models on the Jetson, the clothing type and usage models perform with the same accuracy however the color model accuracy took a very large hit and mostly predicts blue, brown, and black.<\/span><\/p>\n<p><span style=\"font-weight: 400\">We verified that the camera is not causing the issues since we are testing the models using pretaken images. I te<\/span><span style=\"font-size: 1rem\">sted the problematic .tflite model on my computer and the accuracy is the same as the original. I verified this using 2 different Tensorflow versions, the one I used to train and the one running on the Jetson. I also wrote some code for Riley to try using the original model optimized for the Jetson using TensorRT, however this was very slow. I also sent Riley .tflite versions of the ResNet101\/152 which also performed with low accuracy. We also tried training a .tflite model on the same Tensorflow version as the Jetson which still did not address the issue.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-222\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.28\u202fPM-300x62.png\" alt=\"\" width=\"300\" height=\"62\" srcset=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.28\u202fPM-300x62.png 300w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.28\u202fPM-768x159.png 768w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.28\u202fPM-1024x213.png 1024w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-content\/uploads\/sites\/324\/2024\/12\/Screenshot-2024-12-06-at-5.04.28\u202fPM.png 1214w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><span style=\"font-weight: 400\">We decided to also pursue an alternative way of determining the color by cropping the clothing image around the largest object and determining the most prominent color in the cropped image. I wrote code to do this which is located <a href=\"https:\/\/github.com\/rkrzywda\/B5_Style_Sprout\/blob\/main\/classification\/alterative_color.py\">here<\/a>. We will continue to try and fix the .tflite file and will see which option works better before the demo.<\/span><\/p>\n<p>I also worked on our <a href=\"https:\/\/docs.google.com\/presentation\/d\/1lsdugb4wfrHIIDL2HacFEVz1cTPI5OZmgcRfG5u-gRE\/edit#slide=id.p1\">poster<\/a>.<\/p>\n<p><b>Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the proiect schedule?<\/b><\/p>\n<p><span style=\"font-weight: 400\">My progress is on schedule.<\/span><\/p>\n<p><b>What deliverables do you hope to complete in the next week?<\/b><\/p>\n<p><span style=\"font-weight: 400\">I hope to fix the color model and fine tune the color prediction from pixels code by adding the determination of the main color from the most prominent rgb.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the &#8230;<\/p>\n","protected":false},"author":948,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/posts\/217"}],"collection":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/users\/948"}],"replies":[{"embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":7,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":242,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/posts\/217\/revisions\/242"}],"wp:attachment":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamb5\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}