Data Labeling with CVAT
Starting CVAT in Windows
Assumes you’ve already completed the installation instructions.
Open Docker App to start the Docker engine
Open Up Ubuntu App command prompt
In the Ubuntu prompt
cd cvat
Without SAM
docker compose up -d
With SAM
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d
cd serverless && ./deploy_cpu.sh pytorch/facebookresearch/sam/nuclio/
Open Google Chrome
in the address bar, go to localhost:8080
This should bring up the CVAT log in screen. Log in with your username and password that you created during installation.
Go to your project and start labeling (this assume you’ve already created a project and imported your dataset)
Creating a Project
Download data from the shared google drive folder that @Matthew Kutugata shares with you
Download the data from your “unlabeled” folder
In the CVAT app, go to the “projects” tab, create a new project by clicking the plus button
Copy the downloaded zip file name and use it as the project name
For example, “very_large_hairy_vetch_MD_2022-10-27_annotations_camvid”
Press “submit and continue” to make the project
Importing Data
Select the newly created project
Choose the actions and select “import dataset”
Select “CamVid 1.0” for the import format
Click or drag the downloaded zip file
the zip file name should now be under the “drag here” box
Press “ok” to start the import
An initial progress notification should pop up on the screen
Then another “Annotation import finished” notification should pop-up. This may take some time (~1-2 minutes).
You should see the dataset in the project
Exporting Data
Make sure you save your project by pressing the “Save” icon
press the Menu (3 lines) icon
export job dataset
Choose CamVid 1.0 format
Give the export a proper custom name. I need
number of images
Press ok
The download request will be in the “request” tab. It may take a little bit of time to prepare the download
Once it’s finished, press the 3 dots to “download”
Once downloaded onto your local computer, place the completed job zip folder in the appropriate google drive folder.
Labeling
keyboard short-cuts are helpful
you’ll need a physical mouse to do this. A track pad will be too difficult.
Image prep
Remove the background class overlay for each image
Remove all background classes when starting out
Polygon Tool
Select the polygon tool from the tool bar (pentagon)
Select your target class, not “background”.
You should only have 1 target class and a “background” class. Choose the target class
Outline small part of the plant that are missing
Once you select the polygon tool and the class, choose shape
The polygon tool should now be active on your screen (cross symbol)
Use the scroll wheel to pan across the image
Left-click to select points
hold shift to automatically select point with every movement of your mouse
Press n again to close the polygon
Press n again to reactivate the polygon tool
Save often
Overlapping other section is ok
Use the “bitmap” to check your work
Uploading Files
Log into Google Account
Go to Private Google Drive for CVAT
It’s a good idea to have this link bookmarked
Open File named ‘Labeled’
In the upper lefthand corner of Google Drive, use “+ New” to upload a folder
Drag and drop the folder into Drive
Name the Folder, SPECIES, SITE, DATE of collection
Shutdown Docker
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml down
and close docker
Keyboard shortcuts:
Installation:
https://docs.cvat.ai/docs/administration/basics/installation/
Setting Up SAM for CVAT
The Facebook Segment Anything Model is now available in the self-hosted version of CVAT | CVAT Blog