-
Notifications
You must be signed in to change notification settings - Fork 54
Project Setup in Ubuntu 18.04
Amit Kumar edited this page Jul 30, 2019
·
11 revisions
Run the following command to setup the virtualenv.
pip3 install virtualenv
virtualenv -p python3 myenv
source myenv/bin/activate
Clone the repo
git clone https://github.com/pymit/Rekognition
cd Rekognition
pip3 install -r requirements.txt
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo service postgresql start
sudo -u postgres psql
CREATE DATABASE pmr;
CREATE USER admin WITH PASSWORD 'admin';
ALTER ROLE admin SET client_encoding TO 'utf8';
ALTER ROLE admin SET default_transaction_isolation TO 'read committed';
ALTER ROLE admin SET timezone TO 'UTC';
ALTER USER admin CREATEDB;
ALTER DATABASE pmr OWNER TO admin;
sudo apt-get update
sudo apt install docker.io
sudo chmod 666 /var/run/docker.sock
docker pull tensorflow/serving:nightly-devel
git clone https://github.com/pymit/RekoUI
cd RekoUI
sudo apt install npm
sudo npm install -g npm@latest
npm install
npm start
//current directory Rekognition
cd corelib
cd model
mkdir facenet
cd facenet
wget https://www.dropbox.com/s/jm8grrifh5yk7is/2017.zip?dl=1 -O 2017.zip
unzip 2017.zip
rm -rf __MACOSX
rm -rf 2017.zip
mkdir tfs
cd tfs
wget https://www.dropbox.com/s/zzjzdvx6523am20/fer2013.zip?dl=1 -O fer2013.zip
unzip fer2013.zip
rm -rf fer2013.zip
rm -rf __MACOSX
-
Migrate
python manage.py makemigrations python manage.py migrate
-
Staticfiles
python manage.py collectstatic --dry-run
sudo apt install ffmpeg
Start django application
python manage.py runserver 8000
Django app can be accessed at http://localhost:8000