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
5ffddcd4
Commit
5ffddcd4
authored
Apr 03, 2017
by
Philipp Kopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug nnls solving. In some cases the solver just ran forever.
parent
ab432143
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
include/eos/fitting/blendshape_fitting.hpp
include/eos/fitting/blendshape_fitting.hpp
+4
-1
No files found.
include/eos/fitting/blendshape_fitting.hpp
View file @
5ffddcd4
...
@@ -177,7 +177,10 @@ inline std::vector<float> fit_blendshapes_to_landmarks_nnls(const std::vector<eo
...
@@ -177,7 +177,10 @@ inline std::vector<float> fit_blendshapes_to_landmarks_nnls(const std::vector<eo
const
MatrixXf
b
=
P
*
v_bar
-
y
;
// camera matrix times the mean, minus the landmarks
const
MatrixXf
b
=
P
*
v_bar
-
y
;
// camera matrix times the mean, minus the landmarks
// Solve using NNLS:
// Solve using NNLS:
VectorXf
coefficients
;
VectorXf
coefficients
;
bool
non_singular
=
Eigen
::
NNLS
<
MatrixXf
>::
solve
(
A
,
-
b
,
coefficients
);
Eigen
::
NNLS
<
MatrixXf
>
nnls
(
A
,
100
);
//it normaly converges within <10 iterations
bool
non_singular
=
nnls
.
solve
(
-
b
);
coefficients
.
noalias
()
=
nnls
.
x
();
return
std
::
vector
<
float
>
(
coefficients
.
data
(),
coefficients
.
data
()
+
coefficients
.
size
());
return
std
::
vector
<
float
>
(
coefficients
.
data
(),
coefficients
.
data
()
+
coefficients
.
size
());
};
};
...
...
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