Comments (6)
Hello. I am sorry the code is not running as it should. I believe I was able to reproduce the problem you are experiencing. I think it has to do with the input images. When the images are resized to 96x96, they are returned as data type float64 instead of uint8 resulting in a range mismatch when they are saved as uint8 to the numpy (.npy) file.
I think if you display an image from the X.npy file, it will probably look like noise rather than a face. I made a correction to the code and posted it to a branch called fix_image_range. Hopefully, this should fix it.
from do-neural-networks-learn-faus-iccvw-2015.
I have tried as you said. The accuracy is a little higher than before. But the accuracy is still lower then 55%, and I plot the train/test accuracy figure, as shown. I found the training process is overfitting. Could tell me how to solver the problem? Or how I can get the result just as you said. Thanks!
from do-neural-networks-learn-faus-iccvw-2015.
Could you try and display a few of the images for me? The code should be saving the images to a file named X.npy. Do the images look like faces or like noise?
from do-neural-networks-learn-faus-iccvw-2015.
I received an email in which you showed that the images were just noise (strangely, I don't see your message here). As I mentioned before, I believe the issue is because the images are being saved out to the .npy files incorrectly.
Just to be clear, did you rerun the make_ck_dataset.py file in the fix_image_range branch to reconstruct the .npy data files before retraining the model? If not, could you please rerun the script, save the .npy files to a temp directory and confirm that the images look like faces. Thanks
from do-neural-networks-learn-faus-iccvw-2015.
Thank you for your help. I checked the .npy file, and the images are just noise. Then I reconstruct the .npy data, now the images are just like faces. Just as shown below.
And the training process is very smoothly. The test accuracy is very high.
Thank you very much.
from do-neural-networks-learn-faus-iccvw-2015.
No problem. Thanks for bringing the issue to my attention.
from do-neural-networks-learn-faus-iccvw-2015.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from do-neural-networks-learn-faus-iccvw-2015.