User-Friendly Deep Learning (UFDL) - backend system.
-
Python 3.8 (including development headers)
sudo apt-get install python3.8 python3.8-dev libpython3.8-dev -
essential build environment
sudo apt-get install build-essential -
additional libraries
sudo apt-get install libsm6 libxrender1 virtualenv -
when using a MySQL backend ensure that
mysql_configis presentsudo apt-get install libmysqlclient-dev
dev_init.sh- for setting up the virtual environmentvenv.devthat runs a developer instance. You may want to adjust the parameters in the automatically generated file./venv.dev/lib/python3.7/site-packages/ufdl/api_site/secret.py(likeDEBUGandALLOWED_HOSTS). Use-hfor outputting the help screen.dev_reset.sh- simply resets the database state (the virtual environment must exist)dev_start.sh- launches the developer instance from thevenv.devvirtual environment on http://localhost:8000, unless the IP address and port to bind to is provided as argument (e.g.,0.0.0.0:8000)
The following environment variables can be used to
UFDL_DATABASE_TYPE- the database to use for the backend (sqlite3|postgresql, default:sqlite3)UFDL_POSTGRESQL_HOST- host for PostgreSQL DBUFDL_POSTGRESQL_USER- user for PostgreSQL DBUFDL_POSTGRESQL_PASSWORD- password for PostgreSQL DB
See here for more scripts or documentation.
For API documentation see: