Commit 5febabcc authored by Patrik Huber's avatar Patrik Huber

Added save_model python bindings

parent d8d4ea00
...@@ -82,6 +82,7 @@ PYBIND11_PLUGIN(eos) { ...@@ -82,6 +82,7 @@ PYBIND11_PLUGIN(eos) {
* - PcaModel * - PcaModel
* - MorphableModel * - MorphableModel
* - load_model() * - load_model()
* - save_model()
*/ */
py::module morphablemodel_module = eos_module.def_submodule("morphablemodel", "Functionality to represent a Morphable Model, its PCA models, and functions to load models and blendshapes."); py::module morphablemodel_module = eos_module.def_submodule("morphablemodel", "Functionality to represent a Morphable Model, its PCA models, and functions to load models and blendshapes.");
...@@ -100,6 +101,7 @@ PYBIND11_PLUGIN(eos) { ...@@ -100,6 +101,7 @@ PYBIND11_PLUGIN(eos) {
; ;
morphablemodel_module.def("load_model", &morphablemodel::load_model, "Load a Morphable Model from a cereal::BinaryInputArchive (.bin) from the harddisk.", py::arg("filename")); morphablemodel_module.def("load_model", &morphablemodel::load_model, "Load a Morphable Model from a cereal::BinaryInputArchive (.bin) from the harddisk.", py::arg("filename"));
morphablemodel_module.def("save_model", &morphablemodel::save_model, "Save a Morphable Model as cereal::BinaryOutputArchive.", py::arg("model"), py::arg("filename"));
/** /**
* - Blendshape * - Blendshape
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment