Add files via upload

This commit is contained in:
aufr33 2021-04-30 08:45:45 +03:00 committed by GitHub
parent 52963e8747
commit f6d8bb3e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 638 additions and 15 deletions

View File

@ -0,0 +1,253 @@
@echo off
cls
:start
ECHO =======================================
ECHO Multi-Model Processer and Ensembler
ECHO =======================================
ECHO.
ECHO 1. Ensemble 4Band Model Outputs - 44100Hz
ECHO 2. Ensemble 3Band Model Outputs - 44100Hz
ECHO 3. Ensemble 2Band Model Outputs - 32000Hz
ECHO 4. Exit
set choice=
set /p choice=Type the number associated with your choice and hit 'Enter':
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto model1
if '%choice%'=='2' goto model2
if '%choice%'=='3' goto model3
if '%choice%'=='4' goto end
if '%choice%'=='' goto end
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:model1
ECHO MODEL MGM-v5-4Band-44100-BETA1
set model=MGM-v5-4Band-44100-BETA1
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -P models\%model%.pth -t -i %1
ECHO MODEL MGM-v5-4Band-44100-BETA2
set model=MGM-v5-4Band-44100-BETA2
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -P models\%model%.pth -t -i %1
ECHO MODEL HighPrecison_4band_1
set model=HighPrecison_4band_1
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 123821KB -P models\%model%.pth -t -i %1
ECHO MODEL HighPrecison_4band_2
set model=HighPrecison_4band_2
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 123821KB -P models\%model%.pth -t -i %1
ECHO MODEL BigLayer_4band_1
set model=BigLayer_4band_1
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 129605KB -P models\%model%.pth -t -i %1
ECHO MODEL BigLayer_4band_2
set model=BigLayer_4band_2
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 129605KB -P models\%model%.pth -t -i %1
ECHO MODEL BigLayer_4band_3
set model=BigLayer_4band_3
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 129605KB -P models\%model%.pth -t -i %1
ECHO Ensembling Instruments...
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json separated\%~n1_MGM-v5-4Band-44100-BETA1_Instruments.wav separated\%~n1_MGM-v5-4Band-44100-BETA2_Instruments.wav -o ensembled/temp/"1E2E_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json separated\%~n1_HighPrecison_4band_1_Instruments.wav separated\%~n1_HighPrecison_4band_2_Instruments.wav -o ensembled/temp/"3E4E_ensam2"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json separated\%~n1_BigLayer_4band_1_Instruments.wav separated\%~n1_BigLayer_4band_2_Instruments.wav -o ensembled/temp/"5E6E_ensam3"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/temp/"1E2E_ensam1"_v.wav ensembled/temp/"3E4E_ensam2"_v.wav -o ensembled/temp/"1E2E3E4E_ensam4"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/temp/"5E6E_ensam3"_v.wav ensembled/temp/"1E2E3E4E_ensam4"_v.wav -o ensembled/temp/"A6_ensam5"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json separated\%~n1_BigLayer_4band_3_Instruments.wav ensembled/temp/"A6_ensam5"_v.wav -o ensembled/"%~n1_4BAND_Ensembled_Instrumental"
del ensembled\temp\"1E2E_ensam1"_v.wav
del ensembled\temp\"3E4E_ensam2"_v.wav
del ensembled\temp\"5E6E_ensam3"_v.wav
del ensembled\temp\"1E2E3E4E_ensam4"_v.wav
del ensembled\temp\"A6_ensam5"_v.wav
ECHO Ensembling Vocals...
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json separated\%~n1_MGM-v5-4Band-44100-BETA1_Vocals.wav separated\%~n1_MGM-v5-4Band-44100-BETA2_Vocals.wav -o ensembled/temp/"1EV2EV_ensam1"
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json separated\%~n1_HighPrecison_4band_1_Vocals.wav separated\%~n1_HighPrecison_4band_2_Vocals.wav -o ensembled/temp/"3EV4EV_ensam2"
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json separated\%~n1_BigLayer_4band_1_Vocals.wav separated\%~n1_BigLayer_4band_2_Vocals.wav -o ensembled/temp/"5EV6EV_ensam3"
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json ensembled/temp/"1EV2EV_ensam1"_v.wav ensembled/temp/"3EV4EV_ensam2"_v.wav -o ensembled/temp/"1EV2EV3EV4EV_ensam4"
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json ensembled/temp/"5EV6EV_ensam3"_v.wav ensembled/temp/"1EV2EV3EV4EV_ensam4"_v.wav -o ensembled/temp/"A6V_ensam5"
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json separated\%~n1_BigLayer_4band_3_Vocals.wav ensembled/temp/"A6V_ensam5"_v.wav -o ensembled/"%~n1_4BAND_Ensembled_Vocals"
del ensembled\temp\"1EV2EV_ensam1"_v.wav
del ensembled\temp\"3EV4EV_ensam2"_v.wav
del ensembled\temp\"5EV6EV_ensam3"_v.wav
del ensembled\temp\"1EV2EV3EV4EV_ensam4"_v.wav
del ensembled\temp\"A6V_ensam5"_v.wav
set choice=
set /p choice=Delete Individual Model Outputs? [Y/N]:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='Y' goto delete
if '%choice%'=='y' goto delete
if '%choice%'=='N' goto keep
if '%choice%'=='n' goto keep
if '%choice%'=='' goto keep
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:delete
del separated\%~n1_MGM-v5-4Band-44100-BETA1_Instruments.wav
del separated\%~n1_MGM-v5-4Band-44100-BETA2_Instruments.wav
del separated\%~n1_HighPrecison_4band_1_Instruments.wav
del separated\%~n1_HighPrecison_4band_2_Instruments.wav
del separated\%~n1_BigLayer_4band_1_Instruments.wav
del separated\%~n1_BigLayer_4band_2_Instruments.wav
del separated\%~n1_BigLayer_4band_3_Instruments.wav
del separated\%~n1_MGM-v5-4Band-44100-BETA1_Vocals.wav
del separated\%~n1_MGM-v5-4Band-44100-BETA2_Vocals.wav
del separated\%~n1_HighPrecison_4band_1_Vocals.wav
del separated\%~n1_HighPrecison_4band_2_Vocals.wav
del separated\%~n1_BigLayer_4band_1_Vocals.wav
del separated\%~n1_BigLayer_4band_2_Vocals.wav
del separated\%~n1_BigLayer_4band_3_Vocals.wav
ECHO Complete!
goto start
:keep
ECHO Complete!
goto end
:model2
ECHO MODEL MGM-v5-MIDSIDE-44100-BETA1
set model=MGM-v5-MIDSIDE-44100-BETA1
cd /d %~dp0
python inference.py -g 0 -m modelparams\3band_44100.json -w 352 -P models\%model%.pth -t -i %1
ECHO MODEL MGM-v5-MIDSIDE-44100-BETA2
set model=MGM-v5-MIDSIDE-44100-BETA2
cd /d %~dp0
python inference.py -g 0 -m modelparams\3band_44100.json -w 352 -P models\%model%.pth -t -i %1
ECHO MODEL MGM-v5-3Band-44100-BETA
set model=MGM-v5-3Band-44100-BETA
cd /d %~dp0
python inference.py -g 0 -m modelparams\3band_44100.json -w 352 -P models\%model%.pth -t -i %1
ECHO Ensembling Instruments...
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json separated\%~n1_MGM-v5-MIDSIDE-44100-BETA1_Instruments.wav separated\%~n1_MGM-v5-MIDSIDE-44100-BETA2_Instruments.wav -o ensembled/temp/"1E2E_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json separated\%~n1_MGM-v5-3Band-44100-BETA_Instruments.wav ensembled/temp/"1E2E_ensam1"_v.wav -o ensembled/"%~n1_3BAND_Ensembled_Instrumental"
del ensembled\temp\"1E2E_ensam1"_v.wav
ECHO Ensembling Vocals...
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json separated\%~n1_MGM-v5-MIDSIDE-44100-BETA1_Vocals.wav separated\%~n1_MGM-v5-MIDSIDE-44100-BETA2_Vocals.wav -o ensembled/temp/"1EV2EV_ensam1"
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json separated\%~n1_MGM-v5-3Band-44100-BETA_Vocals.wav ensembled/temp/"1EV2EV_ensam1"_v.wav -o ensembled/"%~n1_3BAND_Ensembled_Vocals"
del ensembled\temp\"1EV2EV_ensam1"_v.wav
set choice=
set /p choice=Delete Individual Model Outputs? [Y/N]:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='Y' goto delete
if '%choice%'=='y' goto delete
if '%choice%'=='N' goto keep
if '%choice%'=='n' goto keep
if '%choice%'=='' goto keep
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:delete
del separated\%~n1_MGM-v5-MIDSIDE-44100-BETA1_Instruments.wav
del separated\%~n1_MGM-v5-MIDSIDE-44100-BETA2_Instruments.wav
del separated\%~n1_MGM-v5-3Band-44100-BETA_Instruments.wav
del separated\%~n1_MGM-v5-MIDSIDE-44100-BETA1_Vocals.wav
del separated\%~n1_MGM-v5-MIDSIDE-44100-BETA2_Vocals.wav
del separated\%~n1_MGM-v5-3Band-44100-BETA_Vocals.wav
ECHO Complete!
goto start
:keep
ECHO Complete!
goto end
:model3
ECHO MODEL MGM-v5-2Band-32000-BETA1
set model=MGM-v5-2Band-32000-BETA1
cd /d %~dp0
python inference.py -g 0 -m modelparams\2band_32000.json -w 352 -P models\%model%.pth -t -i %1
ECHO MODEL MGM-v5-2Band-32000-BETA2
set model=MGM-v5-2Band-32000-BETA2
cd /d %~dp0
python inference.py -g 0 -m modelparams\2band_32000.json -w 352 -P models\%model%.pth -t -i %1
ECHO Ensembling Instruments...
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json separated\%~n1_MGM-v5-2Band-32000-BETA1_Instruments.wav separated\%~n1_MGM-v5-2Band-32000-BETA2_Instruments.wav -o ensembled/"%~n1_2BAND_Ensembled_Instrumental"
ECHO Ensembling Vocals...
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json separated\%~n1_MGM-v5-2Band-32000-BETA1_Vocals.wav separated\%~n1_MGM-v5-2Band-32000-BETA2_Vocals.wav -o ensembled/"%~n1_2BAND_Ensembled_Vocals"
set choice=
set /p choice=Delete Individual Model Outputs? [Y/N]:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='Y' goto delete
if '%choice%'=='y' goto delete
if '%choice%'=='N' goto keep
if '%choice%'=='n' goto keep
if '%choice%'=='' goto keep
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:delete
del separated\%~n1_MGM-v5-2Band-32000-BETA1_Instruments.wav
del separated\%~n1_MGM-v5-2Band-32000-BETA2_Instruments.wav
del separated\%~n1_MGM-v5-2Band-32000-BETA1_Vocals.wav
del separated\%~n1_MGM-v5-2Band-32000-BETA2_Vocals.wav
ECHO Complete!
goto start
:keep
ECHO Complete!
goto end
:end

View File

@ -12,8 +12,14 @@ ECHO 6. MGM-v5-KAROKEE-32000-BETA1
ECHO 7. MGM-v5-KAROKEE-32000-BETA2-AGR
ECHO 8. MGM-v5-MIDSIDE-44100-BETA1
ECHO 9. MGM-v5-MIDSIDE-44100-BETA2
ECHO 10. MGM-v5-Vocal_2Band-32000-BETA1
ECHO 11. MGM-v5-Vocal_2Band-32000-BETA2
ECHO a. MGM-v5-Vocal_2Band-32000-BETA1
ECHO b. MGM-v5-Vocal_2Band-32000-BETA2
ECHO c. LOFI_2band_iter5_2
ECHO d. HighPrecison_4band_1
ECHO e. HighPrecison_4band_2
ECHO f. BigLayer_4band_1.pth
ECHO g. BigLayer_4band_2.pth
ECHO h. BigLayer_4band_3.pth
set choice=
set /p choice=Type the number associated with the model you would like to run and hit 'Enter':
if not '%choice%'=='' set choice=%choice:~0,1%
@ -26,8 +32,14 @@ if '%choice%'=='6' goto model6
if '%choice%'=='7' goto model7
if '%choice%'=='8' goto model8
if '%choice%'=='9' goto model9
if '%choice%'=='10' goto model10
if '%choice%'=='11' goto model11
if '%choice%'=='a' goto model10
if '%choice%'=='b' goto model11
if '%choice%'=='c' goto model12
if '%choice%'=='d' goto model13
if '%choice%'=='e' goto model14
if '%choice%'=='f' goto model15
if '%choice%'=='g' goto model16
if '%choice%'=='h' goto model17
ECHO "%choice%" is not valid, try again
ECHO.
goto start
@ -36,77 +48,119 @@ ECHO
set model=MGM-v5-2Band-32000-BETA1
cd /d %~dp0
python inference.py -g 0 -m 2band_32000.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\2band_32000.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model2
ECHO
set model=MGM-v5-2Band-32000-BETA2
cd /d %~dp0
python inference.py -g 0 -m 2band_32000.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\2band_32000.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model3
ECHO
set model=MGM-v5-3Band-44100-BETA
cd /d %~dp0
python inference.py -g 0 -m 3band_44100.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\3band_44100.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model4
ECHO
set model=MGM-v5-4Band-44100-BETA1
cd /d %~dp0
python inference.py -g 0 -m 4band_44100.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model5
ECHO
set model=MGM-v5-4Band-44100-BETA2
cd /d %~dp0
python inference.py -g 0 -m 4band_44100.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model6
ECHO
set model=MGM-v5-KAROKEE-32000-BETA1
cd /d %~dp0
python inference.py -g 0 -m 2band_32000.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\2band_32000.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model7
ECHO
set model=MGM-v5-KAROKEE-32000-BETA2-AGR
cd /d %~dp0
python inference.py -g 0 -m 2band_32000.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\2band_32000.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model8
ECHO
set model=MGM-v5-MIDSIDE-44100-BETA1
cd /d %~dp0
python inference.py -g 0 -m 3band_44100_mid.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\3band_44100_mid.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model9
ECHO
set model=MGM-v5-MIDSIDE-44100-BETA2
cd /d %~dp0
python inference.py -g 0 -m 3band_44100_mid.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\3band_44100_mid.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model10
ECHO
set model=MGM-v5-Vocal_2Band-32000-BETA1
cd /d %~dp0
python inference.py -g 0 -m 2band_32000.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\2band_32000.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model11
ECHO
set model=MGM-v5-Vocal_2Band-32000-BETA2
cd /d %~dp0
python inference.py -g 0 -m 2band_32000.json -w 352 -P models\%model%.pth -t -i %1
python inference.py -g 0 -m modelparams\2band_32000.json -w 352 -P models\%model%.pth -t -i %1
goto end
:model12
ECHO
set model=LOFI_2band_iter5_2
cd /d %~dp0
python inference.py -g 0 -m modelparams\2band_44100_lofi.json -w 352 -n 33966KB -P models\%model%.pth -t -i %1
goto end
:model13
ECHO
set model=HighPrecison_4band_1
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 123821KB -P models\%model%.pth -t -i %1
goto end
:model14
ECHO
set model=HighPrecison_4band_2
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 123821KB -P models\%model%.pth -t -i %1
goto end
:model15
ECHO
set model=BigLayer_4band_1
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 129605KB -P models\%model%.pth -t -i %1
goto end
:model16
ECHO
set model=BigLayer_4band_2
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 129605KB -P models\%model%.pth -t -i %1
goto end
:model17
ECHO
set model=BigLayer_4band_3
cd /d %~dp0
python inference.py -g 0 -m modelparams\4band_44100.json -w 352 -n 129605KB -P models\%model%.pth -t -i %1
goto end
:end
pause

View File

@ -0,0 +1,140 @@
@echo off
cls
:start
ECHO.
ECHO 1. Ensembler Minimum - 1band_sr44100_hl512
ECHO 2. Ensembler Minimum - 1band_sr32000_hl512
ECHO 3. Ensembler Minimum - 2band_32000
ECHO 4. Ensembler Minimum - 3band_44100
ECHO 5. Ensembler Minimum - 3band_44100_mid
ECHO 6. Ensembler Minimum - 4band_44100
ECHO 7. Ensembler Minimum - 2band_44100_lofi
ECHO 8. Ensembler Maxmimum - 1band_sr44100_hl512
ECHO 9. Ensembler Maxmimum - 1band_sr32000_hl512
ECHO a. Ensembler Maxmimum - 2band_32000
ECHO b. Ensembler Maxmimum - 3band_44100
ECHO c. Ensembler Maxmimum - 3band_44100_mid
ECHO d. Ensembler Maxmimum - 4band_44100
ECHO e. Ensembler Maxmimum - 2band_44100_lofi
set choice=
set /p choice=Type the number associated with the option you would like to run and hit 'Enter':
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto ensem1
if '%choice%'=='2' goto ensem2
if '%choice%'=='3' goto ensem3
if '%choice%'=='4' goto ensem4
if '%choice%'=='5' goto ensem5
if '%choice%'=='6' goto ensem6
if '%choice%'=='7' goto ensem7
if '%choice%'=='8' goto ensem8
if '%choice%'=='9' goto ensem9
if '%choice%'=='a' goto ensem10
if '%choice%'=='b' goto ensem11
if '%choice%'=='c' goto ensem12
if '%choice%'=='d' goto ensem13
if '%choice%'=='e' goto ensem14
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:ensem1
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_min_1band_sr44100_hl512"
goto end
:ensem2
ECHO
set modelparam=1band_sr32000_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_min_1band_sr32000_hl512"
goto end
:ensem3
ECHO
set modelparam=2band_32000
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_min_2band_32000"
goto end
:ensem4
ECHO
set modelparam=3band_44100
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_min_3band_44100"
goto end
:ensem5
ECHO
set modelparam=3band_44100_mid
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_min_3band_44100_mid"
goto end
:ensem6
ECHO
set modelparam=4band_44100
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_min_4band_44100"
goto end
:ensem7
ECHO
set modelparam=2band_44100_lofi
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_max_2band_44100_lofi"
goto end
:ensem8
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_max_1band_sr44100_hl512"
goto end
:ensem9
ECHO
set modelparam=1band_sr32000_hl512
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_max_1band_sr32000_hl512"
goto end
:ensem10
ECHO
set modelparam=2band_32000
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_max_2band_32000"
goto end
:ensem11
ECHO
set modelparam=3band_44100
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_max_3band_44100"
goto end
:ensem12
ECHO
set modelparam=3band_44100_mid
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_max_3band_44100_mid"
goto end
:ensem13
ECHO
set modelparam=4band_44100
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_max_4band_44100"
goto end
:ensem14
ECHO
set modelparam=2band_44100_lofi
cd /d %~dp0
python lib/spec_utils.py -a max_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_max_2band_44100_lofi"
goto end
:end
pause

View File

@ -0,0 +1,176 @@
@echo off
cls
:start
ECHO.
ECHO 2. Enter if two audio files were dropped.
ECHO 3. Enter if three audio files were dropped.
ECHO 4. Enter if four audio files were dropped.
ECHO 5. Enter if five audio files were dropped.
ECHO 6. Enter if six audio files were dropped.
ECHO 7. Enter if seven audio files were dropped.
ECHO 8. Enter if eight audio files were dropped.
ECHO 9. Enter if nine audio files were dropped.
set choice=
set /p choice=Please enter the number of files you are processing:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='2' goto ensem2
if '%choice%'=='3' goto ensem3
if '%choice%'=='4' goto ensem4
if '%choice%'=='5' goto ensem5
if '%choice%'=='6' goto ensem6
if '%choice%'=='7' goto ensem7
if '%choice%'=='8' goto ensem8
if '%choice%'=='9' goto ensem9
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:ensem2
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensamb_min_1band_sr44100_hl512"
goto end
:ensem3
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %3 ensembled/"%~n1_ensam1"_v.wav -o ensembled/"%~n1_Final_Ensemb_3"
del ensembled\"%~n1_ensam1"_v.wav
goto end
:ensem4
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %3 %4 -o ensembled/"%~n3_ensam2"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n1_ensam1"_v.wav ensembled/"%~n3_ensam2"_v.wav -o ensembled/"%~n1_Final_Ensemb_4"
del ensembled\"%~n1_ensam1"_v.wav
del ensembled\"%~n3_ensam2"_v.wav
goto end
:ensem5
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %3 %4 -o ensembled/"%~n3_ensam2"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n1_ensam1"_v.wav ensembled/"%~n3_ensam2"_v.wav -o ensembled/"%~n1_ensam3"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %5 ensembled/"%~n1_ensam3"_v.wav -o ensembled/"%~n1_Final_Ensemb_5"
del ensembled\"%~n1_ensam1"_v.wav
del ensembled\"%~n3_ensam2"_v.wav
del ensembled\"%~n1_ensam3"_v.wav
goto end
:ensem6
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %3 %4 -o ensembled/"%~n3_ensam2"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %5 %6 -o ensembled/"%~n5_ensam3"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n1_ensam1"_v.wav ensembled/"%~n3_ensam2"_v.wav -o ensembled/"%~n1_ensam4"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n5_ensam3"_v.wav ensembled/"%~n1_ensam4"_v.wav -o ensembled/"%~n1_Final_Ensemb_6"
del ensembled\"%~n1_ensam1"_v.wav
del ensembled\"%~n3_ensam2"_v.wav
del ensembled\"%~n5_ensam3"_v.wav
del ensembled\"%~n1_ensam4"_v.wav
goto end
:ensem7
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %3 %4 -o ensembled/"%~n3_ensam2"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %5 %6 -o ensembled/"%~n5_ensam3"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n1_ensam1"_v.wav ensembled/"%~n3_ensam2"_v.wav -o ensembled/"%~n1_ensam4"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n5_ensam3"_v.wav ensembled/"%~n1_ensam4"_v.wav -o ensembled/"%~n1_ensam5"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %7 ensembled/"%~n1_ensam5"_v.wav -o ensembled/"%~n1_Final_Ensemb_7"
del ensembled\"%~n1_ensam1"_v.wav
del ensembled\"%~n3_ensam2"_v.wav
del ensembled\"%~n1_ensam4"_v.wav
del ensembled\"%~n5_ensam3"_v.wav
del ensembled\"%~n1_ensam5"_v.wav
goto end
:ensem8
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %3 %4 -o ensembled/"%~n3_ensam2"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %5 %6 -o ensembled/"%~n5_ensam3"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %7 %8 -o ensembled/"%~n7_ensam4"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n1_ensam1"_v.wav ensembled/"%~n3_ensam2"_v.wav -o ensembled/"%~n1_ensam12"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n5_ensam3"_v.wav ensembled/"%~n7_ensam4"_v.wav -o ensembled/"%~n1_ensam34"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n1_ensam12"_v.wav ensembled/"%~n1_ensam34"_v.wav -o ensembled/"%~n1_Final_Ensemb_8"
del ensembled\"%~n1_ensam1"_v.wav
del ensembled\"%~n3_ensam2"_v.wav
del ensembled\"%~n5_ensam3"_v.wav
del ensembled\"%~n7_ensam4"_v.wav
del ensembled\"%~n1_ensam12"_v.wav
del ensembled\"%~n1_ensam34"_v.wav
goto end
:ensem9
ECHO
set modelparam=1band_sr44100_hl512
cd /d %~dp0
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %1 %2 -o ensembled/"%~n1_ensam1"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %3 %4 -o ensembled/"%~n3_ensam2"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %5 %6 -o ensembled/"%~n5_ensam3"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %7 %8 -o ensembled/"%~n7_ensam4"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n1_ensam1"_v.wav ensembled/"%~n3_ensam2"_v.wav -o ensembled/"%~n1_ensam12"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n5_ensam3"_v.wav ensembled/"%~n7_ensam4"_v.wav -o ensembled/"%~n1_ensam34"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json ensembled/"%~n1_ensam12"_v.wav ensembled/"%~n1_ensam34"_v.wav -o ensembled/"%~n1_ensam1234"
python lib/spec_utils.py -a min_mag -m modelparams\%modelparam%.json %9 ensembled/"%~n1_ensam1234"_v.wav -o ensembled/"%~n1_Final_Ensemb_9"
del ensembled\"%~n1_ensam1"_v.wav
del ensembled\"%~n3_ensam2"_v.wav
del ensembled\"%~n5_ensam3"_v.wav
del ensembled\"%~n7_ensam4"_v.wav
del ensembled\"%~n1_ensam12"_v.wav
del ensembled\"%~n1_ensam34"_v.wav
del ensembled\"%~n1_ensam1234"_v.wav
goto end
:end
pause