Giter Club home page Giter Club logo

lcnn's Introduction

Light CNN for ASVSpoof (Tensorflow-Keras)

Test

Description

Light CNN (LCNN) is CNN based model which was proposed in Interspeech 2019 by STC teams and state of the art of ASVspoof2019.

LCNN is featured by max feature mapping function (MFM). MFM is an alternative of ReLU to suppress low-activation neurons in each layer. MFM contribute to make LCNN lighter and more efficient than CNN with ReLU.

If you'd like to know more detail, see the references below.

Experiment setup

In this project, LCNN is trained with ASVspoof2019 PA dataset. As a speech feature, I used spectrograms that extracted by using STFT or CQT.

Reference

"A Light CNN for Deep Face Representation with Noisy Labels"

"STC Antispoofing Systems for the ASVspoof2019 Challenge"

ASVspoof2019

Contributing

Interested in contributing? Awesome! Fork and create PR! Or you can post Issue for bug reports or your requests (e.g. pytorch support).

lcnn's People

Contributors

ozora-ogino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lcnn's Issues

Hello there

I am using your code to train data on LCNN

Now i am dealing with the problem of choosing access type PA or LA

When I choose the access type as LA, the error keep occurs.

I suppose the error is because there is no file about LA on the protocol file.

train_protocol.csv is filled only with PA files.

LA file does not need any protocol path or something>?

I beg your help.

Thank you

Request for more details

I appreciate that your code can be used as a reference, but I don't know how to run them, could you please add more comments in the README file again? Thanks.

Getting a Value Error

The train and dev features get extracted successfully; While building the LCNN model, I get the following error:
ValueError: Input 0 of layer conv2d is incompatible with the layer: : expected min_ndim=4, found ndim=3.
I did not make any changes in the script, simply running the original script with same dataset (ASV spoof 2019)
Screenshot 2021-09-24 at 9 41 16 PM

No change in validation loss and validation accuracy and are zero val_loss: 0.0000e+00 - val_accuracy: 0.0000e+00

In the "model.fit " function I tried setting shuffle=True.
But still loss: 0.2522 - accuracy: 0.8989 -
val_loss: 0.0000e+00 - val_accuracy: 0.0000e+00 <-- (PS: Classification problem)
model.compile(
optimizer=Adam(learning_rate=lr),
loss="sparse_categorical_crossentropy",
metrics=["accuracy"]
)
model.fit(
x_train,
y_train,
epochs=epochs,
batch_size=batch_size,
validation_data=[x_val, y_val],
shuffle=True,
callbacks=[es, cp_cb])
Screenshot 2021-10-19 at 12 50 20 PM

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.