Real-time Drowsiness Detection Tutorial | Transfer Learning | TensorFlow | Python | OpenCV

  Рет қаралды 93,287

DeepLearning_by_PhDScholar

DeepLearning_by_PhDScholar

Күн бұрын

Пікірлер: 138
@yulongguo2450
@yulongguo2450 2 жыл бұрын
Very helpful and easy understanding.But Sir,there is a problem in your code.When we seperate the features and labels,we should let the X divides 255.0 before we save our features into the file named X.pickle .
@umairmughal0001
@umairmughal0001 4 жыл бұрын
wow... Explained very well. Advanced research topics these days. It is really amazing
@manishsonawane1828
@manishsonawane1828 Жыл бұрын
Very helpful video. I am going to implement this. Is it possible to get the confusion matrix and prescision score? If yes, can you please tell me which parameters/variables to consider from this code?
@praneethkumar3111
@praneethkumar3111 9 ай бұрын
@DeepLearning_by_PhDScholar Thank you for your suggestion. We are finding it hard to create folders of open_eyes and Closed_eyes because main dateset contains both of them in each folder. Is it possible for you to share just the open_eyes and closed_eyes dataset.
@davidpoudel8567
@davidpoudel8567 3 жыл бұрын
Where can we get my_model_Drowsiness.h5 model sir?
@maryamsajjad3292
@maryamsajjad3292 8 ай бұрын
Any idea ??
@umerusman7720
@umerusman7720 3 жыл бұрын
you are amazing .i wonder why dont u have million subscriber till now. gratitudes sir
@rahul.gulati
@rahul.gulati 6 ай бұрын
It would have been great if you had created a link for the segregated dataset which you created.
@吳建中-o9n
@吳建中-o9n 3 жыл бұрын
final_ouput = layers.Activation ('sigmoid') ( final_output) the final_ouput is right? or typing mistake ?
@madhurig3848
@madhurig3848 4 жыл бұрын
Very helpful and easy understanding. I just want to know if there are any challenges to implement same in R programming ?
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 4 жыл бұрын
Thank you so much for your interest and sorry for being late in replying. Actually , honestly , my expertise are only in python, c/c++, MATLAB and many others but I did not touch R programming yet as we do have alternative solutions in python. In case you can load the model of tensorFlow in R programming ,then you can do it, just like in opencv , people can upload tensorflow model.. I am not sure about R programming. But deep learning can be performed in Tensorlfow (by google), pytorch(py facebook), CNTK(Microsoft) and many others. I am not sure that you can load trained models which are built and trained in frameworks (Tensorflow etc) and load in programming language such as R programming. I am again sorry that I could not help in this regard. Stay blessed.
@madhurig3848
@madhurig3848 3 жыл бұрын
@@deeplearning_by_phdscholar6925 Thank you for your suggestion. I am following your video and trying to do in R. We are finding it hard to create folders of open_eyes and Closed_eyes because main dateset contains both of them in each folder. Is it possible for you to share just the open_eyes and closed_eyes dataset.
@manjunathdasappanavar2913
@manjunathdasappanavar2913 Жыл бұрын
Sir Your explanation was awesome..for practice please upload code
@tejashrilabhsetwar7170
@tejashrilabhsetwar7170 3 жыл бұрын
Sir in which algorithm we have use on this project. ???
@723_sahildhuri2
@723_sahildhuri2 3 жыл бұрын
amazing sir,, but i am facing error while doing >model.fit()< any solution
@SanjeevKumar-nc4rx
@SanjeevKumar-nc4rx 3 жыл бұрын
@DeepLearning_by_PhDScholar Hello sir, I appreciate your work. Your explanation is great, but the issue we are getting is that we are getting some errors and somehow we solved it, but the main issue we are facing is that we are getting only closed eyes or only open eyes throughout the real-time test. So if you are reading this comment, please share the trained model with us because we don't have such a system to train 37000 images. Thank you Hope you will share the trained model soon once again thank you, sir.
@sashinkakumarage4739
@sashinkakumarage4739 3 жыл бұрын
I have the same issue. Did you find any solution to the issue?
@madihafarman5587
@madihafarman5587 3 жыл бұрын
i also have same issue..are you resolve
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
@@madihafarman5587 Hi, you can download the final model using the provided link, drive.google.com/file/d/1TpTjvjIVirEC_CA_pZSYVVv12XMFdM0l/view?usp=sharing However, as weights are always initialized randomly, so your final training model may differ from mine, Thank you for supporting the channel. Good luck.
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
@@sashinkakumarage4739 Hi, you can download the final model using the provided link, drive.google.com/file/d/1TpTjvjIVirEC_CA_pZSYVVv12XMFdM0l/view?usp=sharing However, as weights are always initialized randomly, so your final training model may differ from mine, Thank you for supporting the channel. Good luck.
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Hi, you can download the final model using the provided link, drive.google.com/file/d/1TpTjvjIVirEC_CA_pZSYVVv12XMFdM0l/view?usp=sharing However, as weights are always initialized randomly, so your final training model may differ from mine, Thank you for supporting the channel. Good luck.
@tomaszwojciechowski7388
@tomaszwojciechowski7388 3 жыл бұрын
Why haar cascade stop seeing eye when it's closed?
@johnericsondulay4038
@johnericsondulay4038 3 жыл бұрын
Sir what are the hardware's used in this project thanks and god bless
@chemophile14
@chemophile14 4 жыл бұрын
It's very fruitful research study for future-protection of traffic accidents.
@yadavchandan3372
@yadavchandan3372 3 жыл бұрын
in ehich language your name is Shown or Written
@bintehawa7712
@bintehawa7712 2 жыл бұрын
Very helpful .we need more videos sir
@subramanyak6187
@subramanyak6187 3 жыл бұрын
Sir Your explanation was awesome. Please increase the font-size from next time.
@echogenesis786
@echogenesis786 Жыл бұрын
@DeepLearning_by_PhDScholar Sir plz can you tell me how do you seperate the closed eyes and open eyes folder it will be helpful sir
@LoremIpsum-yt
@LoremIpsum-yt Жыл бұрын
Will this work if there are multiple faces to detect drowsiness from??
@saliniu4423
@saliniu4423 3 жыл бұрын
Can you please tell how you create my_model_Drowsiness.h5 model sir?
@akhileshrmadhyastha6400
@akhileshrmadhyastha6400 4 жыл бұрын
How many epochs we have to train to get high accuracy?
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 4 жыл бұрын
Thank you for your interest, and sorry for being late in replying, it depends, as in deep learning weights are always initialized randomly, , however here, we have followed transfer learning, so must be few epochs. in case your accuracy is not increase by increasing epoch, you must stop (early stopping). In order to increase your accuracy try changing learning rate(reduce it by half or so), this is one of the method for fine tuning, I hope your accuracy will be increased. In video it was enough for robust testing, Stay blessed
@crazystuff5854
@crazystuff5854 3 жыл бұрын
sir while doing this i had an issue regarding to the MobileNet() downloading process. It has thrown an error that 'String' object has no attribute 'decode'. What shall i do sir ??? Please help me sir .....
@CentroCoronelAprende
@CentroCoronelAprende 2 жыл бұрын
sir, I upload ur model new_model=tf.keras.models.load_model('my_model.h5') but all predictions say that my img is positive even if is closed eyes imagen. can you shared the correct model ?please?
@krushnachandrasethi8776
@krushnachandrasethi8776 2 жыл бұрын
what if there is no light, i mean it's night or raining and it's dark around then how will you detect?
@deltastorm7071
@deltastorm7071 3 жыл бұрын
Hey sir, I have watched the entire video and I'm now finding it really hectic to type the entire project, could you please link the source code?
@praneethkumar3111
@praneethkumar3111 9 ай бұрын
bro how did you divide the data set bro
@akshaymbhat9144
@akshaymbhat9144 3 жыл бұрын
Hello sir please tell me if I want to connect and run this project under cctv camera through opencv ?how can it be done? Please reply sir
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for your interest in our videos, the tutorial is about usb based camera which could be any like webcam or CCTV. so as long as its usb based camera( CCTV) or webcam of your laptop, this code is valid. However, for "ip" based cameras , you need to use "socket programming " for which you have to define the ip: socket address for accessing your camera . once camera is accessed, rest of the code will be same. Summary , this code is valid for any usb based camera no matter, cctv, webcam, surveillance, webcam in your latptop. in case of ip based camera , you need to slightly modify first few lines for accessing the camera video.(e.g socket programming) I hope I have answered your questions, please keep supporting us like this and keep sharing our video if possible.
@akshaymbhat9144
@akshaymbhat9144 3 жыл бұрын
@@deeplearning_by_phdscholar6925 where can I change or add my ip address for cctv in this code and also about for webcam how can I add in this code. I implemented it and working fine for my laptop camera I want to implement in cctv as well as webcam simultaneously
@akshaymbhat9144
@akshaymbhat9144 3 жыл бұрын
Can you share me your what's app number or telegram so that I can share my implementation codes and thoughts over there please
@Rishita_Naik
@Rishita_Naik 2 жыл бұрын
@@akshaymbhat9144 can you please help me in implementing this code?
@aaaqaaaa2720
@aaaqaaaa2720 2 жыл бұрын
hello sir if i have a large datadet how to work in it in jupiter without download it in my computer
@thelerner
@thelerner 3 жыл бұрын
Can you please help how we use this as a driver drowsiness detection and what are the hardware requirements.
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you so much for your interest. Well this implementation is based on a simple PC. however, code is dynamic, if you want to deploy it for driver in dash board or anywhere, you should use an embedded system. this code is valid for jetson nano and raspberry pi 3b or any other hardware as long as it supports python and opencv. Follow the instructions, after training the model in computer , later for live webcame demo part, please copy code and model in raspberry pi or jetson nano or any other hardware which supports the specs mentioned in video. Keep supporting us like this , Stay blessed.
@thelerner
@thelerner 3 жыл бұрын
@@deeplearning_by_phdscholar6925 thanks
@josephahn2624
@josephahn2624 4 жыл бұрын
good! why don't you use pytorch~?
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 4 жыл бұрын
Thanks for your valuable feedback, I will definitely come up with PyTorch implementation next time. Please keep supporting me like this
@josephahn2624
@josephahn2624 4 жыл бұрын
@@deeplearning_by_phdscholar6925 okay, i see. Anyway how's your life in the lab?
@akanksha_bhat9903
@akanksha_bhat9903 3 жыл бұрын
What to do in anaconda prompt.. after copying the path of the folder im not able to run the commands in anaconda prompt?? can you please explain
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you so much for your interest, it seems like you might not have run it as administrator. Secondly , once you copy the path, it must be in same drive as well. your question is too generalize, thats what I could predict based on your provided information. Please elaborate the exact problem , I hope we will try to solve your issue. please visit the first part of video and repeat the steps, I hope it will solve your issue, Stay blessed.
@rahulranjan923
@rahulranjan923 3 жыл бұрын
@@deeplearning_by_phdscholar6925 at least reply to our queries sir
@janithprabhanuka
@janithprabhanuka 3 жыл бұрын
Super
@CHINMAYEEPSICS
@CHINMAYEEPSICS 3 жыл бұрын
Can u please tell the complexity of this project?
@umerakhtar2774
@umerakhtar2774 3 жыл бұрын
@DeepLearning_by_PhDScholar how we detect drowsiness using body movement ??
@mitalsolanki3327
@mitalsolanki3327 3 ай бұрын
From where we can find this model??
@FZero320
@FZero320 2 жыл бұрын
Hi sir, could you please share the My_Model_Drowsiness.h5 file please. The drive file that you are sharing is the my_model.h5 file. Thanks
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 2 жыл бұрын
Hi, below is the link to the model, drive.google.com/file/d/1TpTjvjIVirEC_CA_pZSYVVv12XMFdM0l/view?usp=sharing
@Rishita_Naik
@Rishita_Naik 2 жыл бұрын
Can you please share the code
@eladon19153
@eladon19153 2 жыл бұрын
@@deeplearning_by_phdscholar6925 The model gives me always positive value
@echogenesis786
@echogenesis786 Жыл бұрын
​@@deeplearning_by_phdscholar6925 sir it is still not working
@jassicasahi3648
@jassicasahi3648 3 жыл бұрын
please provide the link of the dataset
@seherkzl6635
@seherkzl6635 3 жыл бұрын
I trained my model for 10, 40, 200 epochs but I didn't have any negative values. I saw 'active' on screen but I didn't see anything when I closed my eyes. Please help me. I'm trying for my thesis.
@echogenesis786
@echogenesis786 Жыл бұрын
Same bro, did you find any solution
@gamingfreak872
@gamingfreak872 4 ай бұрын
Hlo
@birdyellow4330
@birdyellow4330 3 жыл бұрын
its great!!
@Faris_eisa
@Faris_eisa 2 жыл бұрын
please, can you make the letters size smaller than that !!?
@dilrosereji4930
@dilrosereji4930 3 жыл бұрын
great!
@euphoricverse3914
@euphoricverse3914 2 жыл бұрын
Sur can you provide the drive link of this file my_model_Drowsiness.h5 The file you are sharing is my_model.h5 Thank you!
@ridhimachopra7215
@ridhimachopra7215 3 жыл бұрын
Can u please please send the source code for ur wonderful project? I would definitely love to try it out.
@divyangisharma1412
@divyangisharma1412 3 жыл бұрын
Hello sir, I went through the entire code, its running, but I guess the code is getting too heavy, as its not responding coming while capturing :') Can you provide me with a solution for that. Please?
@Rishita_Naik
@Rishita_Naik 2 жыл бұрын
Can you please share the code link
@Ali_ade
@Ali_ade 2 жыл бұрын
sir how can i use this project for pi camera
@angel-pf7ny
@angel-pf7ny 2 жыл бұрын
Why camera is not opening in my pc i have done correct coding no error
@Prasanth4355
@Prasanth4355 3 жыл бұрын
ValueError Traceback (most recent call last) in 35 36 Predictions = new_model.predict(final_image) ---> 37 if Predictions>0: 38 status="Open Eyes" 39 else: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
@sheikhrahim719
@sheikhrahim719 2 жыл бұрын
Can u share the jupyter notebook
@nainasethi5841
@nainasethi5841 3 жыл бұрын
Anyone able to get the correct model? I am not getting -ve values as output in closed eye case, please help, very urgent
@ENGCS_Ananthasharmayn
@ENGCS_Ananthasharmayn 2 жыл бұрын
same here everything is correct but still, it's not showing -ve values have you fixed it?
@hyndavithouti3350
@hyndavithouti3350 3 жыл бұрын
can anyone say how many layers did we use in this model?
@robinsonbill4382
@robinsonbill4382 3 жыл бұрын
Can you kindly send me the source code?
@maf4432
@maf4432 3 жыл бұрын
Do you have the data set
@sarahali2707
@sarahali2707 3 жыл бұрын
Hi sir,where can i get the source code?
@sayyedaftabas4296
@sayyedaftabas4296 2 жыл бұрын
Sir it's showing me backtorgb is not defined ??
@sayyedaftabas4296
@sayyedaftabas4296 2 жыл бұрын
How to resolve this problem
@virajkudav3563
@virajkudav3563 2 жыл бұрын
How to train for yawn sir
@ppmppm3001
@ppmppm3001 2 жыл бұрын
can i do project in colab?
@t0m3k1987
@t0m3k1987 3 жыл бұрын
Amazing work Sir! But I have some troubles with normalization process. When I do it on whole dataset i got memoryError. It cannot allocate 95gb. Can you help with this?
@barbugeorge1470
@barbugeorge1470 3 жыл бұрын
delete some photos from closed eyes/open eyes folders...I had the same problem
@varungupta7226
@varungupta7226 3 жыл бұрын
@@barbugeorge1470 Were you able to complete this project? I trained my model but its not returning negative values for closed eyes. Can you share your model file? it would be a huge help.
@avinashgedam5794
@avinashgedam5794 3 жыл бұрын
Did you solve your problem?
@t0m3k1987
@t0m3k1987 3 жыл бұрын
@@avinashgedam5794 yes. I used Google Cloud Platform to train model and it worled smoothly 😁
@avinashgedam5794
@avinashgedam5794 3 жыл бұрын
Why was it not showing negative values previously?
@failurefocues000
@failurefocues000 Жыл бұрын
how can i get this code sir?
@garimachauhan5771
@garimachauhan5771 Жыл бұрын
Its showing open eyes for all images.Can anybody please help me
@ishitamasale738
@ishitamasale738 3 жыл бұрын
Where can i run this code???
@dummytest3199
@dummytest3199 4 жыл бұрын
Hi, great video! Can you provide the source code for the project? Thanks. :)
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 4 жыл бұрын
Thank you for your interest. In case you follow the complete video, you will have the source code at the end, we did not share the source code for this video on purpose so that once can learn each line without directly executing the code. Thanks
@deltastorm7071
@deltastorm7071 3 жыл бұрын
@@deeplearning_by_phdscholar6925 Hey sir, I have watched the entire video and I'm now finding it really hectic to type the entire project, could you please link the source code?
@architraghuvanshi8892
@architraghuvanshi8892 3 жыл бұрын
@@deeplearning_by_phdscholar6925 Sir, we at least need the my_model_drowsiness.h5 as our laptop is not capable enough to train on various epochs.
@echogenesis786
@echogenesis786 Жыл бұрын
@DeepLearning_by_PhDScholar Sir plz can you tell me how do you seperate the closed eyes and open eyes folder it will be helpful sir
@SakshamAggarwal
@SakshamAggarwal 3 жыл бұрын
Sir Will you please provide a code
@snehalkhandare1856
@snehalkhandare1856 8 күн бұрын
can you provide a source code please
@farhatakhtar6901
@farhatakhtar6901 Жыл бұрын
it not predict right. In closed eyes it give positive result.
@sathwikabhignan1862
@sathwikabhignan1862 Жыл бұрын
exactly, Is your model working buddy?
@tamilkalam5519
@tamilkalam5519 Жыл бұрын
Brother I need source code ? please send me
@madihafarman5587
@madihafarman5587 3 жыл бұрын
not detect close eyes.after completion of project
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Hi, you can download the final model using the provided link, drive.google.com/file/d/1TpTjvjIVirEC_CA_pZSYVVv12XMFdM0l/view?usp=sharing However, as weights are always initialized randomly, so your final training model may differ from mine, Thank you for supporting the channel. Good luck.
@Rishita_Naik
@Rishita_Naik 2 жыл бұрын
Can you please share the link of code
@beeramsaimohan9086
@beeramsaimohan9086 2 жыл бұрын
Sir please share the code
@dhananjaykumar-gc8ke
@dhananjaykumar-gc8ke 10 ай бұрын
Is there anyone whose code worked perfectly??
@MeetChaudhary-zi8sm
@MeetChaudhary-zi8sm 10 ай бұрын
If you got code please let me know i am also looking for same code
@praneethkumar3111
@praneethkumar3111 9 ай бұрын
even me , please share the code bro
@rajganatra98
@rajganatra98 3 жыл бұрын
How to create 'my_model_drowsiness.h5'??
@rishithm7255
@rishithm7255 8 ай бұрын
Code file plz.....
@mouhihamohamed4789
@mouhihamohamed4789 2 жыл бұрын
ppt please
@xenpai994
@xenpai994 23 күн бұрын
Pls provide source codeeeeee!!!!
@sayyedaftabas4296
@sayyedaftabas4296 2 жыл бұрын
Can you please provide My_Model_Drowsiness.H5 file
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 2 жыл бұрын
Hi, below is the link to the model, drive.google.com/file/d/1TpTjvjIVirEC_CA_pZSYVVv12XMFdM0l/view?usp=sharing
@sayyedaftabas4296
@sayyedaftabas4296 2 жыл бұрын
Please provide My_Model_Drowsiness.H5 file
@shadmaanraza5982
@shadmaanraza5982 2 жыл бұрын
sir please share My_Model_Drowsiness.h5
@tarikulislam-jw5fh
@tarikulislam-jw5fh 2 жыл бұрын
@DeepLearning_by_PhDScholar Thank you for your suggestion. We are finding it hard to create folders of open_eyes and Closed_eyes because main dateset contains both of them in each folder. Is it possible for you to share just the open_eyes and closed_eyes dataset.
@praneethkumar3111
@praneethkumar3111 9 ай бұрын
Hey sir, I have watched the entire video and I'm now finding it really hectic to type the entire project, could you please link the source code?
Object Detection using OpenCV | Python | Tutorial for beginners 2020
29:29
DeepLearning_by_PhDScholar
Рет қаралды 245 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 29 МЛН
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 30 МЛН
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,9 МЛН
Deep Drowsiness Detection using YOLO, Pytorch and Python
1:18:35
Nicholas Renotte
Рет қаралды 256 М.
Realtime Face Emotion Recognition | Python | OpenCV | Step by Step Tutorial for beginners
32:24
Realtime Drowsiness and Yawn Detection using Python in Raspberry Pi or any other PC
27:15
SPARKLERS : We Are The Makers
Рет қаралды 61 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 29 МЛН