Giter Site home page Giter Site logo

Comments (6)

pkhorrami4 avatar pkhorrami4 commented on August 30, 2024

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.

wmonica avatar wmonica commented on August 30, 2024

image
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.

pkhorrami4 avatar pkhorrami4 commented on August 30, 2024

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.

pkhorrami4 avatar pkhorrami4 commented on August 30, 2024

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.

wmonica avatar wmonica commented on August 30, 2024

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.
0
1
2
3
And the training process is very smoothly. The test accuracy is very high.
image
Thank you very much.

from do-neural-networks-learn-faus-iccvw-2015.

pkhorrami4 avatar pkhorrami4 commented on August 30, 2024

No problem. Thanks for bringing the issue to my attention.

from do-neural-networks-learn-faus-iccvw-2015.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.