Evaluation database for depth maps estimation (Django: Python)
- create admin account
py manage.py createsuperuser
Username: admin
Email address: your_email
Password: your_password - create database
py manage.py migrate
py manage.py makemigrations
-
starting a server
- !! server must be started in main directory of the project (inside depth_grader folder - manage.py root directory) !!
ON WSL server (Windows Subsystem for Linux) run Redis server:
# redis-server
Before executing Python server, run Celery broker:
python -m celery -A depth_grader worker -l info -P gevent
- depth_grader | Django app that will manage all the incoming traffic
- -l info | command flag that shows all current "tasks" accounted for code execution
- -P gevent | command flag that handles coroutines with help of gevent (Python networking library)
py manage.py runserver
- !! server must be started in main directory of the project (inside depth_grader folder - manage.py root directory) !!
while calling BATCH file - current absolute path is the path that was entered in terminal
i.e.
- terminal PATH is: DepthMapQualityDB/depth_grader/
- BAT file PATH is: DepthMapQualityDB/depth_grader/depthQualifier/src/testBatch.bat
then commands written on .bat file will be executed as on "terminal PATH"
- unpack "ffmpeg.exe" file from "ffmpeg.zip" archive
-
- this file is located in DepthMapQualityDB\depth_grader\depthQualifier\src\media_handling\ location
- check TERMINAL path
-
- BATCH files depend on the terminal path:
i.e. access to /media/ folder
- BATCH files depend on the terminal path: