In order to run CVAT locally, you need to pull their repository:
git clone https://github.com/opencv/cvat.git && cd cvat
Before running CVAT services, you will need to make some modifications to the docker-compose.yml file in order to enable communication between Human Protocol and CVAT containers.
If using "Docker Compose" version of protocol (recommended)
First you need to add a network alias for traefik service by changing its networks section to:
networks:
cvat:
aliases:
- cvat-lb
Then configure cvat network at the bottom of compose file:
Sometimes you will need to actualize the CVAT code you cloned. It can be easily done by commiting you changes and doing git pull --rebase origin develop . After doing so - please make sure you re-build containers by adding the--build flag at the end of above command
CVAT will be available on , so make sure you added a mapping to your /etc/hosts/ for convenience, because it will allow requests only with Host: cvat-lb header
If using "localhost" version (i.e. services running locally)
If you use "localhost" setup, you will highly likely need to create bridge Docker network to be able to access CVAT services from local host:
In order to allow HUMAN Protocol services communicate with CVAT services you need to retrieve bridge network Gateway IP (traffic from your local host goes through this Gateway to containers):
Then go to CVAT UI ( or as per your setup) in your browser, login as superuser and create a user for HUMAN Protocol services. Then login as this user and create the organization for HUMAN Protocol.
When creating the organization and its admin user in CVAT, its recommended to use values defined for docker-setup in human-protocol monorepo, i.e.: