-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfile_to_run.m
71 lines (58 loc) · 1.56 KB
/
file_to_run.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
%%
clc;
clear all;
close all;
warning off all
%% ----------------------------------------------------------------------------------------------------
addpath BM3D_images/
addpath images/
addpath output/
addpath results/
addpath train/
addpath utility/
addpath val/
addpath layers/
addpath layers_adapters/
addpath mem/
addpath optimization/
addpath pipeline/
addpath utils/
%% -------------
repeat=1;
while (repeat==1) % to keep the application running until you do not press exit as until value of repeat is 1
% in the exit case value is reset to 0 when the program takes an exit
choice=menu('Denoising project ',...
'LOAD IMAGE DIRECTORY AND CREATE PATCH ','Generate training data and validate ',...
'TRAIN INTO MODEL ','DENOISE','Exit');
% creatiing menu bar
switch choice % depending on choice each program executes the files related to the work are
% present in all the case which will be the main files
case 1
main_switch_UI % double click on train databse file in current folder inside which change the path
case 2
training_d;
pause(0.0001)
gen_val_data;
% similar as above
disp('done')
case 3
%display_global.m
train_d
disp('Done training')
pause(0.001)
erification
disp('Verifiaction done')
%disp('done')
case 4
test_dem
case 5
clc
clear all
close all
repeat=0;
end
fprintf('\n')
%display('THIS IS THE PROCESS TIME FOR CODE')
% toc;
fprintf('\n')
end