-
Notifications
You must be signed in to change notification settings - Fork 10
/
run_test.m
35 lines (26 loc) · 1014 Bytes
/
run_test.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function run_test_single_model
tStart = tic;
% Dependencies
addpath(['codes']);
addpath(['tools', filesep,'bss_eval_3']);
addpath(['tools', filesep,'labrosa']);
addpath(['codes', filesep,'mir1k']);
% Load model
%name_model='VOICE_model_1960';
name_model='model_400';
ModelPath=['models/1st Models', filesep, name_model,'.mat'];
load([ModelPath]);
% Waves path?
dataset_name='TestVocals';
eI.DataPath=['../', 'waves', filesep, dataset_name];
% Save audios?
eI.writewav=0;
eI.saveDir = ['resultWaves/',name_model,'_',dataset_name,'_'];
fprintf('-------\n \nMODEL: %s \n',ModelPath);
[targets,Target_ObjectiveMeasures,Other_ObjectiveMeasures] = test_mir1k_general_kl_bss3(eI.modelname, theta, eI, 'testall', info.iteration);
tEnd = toc(tStart);
fprintf('%d minutes and %f seconds\n',floor(tEnd/60),rem(tEnd,60));
Target_ObjectiveMeasures
Other_ObjectiveMeasures
fprintf('-------\n');
end