-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdemo2.m
63 lines (41 loc) · 1.55 KB
/
demo2.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
% demo: faust 1st person
%
clear; restoredefaultpath
addpath(genpath('./code'))
addpath(genpath('./eval'))
%% choose shape collection
% For the 1st FAUST person we provide the original *.ply and the corresponding
% preprocessed *.mat files used in our pipeline for demo purpose.
% To experiment with other shape collections, please download the original
% FAUST dataset, and adapt params.dataPreparation.datapath_orig.
datasetname = 'faust';
dataname = '0'; % {'0' - '9'}
params.dataPreparation.datapath_orig = './data/faust/ply_orig'; %'<ROOT_TO_FAUST_PLY_FILES>';
%% safe to ignore
params.verbose = 2;
params.isomush.maxIter = 1e2;
numFace = 2e3;
dimLB = 1e2;
%% do not touch
params.rootpath = pwd;
params.datasetname = datasetname;
params.dataname = dataname;
params.dataPreparation.dimLB = dimLB;
params.dataPreparation.numFace = numFace;
params.dataPreparation.datapath_mat = fullfile(params.rootpath, 'data', datasetname, 'mat_orig');
%%
% load dataset
fprintf('loading (%s, %s)... \n', datasetname, dataname);
data = load_dataset(params);
% initialisation
% -- ZoomOut --
fprintf('\nInitialisation...\n')
fprintf('\n1) Running ZoomOut for all pairs on (%s, %s)... \n', datasetname, dataname);
[C, C_map, time_zoomout] = zoomout_wrapper(data, params);
% -- Synchronisation --
fprintf('\n2) Synchronising pairwise results on (%s, %s)... \n', datasetname, dataname);
[U, Q] = synchronisation(C, data, params);
% IsoMush
fprintf('\nStarting IsoMuSh...\n')
fprintf('\nRunning IsoMuSh on (%s, %s)... \n', datasetname, dataname);
[U, Q] = isomush(U, Q, data, params);