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
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 ?
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.
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?
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
''' 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 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
@@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
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?
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).
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
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
@@chaimaebelemoualem4659 AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'assign'. i'm getting this error do you know the solution
from tensorflow.python.keras.saving.saved_model import export_saved_model ImportError: cannot import name 'export_saved_model' Does anyone know the solution?
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
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.
I think using one shot learning like siamese network in this problem makes more sense.
Can u make a video on what all improvements you can add to improve the accuracy of the model
Super Fantastic Tutorial! Easy to understand & flawless!
Hi Krish, I am watching your videos since last week and they are guiding a lot.
sir why my non-trainable params are not 0 when dense the classifying classes?? show at 5:55
me too
krish u r just awesome ,i learn lots of things from u ,thank u so much
Sir, please make a tutorial video on, How to add new class in old classification model without retraining all the classes again.
Sir please upload with Speech recognition and voice authentication vedio sir
Hi Mr Krish
Is training by keras better than using face_recognition library
thanks in advance.
If any other person appears in the frame, it still shows my name. How can I solve my issue?
hey can you send "facefeatures_new_model.h5" this file pls Iam unable to find
@@bnikhilraj1381 U have to create that model by your own. Sir has made that vdo, u can check it out
When we get new face (person).. do we need to retrain the model ??
Hi krish, which tool are you using for the screen recording?
Real time face attendance system ruclips.net/video/Zp4jgy0es_Y/видео.html
How can I add new image label to pre-trained model, so that my running application can identify new image also? Thanks
How?
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
it detects other face also as mine
no accuracy
So part 3 will also be there? For covered face recognition?
Real time face attendance system ruclips.net/video/Zp4jgy0es_Y/видео.html
Sir is it possible to use keras model with tensorflow flow model
Superb series sir. Great work go ahead.
Real time face attendance system ruclips.net/video/Zp4jgy0es_Y/видео.html
Can you please explain use keras layer "Lambda" in this code ?
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'
Hi sir, if possible can you do more videos on Interview experiences......
Sir? How can get a Councelling with you. I'm a student
Real time face attendance system ruclips.net/video/Zp4jgy0es_Y/видео.html
Join his paid course..ineuron.ai
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 ?
You have to create another folder in the test folder, will work for sure. I had the same problem
hello sir great going!! one question is can we recognize human pose by this ?? like the person is standing or sitting ??
yes you can
Bro you have forgotten to divide the input image by 255 before feeding into the network!
Anyways Love Your Videos!!
Does this algorithm have a maximum limit to classify only 10 different objects/persons ? 4:23 can someone explain ?
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.
ValueError: operator __getitem__ cannot be overwritten again on class . i am getting this could you tell why?
How the bounding box get drawn ?
Sir How I print multiple names in a single group image.
What we have to put inside the test folder? Please tell in detail
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?
How to do multiple face recognition using the given code...I mean what changes do have to do in code??
Do you know?
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??
cnn is transfer learning?
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
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
''' 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??
Same issue...based on Probability we would segregate the classes? it should be based on faces right...this s wrong code...
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
@@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
@@sravanipvn again not work properly
@@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
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
And the file "facefeatures_new_model.h5" is not automatically be saved
Why don't you create a Udemy course that include various this type of projects
I want to provide here for free
@@krishnaik06 that's great .
@@krishnaik06 If God exists, he might look like you.
@@krishnaik06 great sir.
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?
hello i'm new to this, i have a question
does the training done on gpu or cpu?
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).
@@sarangak.mahanta6168 I am facing kernel error while training. Can you help?
I like how easy and quick this method is compared to one-shot learning method and the face_detection library. Indian jhol ftw
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?
deeplearing is data hungry . the less data u have the bad model will be
Thank you sir
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
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
i have the same problem
@@emanhussein3415 any solutions yet!
@@Hitesh-Salgotra unfortunately no
@@Hitesh-Salgotra plz tell me if you found the solution
Ok sure
sir please upload a video on face mask recognition
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
Predicted result is having some problem. Shape of predicted result is 2 dimensional, while we should have 4 dimensional
Sir, can you please make a tutorial on facial expression recognition problem, with 'fer2013' dataset?
Sir, how to deploy this project on heroku?
For the model u have to create the api...and expose in the front end
For this type of project how should the front end look like & how can we develop the app.py ?
If you can give any reference that too will be of great help
Sure will do a project of that kind
@@krishnaik06 Thank you so much sir !!
Mine is showing error of val_loss and val_acc keyError...can you pls help me
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')
@@chaimaebelemoualem4659 AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'assign'. i'm getting this error do you know the solution
from tensorflow.python.keras.saving.saved_model import export_saved_model
ImportError: cannot import name 'export_saved_model'
Does anyone know the solution?
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
make sure your tensorflow and keras versions match on local and google colab
I am facing the same problem
ValueError: Unknown layer: Functional
any solutions?
share datasets please
i keep getting 100% accuracy on wrong result :3 . i have 4 classes but the classifier recognize only two of them
Exactly, I'm having the same problem. Were you able to solve your issue? If yes, then plz tell me how to do it!
hey can you send "facefeatures_new_model.h5" this file pls Iam unable to find
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
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.
Install pillow library....It is use for image.
@@ashutoshbarkule3573 requirement satisfied but still error occur
I trained dataset of 80 people and its not recognizing anyone now.
Ugly code