Face Recognition Using Keras And Open CV Part 2- Model Creation And Testing

  Рет қаралды 33,531

Krish Naik

Krish Naik

Күн бұрын

Please join as a member in my channel to get additional benefits like materials in Data Science, live streaming for Members and many more
/ @krishnaik06
Github Link: github.com/kri...
Please do subscribe my other channel too
/ @krishnaikhindi
Connect with me here:
Twitter: / krishnaik06
Facebook: / krishnaik06
instagram: / krishnaik06

Пікірлер: 120
@surajbista8656
@surajbista8656 4 жыл бұрын
I think using one shot learning like siamese network in this problem makes more sense.
@debjyoti34
@debjyoti34 4 жыл бұрын
Can u make a video on what all improvements you can add to improve the accuracy of the model
@prathameshmore1402
@prathameshmore1402 3 жыл бұрын
If any other person appears in the frame, it still shows my name. How can I solve my issue?
@bnikhilraj1381
@bnikhilraj1381 3 жыл бұрын
hey can you send "facefeatures_new_model.h5" this file pls Iam unable to find
@prathameshmore1402
@prathameshmore1402 3 жыл бұрын
@@bnikhilraj1381 U have to create that model by your own. Sir has made that vdo, u can check it out
@bvramu-ew3rd
@bvramu-ew3rd 4 жыл бұрын
Sir please upload with Speech recognition and voice authentication vedio sir
@vishalsharma7268
@vishalsharma7268 3 жыл бұрын
Sir in face_Recognition part it's showing an error KeyError Traceback (most recent call last) in 16 # loss 17 plt.plot(r.history['loss'], label='train loss') ---> 18 plt.plot(r.history['val_loss'], label='val loss') 19 plt.legend() 20 plt.show() KeyError: 'val_loss'
@howto7644
@howto7644 2 жыл бұрын
it detects other face also as mine no accuracy
@fadhelalsuwaidi1221
@fadhelalsuwaidi1221 3 жыл бұрын
Hi Mr Krish Is training by keras better than using face_recognition library thanks in advance.
@moududhassan3026
@moududhassan3026 4 жыл бұрын
How can I add new image label to pre-trained model, so that my running application can identify new image also? Thanks
@haifanalakath3423
@haifanalakath3423 3 жыл бұрын
How?
@rohitjagdale4648
@rohitjagdale4648 3 жыл бұрын
Can you please explain use keras layer "Lambda" in this code ?
@riturajmishra3046
@riturajmishra3046 4 жыл бұрын
Sir I am confused should i start learning data science first (I am bsc student) or something other....because data science require lots of input of hardwork and learning and I am unable to see output of it....please guide me
@rohitg6558
@rohitg6558 4 жыл бұрын
Sir, please make a tutorial video on, How to add new class in old classification model without retraining all the classes again.
@UsamaChishti
@UsamaChishti 4 жыл бұрын
sir why my non-trainable params are not 0 when dense the classifying classes?? show at 5:55
@emanhussein3415
@emanhussein3415 3 жыл бұрын
me too
@vishalsharma7268
@vishalsharma7268 3 жыл бұрын
And the file "facefeatures_new_model.h5" is not automatically be saved
@diwakarbhatt04
@diwakarbhatt04 3 жыл бұрын
Hi Krish, I am watching your videos since last week and they are guiding a lot.
@ambilin7053
@ambilin7053 4 жыл бұрын
Hi krish, which tool are you using for the screen recording?
@ExtrinsicTechnology
@ExtrinsicTechnology 4 жыл бұрын
Real time face attendance system kzbin.info/www/bejne/kKGXm5qvZcqmlbs
@AdiMehaindroo
@AdiMehaindroo 2 жыл бұрын
In training process its showing cpu_allocator so i guess its training on cpu and i have a Gpu also so how can i i train it on gpu??
@AmanSingh-re8mw
@AmanSingh-re8mw 4 жыл бұрын
Sir? How can get a Councelling with you. I'm a student
@ExtrinsicTechnology
@ExtrinsicTechnology 4 жыл бұрын
Real time face attendance system kzbin.info/www/bejne/kKGXm5qvZcqmlbs
@anamikamaurya22
@anamikamaurya22 4 жыл бұрын
Join his paid course..ineuron.ai
@VenkataRamaRajuLolabhattu
@VenkataRamaRajuLolabhattu 4 жыл бұрын
When we get new face (person).. do we need to retrain the model ??
@DeepakKumar-uz4xy
@DeepakKumar-uz4xy 4 жыл бұрын
Sir is it possible to use keras model with tensorflow flow model
@Anonymous-qh6ew
@Anonymous-qh6ew 4 жыл бұрын
How to do multiple face recognition using the given code...I mean what changes do have to do in code??
@haifanalakath3423
@haifanalakath3423 3 жыл бұрын
Do you know?
@MrK-nb7xr
@MrK-nb7xr 4 жыл бұрын
Why don't you create a Udemy course that include various this type of projects
@krishnaik06
@krishnaik06 4 жыл бұрын
I want to provide here for free
@MrK-nb7xr
@MrK-nb7xr 4 жыл бұрын
@@krishnaik06 that's great .
@swarnimapandey7297
@swarnimapandey7297 4 жыл бұрын
@@krishnaik06 If God exists, he might look like you.
@shareknowledge7125
@shareknowledge7125 3 жыл бұрын
@@krishnaik06 great sir.
@sumantablr13
@sumantablr13 4 жыл бұрын
please any one help me on Bellow command raised the error if (pred[0][3] > 0.2) index 3 is out of bounds for axis 0 with size 2
@prathameshmore1402
@prathameshmore1402 3 жыл бұрын
Predicted result is having some problem. Shape of predicted result is 2 dimensional, while we should have 4 dimensional
@harishlakshmanapathi1078
@harishlakshmanapathi1078 4 жыл бұрын
Bro you have forgotten to divide the input image by 255 before feeding into the network! Anyways Love Your Videos!!
@kumaripayal8432
@kumaripayal8432 2 жыл бұрын
Sir How I print multiple names in a single group image.
@alphonseinbaraj7602
@alphonseinbaraj7602 4 жыл бұрын
Sir , In the testfolder ,can we upload any image folder like krish,kumar like that ? or can i upload some images ? becuase i got result like 0 images from 0 classes from test .But train ,200images from 2 classes . that is right .But what about test folder ?
@prathameshmore1402
@prathameshmore1402 3 жыл бұрын
You have to create another folder in the test folder, will work for sure. I had the same problem
@srujanjayraj9490
@srujanjayraj9490 4 жыл бұрын
Hi sir, if possible can you do more videos on Interview experiences......
@Abhishek-jy4ul
@Abhishek-jy4ul 4 жыл бұрын
hello sir great going!! one question is can we recognize human pose by this ?? like the person is standing or sitting ??
@swarnimapandey7297
@swarnimapandey7297 4 жыл бұрын
yes you can
@kikyou8349
@kikyou8349 Жыл бұрын
How the bounding box get drawn ?
@sadabratakonar4219
@sadabratakonar4219 4 жыл бұрын
''' if (pred[0][3] > 0.5): ''' sir, this line seems to be reversed when I am implementing the code. For 3 classes, A, B, C, pred[0][2] should be class C, but I am getting it as class A. Kindly tell what might be the reason and how to fix this??
@sravanipvn
@sravanipvn 4 жыл бұрын
Same issue...based on Probability we would segregate the classes? it should be based on faces right...this s wrong code...
@sravanipvn
@sravanipvn 4 жыл бұрын
I have updated the code as below: if(pred[:,0]>=1): name='A' cv2.putText(frame,name, (50, 50), cv2.FONT_HERSHEY_COMPLEX, 1, (0,255,0), 2) elif(pred[:,1]>=1): name='B' cv2.putText(frame,name, (50, 50), cv2.FONT_HERSHEY_COMPLEX, 1, (0,255,0), 2) elif(pred[:,2]>=1): name='C' cv2.putText(frame,name, (50, 50), cv2.FONT_HERSHEY_COMPLEX, 1, (0,255,0), 2) elif(pred[:,3]>=1): name='D' cv2.putText(frame,name, (50, 50), cv2.FONT_HERSHEY_COMPLEX, 1, (0,255,0), 2) else: cv2.putText(frame,"No face found", (50, 50), cv2.FONT_HERSHEY_COMPLEX, 1, (0,255,0), 2) cv2.imshow('Video', frame) if cv2.waitKey(1) & 0xFF == ord('q'): break
@rahilmohammad2913
@rahilmohammad2913 4 жыл бұрын
@@sravanipvn Hey thanks I have made changes according your code but there's one more problem....I am getting that bounding box around the face but it doesnot display name...Any suggestions would be great
@UsamaChishti
@UsamaChishti 4 жыл бұрын
@@sravanipvn again not work properly
@UsamaChishti
@UsamaChishti 4 жыл бұрын
@@sravanipvn i have 200 face images for each person. Model val_accuracy = 1.000 and accuracy = 1.000 but not know my model behave wrong....it is only predicted one class every time
@abdelilahdehaoui5665
@abdelilahdehaoui5665 3 жыл бұрын
i keep getting 100% accuracy on wrong result :3 . i have 4 classes but the classifier recognize only two of them
@prathameshmore1402
@prathameshmore1402 3 жыл бұрын
Exactly, I'm having the same problem. Were you able to solve your issue? If yes, then plz tell me how to do it!
@bnikhilraj1381
@bnikhilraj1381 3 жыл бұрын
hey can you send "facefeatures_new_model.h5" this file pls Iam unable to find
@devikams6479
@devikams6479 4 жыл бұрын
from tensorflow.python.keras.saving.saved_model import export_saved_model ImportError: cannot import name 'export_saved_model' Does anyone know the solution?
@arpitcruz
@arpitcruz 4 жыл бұрын
So part 3 will also be there? For covered face recognition?
@ExtrinsicTechnology
@ExtrinsicTechnology 4 жыл бұрын
Real time face attendance system kzbin.info/www/bejne/kKGXm5qvZcqmlbs
@nguyendanhhoa3696
@nguyendanhhoa3696 2 жыл бұрын
after 5 epoch, it shows me a tab named "Figure1" and it has "train loss" and "test loss" lines, and I don't know how to close it, if I click X, code is error. So how I can fix it?
@jagjeetsingh3892
@jagjeetsingh3892 3 жыл бұрын
TypeError: Value passed to parameter 'input' has DataType uint8 not in list of allowed values: float16, bfloat16, float32, float64. This error occured in last file. please help
@sharankalyan7
@sharankalyan7 3 жыл бұрын
Does this algorithm have a maximum limit to classify only 10 different objects/persons ? 4:23 can someone explain ?
@shachoud
@shachoud 3 жыл бұрын
Dear @krish, The same code is giving an error to me.. Please suggest what could have went wrong.. fit_generator() gives error as TypeError: __array__() takes 1 positional argument but 2 were given
@VinayKumar-uu4bh
@VinayKumar-uu4bh 2 жыл бұрын
Sir can u tell us why u used train and test different folders and you explained only train and viewed only train.What about test
@Hitesh-Salgotra
@Hitesh-Salgotra 3 жыл бұрын
any one plz help! i got train_ accuracy and val_accuracy ==1.0 and train_loss and val_loss = 0 but when iam using another person's face it is showing the same face of my name why this is so
@emanhussein3415
@emanhussein3415 3 жыл бұрын
i have the same problem
@Hitesh-Salgotra
@Hitesh-Salgotra 3 жыл бұрын
@@emanhussein3415 any solutions yet!
@emanhussein3415
@emanhussein3415 3 жыл бұрын
@@Hitesh-Salgotra unfortunately no
@emanhussein3415
@emanhussein3415 3 жыл бұрын
@@Hitesh-Salgotra plz tell me if you found the solution
@Hitesh-Salgotra
@Hitesh-Salgotra 3 жыл бұрын
Ok sure
@shahnaz1981fat
@shahnaz1981fat 2 жыл бұрын
cnn is transfer learning?
@shrutisusanmathews1271
@shrutisusanmathews1271 3 жыл бұрын
We wont be able to dynamically add in new persons in this kind of model right? It'll make more sense to use a siamese network
@souradipbhadra1406
@souradipbhadra1406 4 жыл бұрын
I want to test the keras model in real time, that the model gets coninuous frames for predict function.For that i want to run keras model in keras session. How would i do it?
@priyankapadwal4467
@priyankapadwal4467 Жыл бұрын
krish u r just awesome ,i learn lots of things from u ,thank u so much
@raghavagrawal9240
@raghavagrawal9240 4 жыл бұрын
Sir, can you please make a tutorial on facial expression recognition problem, with 'fer2013' dataset?
@kratikalohani4715
@kratikalohani4715 Жыл бұрын
share datasets please
@rekhakrumkar7239
@rekhakrumkar7239 2 жыл бұрын
What we have to put inside the test folder? Please tell in detail
@yashkhasgiwala7907
@yashkhasgiwala7907 4 жыл бұрын
I like how easy and quick this method is compared to one-shot learning method and the face_detection library. Indian jhol ftw
@anjanisriramula9205
@anjanisriramula9205 4 жыл бұрын
sir please upload a video on face mask recognition
@MrUmsdavid
@MrUmsdavid Жыл бұрын
Super Fantastic Tutorial! Easy to understand & flawless!
@Eren-jeager7
@Eren-jeager7 4 жыл бұрын
Mine is showing error of val_loss and val_acc keyError...can you pls help me
@chaimaebelemoualem4659
@chaimaebelemoualem4659 4 жыл бұрын
plt.plot(r.history['loss'], label='train loss') plt.plot(r.history['val_loss'], label='val loss') plt.legend() plt.show() plt.savefig('LossVal_loss') # accuracies plt.plot(r.history['accuracy'], label='train acc') plt.plot(r.history['val_accuracy'], label='val acc') plt.legend() plt.show() plt.savefig('AccVal_acc')
@sunilms805
@sunilms805 4 жыл бұрын
@@chaimaebelemoualem4659 AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'assign'. i'm getting this error do you know the solution
@vaishnavirai7151
@vaishnavirai7151 4 жыл бұрын
File "C:\Users\Idea\AppData\Roaming\Python\Python36\site-packages\keras_preprocessing\image\utils.py", line 111, in load_img raise ImportError('Could not import PIL.Image. ' ImportError: Could not import PIL.Image. The use of `load_img` requires PIL.
@ashutoshbarkule3573
@ashutoshbarkule3573 4 жыл бұрын
Install pillow library....It is use for image.
@gitaiwane1457
@gitaiwane1457 3 жыл бұрын
@@ashutoshbarkule3573 requirement satisfied but still error occur
@djeffalfarouk1285
@djeffalfarouk1285 4 жыл бұрын
hello sir i got this error while trying to load my trained model from google colab ValueError: Unknown layer: Functional can anyone help me please
@vinayakparab6260
@vinayakparab6260 4 жыл бұрын
make sure your tensorflow and keras versions match on local and google colab
@dhruvmittal4992
@dhruvmittal4992 3 жыл бұрын
I am facing the same problem ValueError: Unknown layer: Functional any solutions?
@sujithramanathan3275
@sujithramanathan3275 4 жыл бұрын
Thank you Krish Naik for this Tutorial. FYI. I got an error with Python 3.7 and found an solution while we are importing packages it should be tensorflow.keras.* instead of keras.* It resolved the issue for me. Hope this information will be helpful.
@vaishnavirai7151
@vaishnavirai7151 4 жыл бұрын
ValueError: operator __getitem__ cannot be overwritten again on class . i am getting this could you tell why?
@diwakarbhatt04
@diwakarbhatt04 3 жыл бұрын
Is there any algorithm that trains my model with only one image of mine means do not need to provide a complete dataset of images?
@rohannegi1877
@rohannegi1877 2 жыл бұрын
deeplearing is data hungry . the less data u have the bad model will be
@deki90to
@deki90to 4 жыл бұрын
Ugly code
@mohamedtimor4114
@mohamedtimor4114 4 жыл бұрын
hello i'm new to this, i have a question does the training done on gpu or cpu?
@sarangak.mahanta6168
@sarangak.mahanta6168 4 жыл бұрын
He said that his training was done in around 20 mins, so obviously it was done on his GPU. You can even train it in your CPU, but it would take hours. I trained 10 epochs using just my 940MX GPU and it was done in 5 mins (for vgg16).
@sameerkumarthakur203
@sameerkumarthakur203 4 жыл бұрын
@@sarangak.mahanta6168 I am facing kernel error while training. Can you help?
@ashwinraj8918
@ashwinraj8918 4 жыл бұрын
Thank you sir
@shirjeelkhan
@shirjeelkhan 4 жыл бұрын
Superb series sir. Great work go ahead.
@ExtrinsicTechnology
@ExtrinsicTechnology 4 жыл бұрын
Real time face attendance system kzbin.info/www/bejne/kKGXm5qvZcqmlbs
@arjyabasu1311
@arjyabasu1311 4 жыл бұрын
Sir, how to deploy this project on heroku?
@krishnaik06
@krishnaik06 4 жыл бұрын
For the model u have to create the api...and expose in the front end
@arjyabasu1311
@arjyabasu1311 4 жыл бұрын
For this type of project how should the front end look like & how can we develop the app.py ?
@arjyabasu1311
@arjyabasu1311 4 жыл бұрын
If you can give any reference that too will be of great help
@krishnaik06
@krishnaik06 4 жыл бұрын
Sure will do a project of that kind
@arjyabasu1311
@arjyabasu1311 4 жыл бұрын
@@krishnaik06 Thank you so much sir !!
@hasanmirza8862
@hasanmirza8862 3 жыл бұрын
I trained dataset of 80 people and its not recognizing anyone now.
@sumantablr13
@sumantablr13 4 жыл бұрын
Krish Nice video..I follow your code and created the image Dataset. When I trained the model getting bellow error,Please help me Bellow command raised the error if (pred[0][3] > 0.2) index 3 is out of bounds for axis 0 with size 2
Face Recognition Using Keras And OpenCV- Part 1- Data Collection
12:23
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 114 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 21 МЛН
Forecasting Future Sales Using ARIMA and SARIMAX
24:23
Krish Naik
Рет қаралды 328 М.
Face Recognition With Python 3.10 Tutorial (Webcam)
18:59
Indently
Рет қаралды 111 М.
Face recognition in real-time | with Opencv and Python
28:19
Pysource
Рет қаралды 278 М.
What is Face Detection? - The Ultimate Guide for 2022
3:54
LearnOpenCV
Рет қаралды 10 М.
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 114 МЛН