Data Science Asked by yudhiesh on August 13, 2021
I am working on a project to detect human awareness levels using this dataset.
I preprocessed the video data as the following:
All in the dataset has a size of about 570,000 images.
I am using the model on a mobile device so I used transfer learning with MobileNetV2.
The model classification is extremely good but it feels odd seeing it do so well and reach a very low loss so fast.
Is this even possible on a dataset this big? I am feeling that I did something wrong cause when I try to use the model on the mobile device with Tensorflow.js it does not perform well at all. After doing some research I realized that I should be using a model that combines a CNN and a LSTM as this is video data. But I am bit strapped for time to redo the whole preprocessing of the data to convert the images into a sequence of frames and then do the training once more.
What I was planning to do was make an average of the predictions on the mobile device to improve the accuracy there but I am wondering if I messed up the process anywhere.
So the model was performing poorly because I was making predictions on the entire input image instead of doing face detection then performing predictions on the cropped faces.
Correct answer by yudhiesh on August 13, 2021
Like you correctly pointed out, your data is actually sequential. Simply randomly splitting your data for training and testing won't do here. If you do it like that it is very likely that every test frame is only 5 frames away from a training frame making it look very similar. Your network has practically seen your testing data in training already.
You will probably have to train again. I would recommend though, to save your data after preprocessing it, so you can immediatly start from this point again.
Answered by N. Kiefer on August 13, 2021
A few things come to mind here:
Answered by Brandon Donehoo on August 13, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP