GithubHelp home page GithubHelp logo

ocnet's Introduction

OCNet-DSP

This repository contains the official implementation of our paper, "One-Class Network with Directed Statistics Pooling for Spoofing Speech Detection". [Paper link]

Requirements

Installing dependencies:

pip install -r requirements.txt

Run the training procedure

Run the train.py to train the model on the ASVspoof2019 LA dataset:

python3 train.py -p path_to_your_database -o ./models/new_path  --gpu 0 --warmup

Run the test procedure

Run the test.py to evaluate the pre-trained model on the ASVspoof2019 LA dataset:

python3 test.py -p path_to_your_database -m ./models/OCNet --gpu 0 --part eval

Run the cross-dataset procedure

To evaluate the cross-dataset performance on the ASVspoof2021 LA dataset:

python3 cross_dataset_2021.py -p path_to_your_database -m ./models/OCNet -a LA --gpu 0 --phase eval

To evaluate the cross-dataset performance on the ASVspoof2015 dataset:

python3 cross_dataset_2015.py -p path_to_your_database -m ./models/OCNet --gpu 0 --part eval

Print the model parameters

You can run the 'model_param.py' to print the structure and parameters of the given model:

pyhton3 model_param.py --gpu 0

Citation

If you find this work useful in your research, please consider citing this paper.

Acknowledgement

This code refers to the following two projects:

[1] https://github.com/yzyouzhang/AIR-ASVspoof

[2] https://github.com/clovaai/aasist

ocnet's People

Contributors

gylin2 avatar

Stargazers

 avatar  avatar Jun Xue avatar JunyanWu avatar

Watchers

 avatar

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.