forked from IIEleven11/Automatic-Audio-Dataset-Maker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
21 lines (12 loc) · 1.09 KB
/
test.py
File metadata and controls
21 lines (12 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import subprocess
import os
local_dir ="./Automatic-Audio-Dataset-Maker/tools/denoiser/Mel-Band-Roformer-Vocal-Model"
def main():
download_cmd = "huggingface-cli download KimberleyJSN/melbandroformer --local-dir /workspace/Automatic-Audio-Dataset-Maker/tools/denoiser/Mel-Band-Roformer-Vocal-Model"
subprocess.run(download_cmd, shell=True, check=True)
if not os.path.exists("DENOISED"):
os.makedirs("DENOISED")
inference_cmd = "python /workspace/Automatic-Audio-Dataset-Maker/tools/denoiser/Mel-Band-Roformer-Vocal-Model/inference.py --config_path /workspace/Automatic-Audio-Dataset-Maker/tools/denoiser/Mel-Band-Roformer-Vocal-Model/configs/config_vocals_mel_band_roformer.yaml --model_path /home/eleven/__REPOS__/cormier_female_1/Automatic-Audio-Dataset-Maker/tools/denoiser/Mel-Band-Roformer-Vocal-Model/models/mel_band_roformer/MelBandRoformer.ckpt --input_folder /workspace/Automatic-Audio-Dataset-Maker/RAW_AUDIO --store_dir /workspace/Automatic-Audio-Dataset-Maker/RAW_AUDIO1"
subprocess.run(inference_cmd, shell=True, check=True)
if __name__ == "__main__":
main()