For this week's assignment, I tried training a ML model to get some practice. I decided to teach it the song ‘head shoulders knees and toes’ to see if it'd be able to tell the difference between those body parts. I find it funny and also interesting to treat the ML model sort of like a little kid. I took between 120-160 pictures for each category in various different angles

Screenshot 2023-11-08 at 11.09.06.png

After exporting it and putting it on the p5.js sketch, I was able to test it and see if it worked. The sketch seemed to run smoothly and it was very responsive to the body parts:

ezgif.com-video-to-gif-3.gif

One funny thing that I noticed is that the model was also picking up the camera angles, so the response would change based on where the camera was pointing

ezgif.com-video-to-gif-4.gif

When testing the model, I also tried disguising myself to see if the model would still pick up the ‘head’ portion and it did, which was a nice surprise

Screenshot 2023-11-08 at 11.12.04.png

One other funny thing that happened was when Fatima tried to play the game, but the model would recognize her mostly as ‘knees’. I assume it's because of the color of her jacket, which is close to the color of my pants.

Screenshot 2023-11-08 at 12.07.55.png

link to sketch here.