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
50c059c3
Commit
50c059c3
authored
Mar 05, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save only the orthonormal basis
And compute the rescaled basis when loading a model.
parent
4662c59c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
include/eos/morphablemodel/MorphableModel.hpp
include/eos/morphablemodel/MorphableModel.hpp
+1
-1
include/eos/morphablemodel/PcaModel.hpp
include/eos/morphablemodel/PcaModel.hpp
+6
-3
No files found.
include/eos/morphablemodel/MorphableModel.hpp
View file @
50c059c3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* File: include/eos/morphablemodel/MorphableModel.hpp
* File: include/eos/morphablemodel/MorphableModel.hpp
*
*
* Copyright 2014
, 2015
Patrik Huber
* Copyright 2014
-2017
Patrik Huber
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
include/eos/morphablemodel/PcaModel.hpp
View file @
50c059c3
...
@@ -289,9 +289,12 @@ private:
...
@@ -289,9 +289,12 @@ private:
template
<
class
Archive
>
template
<
class
Archive
>
void
serialize
(
Archive
&
archive
)
void
serialize
(
Archive
&
archive
)
{
{
archive
(
CEREAL_NVP
(
mean
),
CEREAL_NVP
(
rescaled_pca_basis
),
CEREAL_NVP
(
orthonormal_pca_basis
),
CEREAL_NVP
(
eigenvalues
),
CEREAL_NVP
(
triangle_list
));
archive
(
CEREAL_NVP
(
mean
),
CEREAL_NVP
(
orthonormal_pca_basis
),
CEREAL_NVP
(
eigenvalues
),
CEREAL_NVP
(
triangle_list
));
// Note: If the files are too big, We could split this in save/load, only
// If we're loading, we have to recompute the rescaled basis, so that it's available (we don't store it anymore):
// store one of the bases, and calculate the other one when loading.
if
(
Archive
::
is_loading
::
value
)
{
rescaled_pca_basis
=
rescale_pca_basis
(
orthonormal_pca_basis
,
eigenvalues
);
}
};
};
};
};
...
...
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