-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_video_list.m
30 lines (24 loc) · 1.32 KB
/
generate_video_list.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
function generate_video_list()
dataset_dir = '/Users/vunh/Documents/SBU/CourseWork/CSE512 - Machine Learning/Project/code/dataset/SegTrackv2/PNG_Std';
files = dir(dataset_dir);
dirFlags = [files.isdir]
files = files(dirFlags);
files = {files.name};
index = 1;
for i = 1:length(files)
filename = files{i};
if ((strcmp(filename, '.') == 1) || (strcmp(filename, '..') == 1))
continue;
end
video_list(index).video_name = filename;
video_list(index).ext = '.png';
video_list(index).dataset_dir = dataset_dir;
video_list(index).superpixel_dir = '/Users/vunh/Documents/SBU/CourseWork/CSE512 - Machine Learning/Project/code/output/superpixel_SegTrack_v2';
video_list(index).opticalflow_dir = '/Users/vunh/Documents/SBU/CourseWork/CSE512 - Machine Learning/Project/code/output/opticalflow_SegTrack_v2';
video_list(index).working_dir = '/Users/vunh/Documents/SBU/CourseWork/CSE512 - Machine Learning/Project/code/output/working_dir';
video_list(index).svr_model_path = '/Users/vunh/Documents/SBU/CourseWork/CSE512 - Machine Learning/Project/code/output/svr_model_vsb100/SVR_C10.000_G0.500.mat';
video_list(index).result_dir = '/Users/vunh/Documents/SBU/CourseWork/CSE512 - Machine Learning/Project/code/output/method_results';
index = index + 1;
end
save('video_list.mat', 'video_list');
end