Commit 91eabca7 authored by Richard Torenvliet's avatar Richard Torenvliet

Update commands and settings to work with docker

parent 3cb2d93a
...@@ -68,7 +68,7 @@ show_reconstruction: ...@@ -68,7 +68,7 @@ show_reconstruction:
--n_components 6 --n_components 6
show_ibug: show_ibug:
python src/main.py \ $(BASE_DOCKER_CMD) python main.py \
--reconstruct \ --reconstruct \
--files data/imm_face_db/*.jpg\ --files data/imm_face_db/*.jpg\
--model_texture_file data/pca_ibug_texture_model.npy \ --model_texture_file data/pca_ibug_texture_model.npy \
...@@ -76,7 +76,7 @@ show_ibug: ...@@ -76,7 +76,7 @@ show_ibug:
--shape_type ibug --shape_type ibug
profile_reconstruction: profile_reconstruction:
python -m cProfile src/main.py \ $(BASE_DOCKER_CMD) python -m cProfile main.py \
--reconstruct \ --reconstruct \
--files data/imm_face_db/*.asf \ --files data/imm_face_db/*.asf \
--model_texture_file data/pca_imm_texture_model.npy \ --model_texture_file data/pca_imm_texture_model.npy \
...@@ -85,7 +85,7 @@ profile_reconstruction: ...@@ -85,7 +85,7 @@ profile_reconstruction:
--n_components 6 --n_components 6
graph_reconstruction: graph_reconstruction:
python ./src/main.py \ $(BASE_DOCKER_CMD) python main.py \
--generate_call_graph \ --generate_call_graph \
--files data/imm_face_db/*.asf \ --files data/imm_face_db/*.asf \
--model_texture_file data/pca_imm_texture_model.npy \ --model_texture_file data/pca_imm_texture_model.npy \
...@@ -95,7 +95,7 @@ graph_reconstruction: ...@@ -95,7 +95,7 @@ graph_reconstruction:
test_landmarks: test_landmarks:
./src/main.py \ $(BASE_DOCKER_CMD) python main.py \
--test_landmarks \ --test_landmarks \
--image data/test_data/lenna.jpg --image data/test_data/lenna.jpg
...@@ -105,7 +105,7 @@ test: ...@@ -105,7 +105,7 @@ test:
.PHONY:= server .PHONY:= server
server: server:
#(cd src/; python -m tornado.autoreload server.py) $(BASE_DOCKER_CMD) python -m tornado.autoreload server.py
.PHONY:= ember .PHONY:= ember
ember: ember:
......
#VIRTUALENV := venv DEBUG:=1
#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
VERSION:=v0.1 VERSION:=v0.1
IMAGE_TAG:= icyrizard/face-reconstruction.git:$(VERSION) IMAGE_TAG:= icyrizard/face-reconstruction.git:$(VERSION)
DEBUG:=1
BASE_DOCKER_CMD:= docker run \ BASE_DOCKER_CMD:= docker run \
--rm \ --rm \
--volume /Users/richard/Documents/sighthub/face-reconstruction/data:/data \ --volume /Users/richard/Documents/sighthub/face-reconstruction/data:/data \
--volume /Users/richard/Documents/sighthub/face-reconstruction/src:/src \ --volume /Users/richard/Documents/sighthub/face-reconstruction/src:/src \
-e "DEBUG=$(DEBUG)" \ -e "DEBUG=$(DEBUG)" \
-p 8888:8888 \
$(IMAGE_TAG) $(IMAGE_TAG)
include actions.mk include actions.mk
...@@ -28,10 +22,6 @@ OS := $(shell uname) ...@@ -28,10 +22,6 @@ OS := $(shell uname)
build: requirements.txt build: requirements.txt
docker build -t $(IMAGE_TAG) . docker build -t $(IMAGE_TAG) .
#@(source $(VIRTUALENV)/bin/activate; \
# pip install -r requirements.txt; \
#);
run-bash: run-bash:
$(BASE_DOCKER_CMD) --interactive --tty $(IMAGE_TAG) /bin/bash $(BASE_DOCKER_CMD) --interactive --tty $(IMAGE_TAG) /bin/bash
......
...@@ -15,8 +15,7 @@ from reconstruction import reconstruction ...@@ -15,8 +15,7 @@ from reconstruction import reconstruction
from settings import logger from settings import logger
from utility import import_dataset_module from utility import import_dataset_module
BASE = '../viewer/app' FILES_DIR = '/data/'
FILES_DIR = '../data/'
FACE_DB_NAME = 'imm_face_db' FACE_DB_NAME = 'imm_face_db'
FACE_DB = '{}{}'.format(FILES_DIR, FACE_DB_NAME) FACE_DB = '{}{}'.format(FILES_DIR, FACE_DB_NAME)
......
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