13
u/Appropriate_Ant_4629 Jun 24 '24
Awesome! I would have liked more info about if any of your attempts to build the model yourself seemed promising. Also, curious about the steps you took fighting the GPU ram issues.
Clicking on the Google Colab link under your youtube video, I get
Notebook loading error
... Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential ...
you might want to adjust the sharing settings?
TIL they predate Naruto:
11
u/lucascreator101 Jun 24 '24 edited Jun 24 '24
Hey, I'm glad to read your comment. Thank you for the support.
When I tried building the model myself, I started with the CNN architecture. I trained it on Google Colab, but the result was not good. In truth, the main issue with this model was the bounding box coordinates prediction. The AI were able to detect the class (the type of hand seal), but it usually failed at predicting its location.
Then I moved on and tried other architectures like Faster R-CNN and Single Shot Multibox Detector (SSD). The later one seemed more promising, but every time I started training the model, I ran out of RAM memory and so couldn't finish it. As I told in the video, I was using the free version of Google Colab, which has limited memory and processing power.
One thing I could do to solve this issue is to reduce the images dimensions. All images of the dataset are 640x480 pixels. Smaller images consume less amount of RAM, so, let's say, resizing the photos to 320x240 pixels would be the solution to train a SSD model. However, I decided don't do it and instead went to YOLOv8 architecture (You Only Look Once version 8).
Furthermore, I updated the Google Colab notebook settings. Here is the new link: https://colab.research.google.com/drive/1kSGOh1x0k2uy1U1KVQxWlHnMNLhZqy6w?usp=sharing
Thanks for the Wikipedia articles about hands seals. I didn't know about the story behind it.
4
u/Marotz_ Jun 24 '24
That's really cool! Some time ago I saw a GitHub repo with a similar project while searching for hand gesture projects. It uses YoloX, I 'll leave it hereNaruto hand sign detection in case you are curious about what they did.
2
u/lucascreator101 Jun 24 '24
Thanks for the recommendation. I looked the repository, and this project is really interesting and similar to what I did.
4
4
3
u/Batmmaaannn Jun 24 '24
how did you code it bro please tell us what did you use , im working on a similar project but it always go wrong for me
2
u/lucascreator101 Jun 24 '24
I'll share the Google Colab notebook with you https://colab.research.google.com/drive/1kSGOh1x0k2uy1U1KVQxWlHnMNLhZqy6w?usp=sharing
At the end of this notebook, there's a code to train a Yolov8 model. That is the program I wrote to train this AI model.
I recorded a detailed tutorial about this project and posted on YouTube: https://www.youtube.com/watch?v=mIE9g0209xk
3
3
3
u/ioctlsg Jul 11 '24
Imagine all the potential application. Workers FR + hand sign to enter work space. Bosses FR + middle finger
1
2
u/No_Palpitation7740 Jun 24 '24
If you can use it for the Apple Vision pro and make an app this will be brilliant
1
u/lucascreator101 Jun 24 '24
I'm not sure how it would work on Apple Vision, but I think it's worth trying
2
u/Future-Atmosphere-29 Jul 07 '24
That's pretty cool. I'm just starting with my journey in AI. Got Machine learning basics done. Now looking into deep learning. I think working on a project is best way to learn so this is giving me ideas.
2
u/lucascreator101 Jul 07 '24
Yeah, you're right. The learning by doing method is one of the best ways to study.
9
u/lucascreator101 Jun 24 '24 edited Jun 24 '24
I recently used Python to train an AI model to recognize Naruto Hands Seals. The code and model run on your computer and each time you do a hand seal in front of the webcam, it predicts what kind of seal you did and draw the result on the screen. If you want to see a detailed explanation and step-by-step tutorial on how I develop this project, you can watch it here.