-
Notifications
You must be signed in to change notification settings - Fork 1
/
lm_iccr_demo.m
36 lines (31 loc) · 930 Bytes
/
lm_iccr_demo.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
close all
clear
clc
addpath('/user/HS204/m09113/my_project_folder/menpo_challenge/300vw_emax_iccr_lms/iCCR')
load model.mat
load example_params.mat
params.show = 0;
%video = '/user/HS204/m09113/facer2vm_project_area/data/300VW_Dataset_2015_12_14/112/vid.avi';
video_base = '/user/HS204/m09113/facer2vm_project_area/data/300VW_Dataset_2015_12_14/';
videos = dir([video_base '*']);
%length(videos)
%return
for i = 103:124
if videos(i).isdir
if videos(i).name=='.'
continue
end
video = [video_base videos(i).name '/vid.avi'];
disp(video)
try
data = track( model, video, params );
out_path = [video_base videos(i).name '/iccr_lms'];
mkdir(out_path);
out_path = [out_path '/all_lms.mat'];
save(out_path, 'data');
%iSaveX(out_path, data);
%return
catch
end
end
end