Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
py-3d-face-reconstruction
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Torenvliet
py-3d-face-reconstruction
Commits
91eabca7
Commit
91eabca7
authored
8 years ago
by
Richard Torenvliet
Browse files
Options
Downloads
Patches
Plain Diff
Update commands and settings to work with docker
parent
3cb2d93a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
actions.mk
+5
-5
5 additions, 5 deletions
actions.mk
makefile
+2
-12
2 additions, 12 deletions
makefile
src/server.py
+1
-2
1 addition, 2 deletions
src/server.py
with
8 additions
and
19 deletions
actions.mk
+
5
−
5
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
:
...
...
This diff is collapsed.
Click to expand it.
makefile
+
2
−
12
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
...
...
This diff is collapsed.
Click to expand it.
src/server.py
+
1
−
2
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment