Giter Club home page Giter Club logo

chestlive's Introduction

ChestLive: Fortifying Voice-based Authentication with Chest MotionBiometric on Smart Devices

环境

1、python 3.8.8

2、tensorflow-gpu 2.4.1

3、cuda 11.2

4、cudatoolkit 10.1.243

5、cudnn 7.6.5

6、sklearn 0.0

7、numpy 1.19.2

使用方法

训练

前往 Fewshotchestmotion,在 Train.ipynb 中设置相应参数,然后运行 Train.ipynb.。一个h5格式的文件将在 checkpoint 中创建,该文件是运行后保存的模型。

Dataset是训练模型的类。在初始化函数中ReadData.loadData()指定读取数据的文件夹,选择训练或测试数据。训练过程中通过调用get_mini_dataset()函数获得一部分数据用于训练。

在训练代码的最后面可以更改保存训练模型的文件夹及文件名。

测试

前往 Fewshotchestmotion,在 test.py 中设置与训练代码相同的参数。最后会将测试结果保存在指定文件里,可更改。

testDataset是测试的类。在初始化函数中会读取测试数据。

每次对比不同情况的数据时需要更改testDataset中init()第四行读取不同场景数据的代码,ReadData.loadData()的第一个参数是读取数据所在的文件夹,test数据需要和base数据放在不同目录但是同样命名为“train”或者“test”文件夹。

chestlive's People

Contributors

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