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
91eabca7
Commit
91eabca7
authored
Nov 12, 2016
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update commands and settings to work with docker
parent
3cb2d93a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
19 deletions
+8
-19
actions.mk
actions.mk
+5
-5
makefile
makefile
+2
-12
src/server.py
src/server.py
+1
-2
No files found.
actions.mk
View file @
91eabca7
...
...
@@ -68,7 +68,7 @@ show_reconstruction:
--n_components
6
show_ibug
:
python src/
main.py
\
$(BASE_DOCKER_CMD)
python
main.py
\
--reconstruct
\
--files
data/imm_face_db/
*
.jpg
\
--model_texture_file
data/pca_ibug_texture_model.npy
\
...
...
@@ -76,7 +76,7 @@ show_ibug:
--shape_type
ibug
profile_reconstruction
:
python
-m
cProfile src/
main.py
\
$(BASE_DOCKER_CMD)
python
-m
cProfile
main.py
\
--reconstruct
\
--files
data/imm_face_db/
*
.asf
\
--model_texture_file
data/pca_imm_texture_model.npy
\
...
...
@@ -85,7 +85,7 @@ profile_reconstruction:
--n_components
6
graph_reconstruction
:
python ./src/
main.py
\
$(BASE_DOCKER_CMD)
python
main.py
\
--generate_call_graph
\
--files
data/imm_face_db/
*
.asf
\
--model_texture_file
data/pca_imm_texture_model.npy
\
...
...
@@ -95,7 +95,7 @@ graph_reconstruction:
test_landmarks
:
./src/
main.py
\
$(BASE_DOCKER_CMD)
python
main.py
\
--test_landmarks
\
--image
data/test_data/lenna.jpg
...
...
@@ -105,7 +105,7 @@ test:
.PHONY
:=
server
server
:
#
(
cd
src/
;
python
-m
tornado.autoreload server.py
)
$(BASE_DOCKER_CMD)
python
-m
tornado.autoreload server.py
.PHONY
:=
ember
ember
:
...
...
makefile
View file @
91eabca7
#VIRTUALENV := venv
#PYTHON := python2.7
#PYTHON_BIN_PATH := /usr/local/bin/$(PYTHON)
#SITE_PACKAGES := $(VIRTUALENV)/lib/$(PYTHON)/site-packages
#OPENCV := $(SITE_PACKAGES)/cv.py $(SITE_PACKAGES)/cv2.so
#TARGETS := $(OPENCV) $(VIRTUALENV) data reconstruction
DEBUG
:=
1
VERSION
:=
v0.1
IMAGE_TAG
:=
icyrizard/face-reconstruction.git:
$(VERSION)
DEBUG
:=
1
BASE_DOCKER_CMD
:=
docker run
\
--rm
\
--volume
/Users/richard/Documents/sighthub/face-reconstruction/data:/data
\
--volume
/Users/richard/Documents/sighthub/face-reconstruction/src:/src
\
-e
"DEBUG=
$(DEBUG)
"
\
-p
8888:8888
\
$(IMAGE_TAG)
include
actions.mk
...
...
@@ -28,10 +22,6 @@ OS := $(shell uname)
build
:
requirements.txt
docker build
-t
$(IMAGE_TAG)
.
#@(source $(VIRTUALENV)/bin/activate; \
# pip install -r requirements.txt; \
#);
run-bash
:
$(BASE_DOCKER_CMD)
--interactive
--tty
$(IMAGE_TAG)
/bin/bash
...
...
src/server.py
View file @
91eabca7
...
...
@@ -15,8 +15,7 @@ from reconstruction import reconstruction
from
settings
import
logger
from
utility
import
import_dataset_module
BASE
=
'../viewer/app'
FILES_DIR
=
'../data/'
FILES_DIR
=
'/data/'
FACE_DB_NAME
=
'imm_face_db'
FACE_DB
=
'{}{}'
.
format
(
FILES_DIR
,
FACE_DB_NAME
)
...
...
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