프로젝트
GitHub에서 보기
kaituoxu/Conv-TasNet
소개
논문 “TasNet: Surpassing Ideal Time-Frequency Masking for Speech Separation”에서 설명한 Conv-TasNet의 PyTorch 구현이며, 순열 불변 학습(PIT)을 사용합니다.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalConv-TasNet
A PyTorch implementation of Conv-TasNet described in "TasNet: Surpassing Ideal Time-Frequency Masking for Speech Separation".
Results
| From | N | L | B | H | P | X | R | Norm | Causal | batch size | SI-SNRi(dB) | SDRi(dB) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Paper | 256 | 20 | 256 | 512 | 3 | 8 | 4 | gLN | X | - | 14.6 | 15.0 |
| Here | 256 | 20 | 256 | 512 | 3 | 8 | 4 | gLN | X | 3 | 15.5 | 15.7 |
Install
- PyTorch 0.4.1+
- Python3 (Recommend Anaconda)
pip install -r requirements.txt- If you need to convert wjs0 to wav format and generate mixture files,
cd tools; make
Usage
If you already have mixture wsj0 data:
$ cd egs/wsj0, modify wsj0 data pathdatato your path in the beginning ofrun.sh.$ bash run.sh, that's all!
If you just have origin wsj0 data (sphere format):
$ cd egs/wsj0, modify three wsj0 data path to your path in the beginning ofrun.sh.- Convert sphere format wsj0 to wav format and generate mixture.
Stage 0part provides an example. $ bash run.sh, that's all!
You can change hyper-parameter by $ bash run.sh --parameter_name parameter_value, egs, $ bash run.sh --stage 3. See parameter name in egs/aishell/run.sh before . utils/parse_options.sh.
Workflow
Workflow of egs/wsj0/run.sh:
- Stage 0: Convert sphere format to wav format and generate mixture (optional)
- Stage 1: Generating json files including wav path and duration
- Stage 2: Training
- Stage 3: Evaluate separation performance
- Stage 4: Separate speech using Conv-TasNet
More detail
# Set PATH and PYTHONPATH
$ cd egs/wsj0/; . ./path.sh
# Train:
$ train.py -h
# Evaluate performance:
$ evaluate.py -h
# Separate mixture audio:
$ separate.py -h
How to visualize loss?
If you want to visualize your loss, you can use visdom to do that:
- Open a new terminal in your remote server (recommend tmux) and run
$ visdom - Open a new terminal and run
$ bash run.sh --visdom 1 --visdom_id "<any-string>"or$ train.py ... --visdom 1 --vidsdom_id "<any-string>" - Open your browser and type
<your-remote-server-ip>:8097, egs,127.0.0.1:8097 - In visdom website, chose
<any-string>inEnvironmentto see your loss
How to resume training?
$ bash run.sh --continue_from <model-path>
How to use multi-GPU?
Use comma separated gpu-id sequence, such as:
$ bash run.sh --id "0,1"
How to solve out of memory?
- When happened in training, try to reduce
batch_sizeor use more GPU.$ bash run.sh --batch_size <lower-value> - When happened in cross validation, try to reduce
cv_maxlen.$ bash run.sh --cv_maxlen <lower-value>
관련 프로젝트 살펴보기
불러오는 중…