Giter Club home page Giter Club logo

Comments (11)

AlainPilon avatar AlainPilon commented on June 3, 2024 17

actually fix is easy:

face_image = feelings_faces[result[0].tolist().index(max(result[0]))]

.tolist() is the fix ;-)

Now I have to figure out why it always think that I am happy...

from emotion-recognition-neural-networks.

AlainPilon avatar AlainPilon commented on June 3, 2024 1

:+1 I am curious, how do you know your webcam loads? I use a Macbook Pro and the camera light never turn on and I get the same error are yours.

from emotion-recognition-neural-networks.

AdrienPlayerium avatar AdrienPlayerium commented on June 3, 2024

@AlainPilon Your model is probably not loaded ~Or you are a real happy guy hehe

from emotion-recognition-neural-networks.

AlainPilon avatar AlainPilon commented on June 3, 2024

~Or you are a real happy guy
:-)

I did manage to make it output some other emotion but they had so be very contrived (as in I had to do some pretty bad acting to get them). I will do more tests this week.

from emotion-recognition-neural-networks.

paulkirkland avatar paulkirkland commented on June 3, 2024

yeah i managed to eventually find out the same fix with the tolist() feature.

I find the code run in such a way that the first emotion it sees is what it likes to stick with i have an alternative version of the code trained with a different CNN that give a faster changing response to emotions, though sometimes its get a bit silly jumping between two , even when you try your hardest to keep the same face.

from emotion-recognition-neural-networks.

AlainPilon avatar AlainPilon commented on June 3, 2024

@paulkirkland probably need to change to a LTSM to keep track of the last emotion to make it "stick". But that is out of my comfort zone for now ;-)

from emotion-recognition-neural-networks.

AdrienPlayerium avatar AdrienPlayerium commented on June 3, 2024

@paulkirkland Maybe without training a different network, you can take that output, as a noisy detection, and use mean shift, or kalman filtering to reduce the noise.

from emotion-recognition-neural-networks.

ashukumar12d avatar ashukumar12d commented on June 3, 2024

@paulkirkland sir can you kindly share your model and code that overcame this issue. It will be very helpful

from emotion-recognition-neural-networks.

BePhamVietnamese avatar BePhamVietnamese commented on June 3, 2024

Hi @paulkirkland, I have also gotten this problem long time. Could you please help me to solve this problem. How can I fix this point. Thank you very much.

from emotion-recognition-neural-networks.

SwapnilAkash avatar SwapnilAkash commented on June 3, 2024

data[np.argmax(labels[i]), result[0].index(max(result[0]))] += 1
AttributeError: 'numpy.ndarray' object has no attribute 'index'
Solution??

from emotion-recognition-neural-networks.

Shetuu avatar Shetuu commented on June 3, 2024

The baseline predictions are the historical averages

baseline_preds = test_features.index('averages')
AttributeError: 'numpy.ndarray' object has no attribute 'index'

whats is the solution?

from emotion-recognition-neural-networks.

Related Issues (20)

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.