Setting up CVAT
Created : 08/11/2022 | on Linux: 5.15.0-52-generic
Updated: 08/11/2022 | on Linux: 5.15.0-52-generic
Status: Draft
Installing CVAT locally:
Note: I personally like to install pyenv to keep my system python clean.
please follow these installation steps listed in the official CVAT repository.
I checked out the master
branch instead of the development branch.
After installing for the first time I suggest that you run docker-compose and keep the shell running to see the diagnostics. (this can be done by omitting the -d
flag in the compose command)
Then with a new shell you can log into the django environment with docker exec -it cvat_server /bin/bash --login
once you log in you can create a user with
python manage.py createsuperuser
Now you can login to the server depending CVAT_HOST
variable you set at the initialisation using google chrome
e.g. type http://cvat.gsrv.lan:8080/
in the address bar. (note: this will only work for me in my lab environment)
After you conform everything works fine you may restart the server with the shell detached.
Shutting down
You can shut the server down by cd
ing to the cvat directory and then typing docker-compose down
Tricks
Log into PostgreSQL
you can log into postgres
with
docker exec -it cvat_db /bin/bash --login
Change where the data is stored or retrieved from.
if you want to create a database in a separate place follow along the instructions here but instead of the cvat_share
use the cvat_data
option shown below (or use both appropriately). The extra storage is now mounted to somewhere in /mounted/files/location/cvat_extended_storage/cvat_database
volumes:
cvat_data:
driver_opts:
type: none
device: /mounted/files/location/cvat_extended_storage/cvat_database
o: bind
Click here to report Errors, make Suggestions or Comments!