Real Time Face Mask Detection with Tensorflow and Python | Custom Object Detection w/ MobileNet SSD

preview_player
Показать описание
Ever wanted to build your very own custom object detector?

Got lost with all the tutorials and installation?

Well…I hear you…I went through the

EXACT. SAME. THING.

So, let’s flip it up. In this video we’re going to go through how to build a custom object detection model that can be used to make detections in real time. Now whilst we’re using it for detecting face masks this can be easily repurposed to perform real-time detection for a whole range of use cases simply by updating the annotations and the label map.

In this video you’ll learn how to:
1. Install labelImg and label images from scratch for object detection
2. Train and run a custom object detector for face mask detection
3. Use transfer learning to train on top of existing SOTA models
4. Setup a proper workflow and directory structure for training
5. Make detections in real time using the trained model

Other Links Mentioned in the Video

Oh, and don't forget to connect with me!

Happy coding!
Nick

P.s. Let me know how you go and drop a comment if you need a hand!
Рекомендации по теме
Комментарии
Автор

Hey!!! hope you are doing good?!Glad to see this video! was eagerly waiting for it since last month!!

vrishabvishnu
Автор

If you want to follow this tutorial, you need to follow these steps:

1. `pip uninstall tensorflow` (I'm assuming that you are using the latest version of TensorFlow, which is not compatible with this tutorial)

2. `pip install tensorflow<=2.13.0` (His code works with version 2.13.0 and earlier)

3. `pip install (Instead of installing 4 steps object-detection-API described at 25:50, install this package)

**Important:** Follow these steps sequentially (Steps 1, 2, 3). Don't change the order (e.g., don't use 3, 1, 2 or 3, 2, 1)

Follow the rest of the tutorial as he described.

Let me know in the replies if it works.

purplelinechannel
Автор

Thank you Nicholas you help my project in school.. Im so glad i finally found your videos.. I learn so much....❤❤

reybato
Автор

Thank you so much Nick, I can tell that you put so much effort into your youtube channel and you really care about what you are doing. Nice editing, detail explaination, and you even answer some of the comments. Again thank you so much for the video and I'm looking forward for the next video!!!

pavinlimpotong
Автор

Just here to thank you, after weeks trying to install and run Tensorflow in windows it finally works thanks to you !!!! and please continue with the good tutorials, i'm subbing =)

jeromevandenbossche
Автор

Hey y'all! Wrote up a couple of steps to setup your environment. I'm planning on doing a video on this but until then, here's a crash course post:


3. OPTIONAL IF YOU HAVE A GPU - Install Cuda and Cudnn. Install Cuda first, then install Cudnn.



5. Then install python packages using the pip command:
Tensorflow: 2.3.1 - pip install tensorflow==2.3.1
OpenCV: 4.4.0 - pip install tensorflow==4.4.0

6. Install the object detection API. To do this, run these commands from a command prompt or terminal:
cd tensorflow/models/research
protoc --python_out=.
cp .
python -m pip install .

NicholasRenotte
Автор

Can you remake this video with up to date TensorFlow 2.x. Because right now alot of errors are occuring while performing these exact same steps.

kamransaif
Автор

Nicholas, you are the best when it comes to Objection detection, you have helped me a lot, thank you

darshpatel
Автор

01:43 Let's do this
04:20 Building up Imaglabling
05:29 PyQt & XML
07:50 Image ready for deployment
12:36 Get and read Xml file
18:01 00-Setup paths
19:57 Creating label map(dictionary)
21:52 Creating label map(labeling complete)
23:25 Creating TF records
26:19 TF model zoo(downloading pretrained models)
27:50 TF model zoo choosing
30:03 Copy model config to training model
32:21 Update Config for transfer learning
40:27 Train the model
44:51 Load train model from check point
49:00 Detect in real time
56:11 error

鄭心和
Автор

excellent explanation. Turkish resources on these subjects are limited. Thank you very much. I am grateful to you. Allah you bless you.

samtech
Автор

Jeezus, this is the best one out here! THANK YOU FOR MAKING EVERYTHING AVAILABLE

akshayd
Автор

Good Morning! within this area of facial recognition in Python, I didn't find a channel as rich as yours, Congratulations!!! Levi. of Brazil...

thiagosoares
Автор

Thank you very much Nicholas for all these videos, they are really helpful for all of us. Love the efforts you put in, and also the funny stuff u integrate in the beginning.

aniket
Автор

Awesome video Nick! Thanks! Will try it out shortly....

brentsimpson
Автор

Hi Nicholas, im trying to do this project but i think i have problem with what programs do i need to use(like which tf version, python, opencv, protobuf etc). Could you tell me what you used while making this video and how to get them? Best wishes

gabesz
Автор

This was so incredibly helpful! Actual lifesaver

enchantedchim
Автор

Great Tutorial. Done with the training and detection finally after a whole day of dealing with errors. Could you guide me to generate a training vs testing loss graph?

SirajummuneerParvez
Автор

So amazing, really worth it to watch. Best explanation and easy to follow. Keep up doing video sir. You just got 1 new subscriber 😁

khairulazhar
Автор

Hello sir, thank you for the tutorial. I keep running into this error. What variable value is needed to be changed for number of classes = 9
ValueError: Cannot assign to variable due to variable shape (546, ) and value shape (12, ) are incompatible

manavsheth
Автор

thanks so much! i have a question!! " How can I use ".mp4" files not use webcam? " Actually, I used before this Code: cv2.VideoCaptur("~.mp4"). but,
ValueError: 'images' must have either 3 or 4 dimensions.

정영수-pu