Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
py-3d-face-reconstruction
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
py-3d-face-reconstruction
Commits
d99c5f0e
Commit
d99c5f0e
authored
Nov 24, 2016
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pybind11 instead of c headers
parent
292bf39b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
181 deletions
+47
-181
Dockerfile
Dockerfile
+6
-0
makefile
makefile
+21
-1
src/reconstruction/fit-model.cpp
src/reconstruction/fit-model.cpp
+18
-177
src/test/reconstruction_test.py
src/test/reconstruction_test.py
+2
-3
No files found.
Dockerfile
View file @
d99c5f0e
...
...
@@ -32,6 +32,12 @@ RUN cmake ../ \
-DPYTHON_EXECUTABLE
=
/usr/bin/python
RUN
make
&&
make
install
ENV
PYTHONPATH=/usr/local/eos/bin/:$PYTHONPATH
WORKDIR
/libs
RUN
git clone https://github.com/pybind/pybind11.git
RUN
(
cd
pybind11
;
mkdir
build
;
cd
build
;
cmake
-DPYBIND11_PYTHON_VERSION
=
2.7 ..
)
;
RUN
(
cd
pybind11/build
;
make
-j4
&&
make
install
)
;
WORKDIR
/src
makefile
View file @
d99c5f0e
...
...
@@ -44,5 +44,25 @@ $(SITE_PACKAGES)/cv%:
@
ls
$@
#src/reconstruction/fit.so: src/reconstruction/fit-model.cpp
# $(BASE_DOCKER_CMD) /bin/bash -c '(cd reconstruction; python setup.py build_ext --inplace)'
src/reconstruction/fit.so
:
src/reconstruction/fit-model.cpp
$(BASE_DOCKER_CMD)
/bin/bash
-c
'(cd reconstruction; python setup.py build_ext --inplace)'
$(BASE_DOCKER_CMD)
/bin/bash
-c
\
'(cd reconstruction; \
g++ -fPIC -O3 -shared -std=c++11 \
-I/usr/local/include/pybind11/include/ \
-I/usr/local/eos/include/ \
-I/usr/local/eos/3rdparty/glm/ \
-I/usr/local/eos/3rdparty/cereal-1.1.1/include/ \
-I/usr/local/include/opencv2/ \
-I/usr/include/boost/ \
-L/usr/local/eos/bin/ \
-L/usr/lib/x86_64-linux-gnu/ \
-L/usr/local/lib/ \
-lboost_program_options \
-lfile_system \
-lopencv_world \
`python-config --cflags --ldflags` \
$(
notdir
$^
)
-o
$(
notdir
$@
)
\
)'
src/reconstruction/fit-model.cpp
View file @
d99c5f0e
This diff is collapsed.
Click to expand it.
src/test/reconstruction_test.py
View file @
d99c5f0e
...
...
@@ -49,8 +49,7 @@ def fit_model():
input_points
=
dataset_module
.
factory
(
filename
=
image_filename
)
input_image
=
input_points
.
get_image
()
fit
.
fit_model
(
image
)
print
(
fit
.
add
(
1
,
3
)
)
if
__name__
==
'__main__'
:
#fit_model()
shape
()
fit_model
()
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