Realtime Face Emotion Recognition | Tensorflow | Transfer Learning | Python | Train your own Images
Vložit
- čas přidán 4. 07. 2024
- This video contains stepwise implementation for training dataset of "Face Emotion Recognition or Facial Expression Recognition" using Transfer Learning in Tensorflow-Keras API
(00:00:00) concepts
(00:23:01) installation
(00:30:52) implementation
(1:15:08) Live Webcame demo
thank you very much, you explain very well, keep up the good work!
It was a very successful presentation of the subject. thanks a lot
Impressive Dr. Shan. Keep it up
Thank you so mcuh for this great explanation
thank you for your videos really it is very usefull
Thank you so much , you must teaching programming!!!!!
@@sashinkakumarage4739 how ?
Have you telegramm ?
Very interesting!
Good lecture
Thank you for this ! it was very much helpful.
Could you please make a video on psychological signals as well, followed up with a hybrid model between facial and psychological emotion detection =D
Thank you for your interest, its a nice idea, and I have also worked on fusion of bio-signals and vision (video) based techniques using multi-model.
your valuable suggestion is noted, I will look forward to publish a video on the topic.
Till then, please keep sharing my videos and keep supporting us like this.
@@deeplearning_by_phdscholar6925 thank you dear,
what are the h.w specifications that you need to excute this program? please
@@deeplearning_by_phdscholar6925 have you uploaded the video?
Thanks for the well-explained videos.
Hi, Thanks for the well-explained videos. Our request to you is please make a video on emotion recognition on Bio-signals. also I haven't seen Realtime Face Emotion Recognition with Deep Face
Hello Vincent,
DeepLearning_by_PhDScholar posted a video talking about Face Emotion Recognition with Deep Face, here is the link: czcams.com/video/fkgpvkqcoJc/video.html
Just a tip for everyone doing the X normalization: Cut your data set in half, your RAM will thank you
@Pradeep Verma Can you share the code?
@Pradeep Verma i also need the code
How to do it, I'm facing that issue
please share the code
thank you
which model do u prefer best for FER,as per trainimg complexity n implenting over test dataset...?
+rep man goodwork
55:57 you got this!!
Sir how will we do for group facial expression recognition? what changes we have to make in this code?
hello sir, can we get the code and images that you wrote in this video.?
I always see the same output from neural network. How many input and hidden layer units do i have to use?
Hello sir. I'm making a model for detecting faces with mask, face shield and without it. I use this video but I have overfitting problems. What did I do wrong?
Hello Dr.Shan, is it possible for you to share the validation accuracy and validation loss instead of the training accuracy and loss? TIA.
Sir we are planning to implement sub emotions in a particular major emotion.
For example for the major emotion SAD there are different sub emotions like the sad can be due to heartbreak or trouble or when he lost something or even when he is hope less the person will be in sad emotion only.
To implement this we need some guidence. So we are requesting you to please accept our requests.
We are waiting for your reply sir.
Can we have Github Link for This Code? There is not any Link in the Description.
Sir, can you explain how to test the model using whole testing dataset?
Hello, can you make a tutorial also on Bio-signal/physiological based emotion detection? Highly interested for that
Hello sir,
While training the model i.e., using the fit method it started running and gave a Resource exhausted error.
Plzzz help me out how to solve this error.
Is there any way to get the "Anaconda Prompt" terminal on Mac? I've only ever seen it open on Windows.
Please did you use any algorithm to train the data
Sir at 32:00 min of video,after downloading the dataset,again you are creating "Training" folder.Do we need to extract the all "train" files of archive into training folder
Please make a video of emotion recognition based on bio/physiological data
sorry sir, i have a question. what is feature and label from (at the x and y append)? because i can't running them.. or it because of the datasets that i used is different? thanks
I guess this will be for the Android: "I detect sadness Dr Shan, would you like a back massage?"
Thank you for the tutorial! How can I cite your work in my writing?
Hi i have tried your code but in the last i am getting this 'break' outside loop error. could you help me with this?
Great explanation. It would be great to share the code.
i guess you must make video on Human emotions recognition
sir in cnn which model you have used?
Thank you so much, this video was very helpful for me. Is there a chance you could share the code and/or your pre-trained model? Keep up the good work!
णचछःंर्न
Did you get the trained files already? If yes please share with me.
@@mehmetfidanci8943
@@mehmetfidanci8943 i have done a transfer learning with chekpoint but i wand to use webcam to detect
how can we do this not from webcam but from a feed stream of data. E.g. I setup my model as an API end point and an incoming video data say from a security camera is sent to the API and API endpoint recieves and send the data back to user as one word (angry, sad, etc)
32:54 what is the sign between folders in path?
You are so intelegent gob bless you
While compile the model my losses and accuracy both are 0
Please help me out
So did you manage to save the model? Cause i'm getting a tf issue with custom layers
@@sashinkakumarage4739 no I never solved it sorry! Wish u luck
Friend, congratulations on your video. I'm also working on this issue. Do you have a tip on how to store these emotions in a database?
Hii sir could you got your answer?
Hello sir at 32:00 min of video,after downloading the dataset,again you are creating "Training" folder.Do we need to extract the all "train" files of archive into training folder
is "create_training_Data()" will run lots of time?
hwy can you help me out, while using the same code i am geting a memory error status while normalization of the numpy array for dataset size 12k what to do
even after applying transfer learning , epoch started from 0.1-0.2 and not increasing even after 30 epch? what should i do?
Hi i have some problem when i try to fit the model i get this error MemoryError: Unable to allocate 16.1 GiB for an array with shape (28709, 224, 224, 3) and data type float32
Can i ask you what the model you used ?
Plz help .. How I do the test to get the accuracy of it ?? Did someone complete it
what's the algorithm we are using?
Sir when I execute the last part it says Face not detected . What should I do? Please help me
I have an error that I tensorflow/core/platform/cpu_feature_guard this tensorflow binary is optimised with oneapi deep neural network library to use the following cpu instructions in performance-critical operation AVX AV2X
Please help me sir 🙏
Sir i don't know how your code is running without throwing variable error, as you are using 'face_roi' variable inside loop scope and you are trying to access that variable after that scope.
Hi Rohit, can you please suggest any solution for this, how to solve this error.
what algorithm did you use to implement for this?
For some reason, when I come to the actual training part, my accuracy starts only at about 17 percent. And then after training for 150 epochs, I've only been able to get the accuracy up to about 32 percent. Any suggestions of what could possibly be going wrong?
sir will you please tell me how to train epochs i am not able to do it for even 1 epochs
@@anshkumar2848maybe because you are not changing your limit of trainable paramters... as not locking the previous layers. will make the whole model trainable... for which obvious reasons your computer cant handlr
@@sumitsoni7559 ok sir got it
if your model taking time to train
switch to google colab and select GPU (as a runtime type)then your model will train quickly
When I run the code in the live video I am getting rectangle around my face and by default happy expression is displayed. And the emotion doesn't change even though I change my expression and in jupyter notebook it is displaying face not detected. Please can someone help me with this.
At the end of the video you run it and it reads your emotion in real time. Does any part of the code in the video actually for it to detect emotion in real time?
at 47:53 while executing that step I got an error "Unable to allocate 27.2 GiB for an array with shape (24257, 224, 224, 3) and data type float64" how to resolve it
Try with lesser number of images it will work
Hello sir how did give img_array=imread("Training...)and it showing error in img_array.shape..please anybody to solve this solution
Can you please provide the github link or share the notebook of the code
Assalamu Alaikum
Could you please make a video on food ingredients recognition ?? Please
Where can I get the code?
Does anyone have this code up and running?
could you connect this code you've done in tensor flow to a web application or would you have to code it into a whole different IDE?
Yes, of course. You can connect to web application using flask or any other framework. You dont need to code it into another IDE. The reason to use Jupyter notebook is for better runtime visualization.
Can we have a video on malaria detection using machine learning
Where to find weizmann dataset
Hey there, great work! For some reason even though the code runs, in the live video it shows the rectangle around my face and it constantly writes happy while in the jupyter it writes "face not detected"...Maybe you can help me out :/
I'm also facing similar problem where it shows surprise constantly and jupyter keep in writing "face not detected"
@@indiananime3125 did you find a solution for this?
@@babayaga2358 No
Please can someone help I am also getting the same thing though I followed the same as shown in the video
Can you provide me code for calculating and displaying accuracy of detection
please share the video with bio signal and intensity of emotioms
The length of the training data is 0. what can be the possible issue? and how to resolve this? Can you share the github link of the code?
Anybody know what algorithm is being used. Please inform
is there any replacement for matplotlib?
Can you provide me the github link for the code sir
Sir, why is validation accuracy fluctuating?
@@llqq1744 have u manage to figure it out?
I am getting this error: warnings.warn('Custom mask layers require a config and must override ' when I try to save the model. Please help
@@sashinkakumarage4739 I did not
Please if you get any solution do let me know
Where we can find the code?
how can i access your sourse code
Asslam alaikum!
Sir I'm fresh in this Field and our teacher assign this project...I follow your instructions from the start of video but in implementation (start)where you put the image shape it occurs error which i cannot identify kindly sir help me I have no teacher who guide me plz sir
iam getting this error please help me
MemoryError: Unable to allocate 32.2 GiB for an array with shape (28709, 224, 224, 3) and data type float64
new_model.fit(X,Y, epochs = 25)***
ResourceExhaustedError facing.. what to do?
Which algorithm is used here
Bro where is the pre trained model which u used for new model load??
42:01 After calling the function and printing the length of training data am getting 0 as the output . What can be the possible
did you get a solution for this
same
Check for any errors in the code like a typo..
it happened to me but the reason was that i forgot to provide image size in the previous steps
thank you for your video,but I took an error in fit function. ValueError: Input 0 is incompatible with layer model_6: expected shape=(None, 224, 224, 3), found shape=(None, 50, 50, 1) I couldn't fix that
img = np.expand_dims(img, axis=0)
img = img/255.0
I have done the tutorial in multiple notebooks and different cpu and gpu setup but the accuracy is just at 14% on the first 5 epochs
Hi, My model is taking around 10-12 hours to train one epoch, any particular reason for it? (I'm using a MacBook pro 2020)
same with me bro i think it has somethig to do with optimizer ot no of images in data set
hey , how did you solved it then , i am getting same issue
How to get a image dataset of. Diffrently abilied child and how we can classift them.. Because each people have different emotion.
The code is running but in the camera, the emotion is stuck in Fear and it is not changing along with my emotion. Can anyone help me ?
How to run the real time live video code in Google Colab. I m performing this all in Google Colab. I know how to open webcam in Google Colab but then how to connect code camera capture code with my code
33:00 Anaconda Prompt won't allow me to run the command saying that it isn't a runnable program
sir can you please help me i m getting a error---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[29], line 1
----> 1 temp = np.array(training_Data)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (28273, 2) + inhomogeneous part.
hi sir when i am normalizing my dataset x = x/255.0 its giving me a memory error. how i can solve it ?
and its also giving an error if i am applying 'softmax'.
i'm also having this problem , did you find any solution??
@@theyk3817 i reduced my dataset to 10k pictures
Sir may you please share your linkdin profile
i cant move further epochs, i tried alot iam facin error...
Error
ValueError: Shapes (None, 1) and (None, 1000) are incompatible
Hi Nice explain. Can you share the code?
sir can I get a link for the code!!!
Can anyone provide the github link plz ?