Skip to content
/ cvat Public
forked from aaelsay2/cvat

Computer Vision Annotation Tool (CVAT) is a web-based tool which helps to annotate video and images for Computer Vision algorithms

License

Notifications You must be signed in to change notification settings

shuait/cvat

 
 

Repository files navigation

Fork for integrating keypoint annotation and implementing separate user s annotations

Use git clone [email protected]:aaelsay2/cvat.git Few Notes: to give user permissions to run docker use sudo usermod -a -G docker $USER If you are using puycharm follow this instructions for enabling docker in the development: https://www.jetbrains.com/help/pycharm/docker.html

###To use with pycharm

  • Setup the interpreter
    • File>Settings>Project Interpreter>(click the gear icon)>Add
    • Choose Docker Compose, select docker as the server (you might need to install docker first) sudo apt install docker docker-compose && sudo usermod -a -G docker $USER and then logout from you machine and log in again
    • point the configuration file to docker-compose.yaml and interpretter path to python3
  • Setup the server configuration
    • Run>Edit Configurations>Add (top right plus icon)> Docker-compose> (change name to CVAT and point to docker-compose.yaml for configuration)
    • Run>Run 'CVAT'
    • go to localhost:8080
  • To connect to DB
    • Select View>Tool Windows>Database
    • Add(plus icon top left ot the database window)>Data Source>PosgreSQL
    • Type root in the User field and then Test Connection

Computer Vision Annotation Tool (CVAT)

CVAT is completely re-designed and re-implemented version of Video Annotation Tool from Irvine, California tool. It is free, online, interactive video and image annotation tool for computer vision. It is being used by our team to annotate million of objects with different properties. Many UI and UX decisions are based on feedbacks from professional data annotation team.

CVAT screenshot

Documentation

Screencasts

LICENSE

Code released under the MIT License.

INSTALLATION

These instructions below should work for Ubuntu 16.04. Probably it will work on other OSes as well with minor modifications.

Install Docker CE or Docker EE from official site

Please read official manual here.

Install the latest driver for your graphics card

The step is necessary only to run tf_annotation app. If you don't have a Nvidia GPU you can skip the step.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-cache search nvidia-*   # find latest nvidia driver
sudo apt-get install nvidia-*    # install the nvidia driver
sudo apt-get install mesa-common-dev
sudo apt-get install freeglut3-dev
sudo apt-get install nvidia-modprobe

Reboot your PC and verify installation by nvidia-smi command.

The step is necessary only to run tf_annotation app. If you don't have a Nvidia GPU you can skip the step. See detailed installation instructions on repository page.

Install docker-compose (1.19.0 or newer)

sudo pip install docker-compose

Build docker images

To build all necessary docker images run docker-compose build command. By default, in production mode the tool uses PostgreSQL as database, Redis for caching.

Run containers without tf_annotation app

To start all containers run docker-compose up -d command. Go to localhost:8080. You should see a login page.

Run containers with tf_annotation app

If you would like to enable tf_annotation app first of all be sure that nvidia-driver, nvidia-docker and docker-compose>=1.19.0 are installed properly (see instructions above) and docker info | grep 'Runtimes' output contains nvidia.

Run following command:

docker-compose -f docker-compose.yml -f docker-compose.nvidia.yml up -d --build

Create superuser account

You can register a user but by default it will not have rights even to view list of tasks. Thus you should create a superuser. The superuser can use admin panel to assign correct groups to the user. Please use the command below:

docker exec -it cvat sh -c '/usr/bin/python3 ~/manage.py createsuperuser'

Type your login/password for the superuser on the login page and press Login button. Now you should be able to create a new annotation task. Please read documentation for more details.

Stop all containers

The command below will stop and remove containers, networks, volumes, and images created by up.

docker-compose down

Advanced settings

If you want to access you instance of CVAT outside of your localhost you should specify ALLOWED_HOSTS environment variable. The best way to do that is to create docker-compose.override.yml and put all your extra settings here.

version: "2.3"

services:
  cvat:
    environment:
      ALLOWED_HOSTS: .example.com
    ports:
      - "80:8080"

Annotation logs

It is possible to proxy annotation logs from client to another server over http. For examlpe you can use Logstash. To do that set DJANGO_LOG_SERVER_URL environment variable in cvat section of docker-compose.yml file (or add this variable to docker-compose.override.yml).

version: "2.3"

services:
cvat:
    environment:
      DJANGO_LOG_SERVER_URL: https://annotation.example.com:5000

About

Computer Vision Annotation Tool (CVAT) is a web-based tool which helps to annotate video and images for Computer Vision algorithms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.3%
  • Python 24.9%
  • HTML 7.1%
  • CSS 1.9%
  • Shell 1.2%
  • Dockerfile 0.6%