Git Product home page Git Product logo

t60_data_generation's Introduction

T60_data_generation

Code Description

0921_OurData_GenPT.py is used to generate *.pt from *.wav, which calls the fuunction from gen_specgram.py

If you want to generate your own *.pt from your own *.wav, you should revise the following places:

default in parser.add_argument('--csv_file', type=str, default= "/data2/pyq/yousonic/code_split_wav/gt_zky_t60.csv) by using your own t60_groundtruth file.
default in parser.add_argument('--dir_str_head', type=str, default="/data2/pyq/yousonic/20230214_zky/") by using your own path which is storing *.wav files.
default in parser.add_argument('--save_dir'...) represents the path which your generated *.pt will store.  

Generated *.pt Description

The type of *.pt is dict, and its size is 1. Its Key is its filename, and its value is a list. The size of the list is the number of slices, depended on the length of your *.wav. Each list is a dict, with the size of 4, including image, ddr, t60, MeanT60 and their corresponding values.

Instructions

If you want use the code to generate *.pt, you have better to run 0921_OurData_GenPT.pywhth gen_specgram.py, as well as your *.wav files. You may revise some variables in 0921_OurData_GenPT.py, just modifying according to the code conmments.

Steps

Firstly, you should check gen_specgram.py and splweighting.py is in your workplace.
Secondly, revise the default mentioned in Code Description.
Thirdly, run 0921_OurData_GenPT.py

t60_data_generation's People

Contributors

pyq2377 avatar fengsky401 avatar

Watchers

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