Git Product home page Git Product logo

Comments (4)

juan-csv avatar juan-csv commented on June 15, 2024

hi, this is the architecture of the code model, then I will upload a script to retrain the emotion detection model.

instantiate model

model = Sequential()

1 - Convolution

model.add(Conv2D(64,(3,3), padding='same', input_shape=(48, 48,1)))
model.add(BatchNormalization())
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Dropout(0.25))

2nd Convolution layer

model.add(Conv2D(128,(5,5), padding='same'))
model.add(BatchNormalization())
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Dropout(0.25))

3rd Convolution layer

model.add(Conv2D(512,(3,3), padding='same'))
model.add(BatchNormalization())
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Dropout(0.25))

4th Convolution layer

model.add(Conv2D(512,(3,3), padding='same'))
model.add(BatchNormalization())
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Dropout(0.25))

Flattening

model.add(Flatten())

Fully connected layer 1st layer

model.add(Dense(256))
model.add(BatchNormalization())
model.add(Activation('relu'))
model.add(Dropout(0.25))

Fully connected layer 2nd layer

model.add(Dense(512))
model.add(BatchNormalization())
model.add(Activation('relu'))
model.add(Dropout(0.25))

model.add(Dense(num_classes, activation='softmax'))

model.summary()

from face_liveness_detection-anti-spoofing.

smita181298 avatar smita181298 commented on June 15, 2024

Hello,Thank you so much @juan-csv for the detailed reply.
Can you share what are the baseline models in case of emotion detection and what to refer to find more about that

  1. model_baseline_v1
  2. model_v1
  3. model_baseline_dropout
  4. model_dropout
  5. model_baseline_tf_learning
  6. model_tf_learning

Again ,Thanks a lot.

from face_liveness_detection-anti-spoofing.

juan-csv avatar juan-csv commented on June 15, 2024

At this moment I do not have enough time to organize the information about the architecture of the other models, for now you can go to https://www.kaggle.com/ashishpatel26/facial-expression-recognitionferchallenge/kernels and review other implementations for the detections of emotions.

from face_liveness_detection-anti-spoofing.

smita181298 avatar smita181298 commented on June 15, 2024

Sure and thanks @juan-csv .

from face_liveness_detection-anti-spoofing.

Related Issues (8)

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.