Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
f86ba089
Commit
f86ba089
authored
Mar 08, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated filename ibug_to_sfm in Python and Matlab examples
parent
b66086fd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
matlab/+eos/+fitting/fit_shape_and_pose.m
matlab/+eos/+fitting/fit_shape_and_pose.m
+1
-1
matlab/demo.m
matlab/demo.m
+1
-1
python/demo.py
python/demo.py
+2
-2
No files found.
matlab/+eos/+fitting/fit_shape_and_pose.m
View file @
f86ba089
...
@@ -33,7 +33,7 @@ end
...
@@ -33,7 +33,7 @@ end
% We'll use default values to the following arguments, if they're not
% We'll use default values to the following arguments, if they're not
% provided:
% provided:
if
(
~
exist
(
'edge_topology'
,
'var'
)),
edge_topology
=
'../share/sfm_3448_edge_topology.json'
;
end
if
(
~
exist
(
'edge_topology'
,
'var'
)),
edge_topology
=
'../share/sfm_3448_edge_topology.json'
;
end
if
(
~
exist
(
'contour_landmarks'
,
'var'
)),
contour_landmarks
=
'../share/ibug
2did
.txt'
;
end
if
(
~
exist
(
'contour_landmarks'
,
'var'
)),
contour_landmarks
=
'../share/ibug
_to_sfm
.txt'
;
end
if
(
~
exist
(
'model_contour'
,
'var'
)),
model_contour
=
'../share/model_contours.json'
;
end
if
(
~
exist
(
'model_contour'
,
'var'
)),
model_contour
=
'../share/model_contours.json'
;
end
if
(
~
exist
(
'num_iterations'
,
'var'
)),
num_iterations
=
5
;
end
if
(
~
exist
(
'num_iterations'
,
'var'
)),
num_iterations
=
5
;
end
if
(
~
exist
(
'num_shape_coefficients_to_fit'
,
'var'
)),
num_shape_coefficients_to_fit
=
-
1
;
end
if
(
~
exist
(
'num_shape_coefficients_to_fit'
,
'var'
)),
num_shape_coefficients_to_fit
=
-
1
;
end
...
...
matlab/demo.m
View file @
f86ba089
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
%% Set up some required paths to files:
%% Set up some required paths to files:
model_file
=
'../share/sfm_shape_3448.bin'
;
model_file
=
'../share/sfm_shape_3448.bin'
;
blendshapes_file
=
'../share/expression_blendshapes_3448.bin'
;
blendshapes_file
=
'../share/expression_blendshapes_3448.bin'
;
landmark_mappings
=
'../share/ibug
2did
.txt'
;
landmark_mappings
=
'../share/ibug
_to_sfm
.txt'
;
%% Load an image and its landmarks in ibug format:
%% Load an image and its landmarks in ibug format:
image
=
imread
(
'../bin/data/image_0010.png'
);
image
=
imread
(
'../bin/data/image_0010.png'
);
...
...
python/demo.py
View file @
f86ba089
...
@@ -10,9 +10,9 @@ def main():
...
@@ -10,9 +10,9 @@ def main():
model
=
eos
.
morphablemodel
.
load_model
(
"../share/sfm_shape_3448.bin"
)
model
=
eos
.
morphablemodel
.
load_model
(
"../share/sfm_shape_3448.bin"
)
blendshapes
=
eos
.
morphablemodel
.
load_blendshapes
(
"../share/expression_blendshapes_3448.bin"
)
blendshapes
=
eos
.
morphablemodel
.
load_blendshapes
(
"../share/expression_blendshapes_3448.bin"
)
landmark_mapper
=
eos
.
core
.
LandmarkMapper
(
'../share/ibug
2did
.txt'
)
landmark_mapper
=
eos
.
core
.
LandmarkMapper
(
'../share/ibug
_to_sfm
.txt'
)
edge_topology
=
eos
.
morphablemodel
.
load_edge_topology
(
'../share/sfm_3448_edge_topology.json'
)
edge_topology
=
eos
.
morphablemodel
.
load_edge_topology
(
'../share/sfm_3448_edge_topology.json'
)
contour_landmarks
=
eos
.
fitting
.
ContourLandmarks
.
load
(
'../share/ibug
2did
.txt'
)
contour_landmarks
=
eos
.
fitting
.
ContourLandmarks
.
load
(
'../share/ibug
_to_sfm
.txt'
)
model_contour
=
eos
.
fitting
.
ModelContour
.
load
(
'../share/model_contours.json'
)
model_contour
=
eos
.
fitting
.
ModelContour
.
load
(
'../share/model_contours.json'
)
(
mesh
,
pose
,
shape_coeffs
,
blendshape_coeffs
)
=
eos
.
fitting
.
fit_shape_and_pose
(
model
,
blendshapes
,
(
mesh
,
pose
,
shape_coeffs
,
blendshape_coeffs
)
=
eos
.
fitting
.
fit_shape_and_pose
(
model
,
blendshapes
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment