图像数据标注工具推荐-CVAT

图像数据标注工具推荐-CVAT

摘要: 从事深度学习研究开始,尝试过很多不同类型,不同功能的数据标注工具,尤其是图像标注工具,包括自己写的简单工具,都不能很好的满足任务的需求,近期突然使用了CVAT,感觉似乎可能成为未来工具包中的常备系列,写此一文,记录使用过程。

Computer Vision Annotation Tool (CVAT) is a web-based tool which helps to annotate videos and images for Computer Vision algorithms. It was inspired by Vatic free, online, interactive video annotation tool. CVAT has many powerful features: interpolation of bounding boxes between key frames, automatic annotation using deep learning models, shortcuts for most of critical actions, dashboard with a list of annotation tasks, LDAP and basic authorization, etc… It was created for and used by a professional data annotation team. UX and UI were optimized especially for computer vision tasks developed by our team.

安装部署与配置

部署过程参考官方文档:CVAT 部署文档,写的极为详细,基本没有太多坑🕳。

由于本身的需求,需要使用一些特定功能,具体如下:

1. 配置外网访问

构建YAML文件:docker-compose.add-on.yml:

>folded
1
2
3
4
5
6
version: "2.3"

services:
cvat_proxy:
environment:
CVAT_HOST: .example.com

2. 配置挂载图像存储目录

替换{}中目录位置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
version: "2.3"

services:
cvat:
environment:
CVAT_SHARE_URL: "Mounted from /mnt/share host directory"
volumes:
- cvat_share:/home/django/share:ro

volumes:
cvat_share:
driver_opts:
type: none
device: {/mnt/share}
o: bind

完成上述配置,重新执行build过程:

1
docker-compose -f docker-compose.yml -f docker-compose.add-on.yml up -d --build

3. 开启CUDA/OpenVINO support | 分析组件

1
2
3
4
5
6
# Build and run containers with CUDA and OpenVINO support
# IMPORTANT: need to download OpenVINO package before running the command
docker-compose -f docker-compose.yml -f components/cuda/docker-compose.cuda.yml -f components/openvino/docker-compose.openvino.yml up -d --build

# Build and run containers with Analytics component support:
docker-compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml up -d --build

其它命令

1
2
# stops and removes containers, networks, volumes, and images
docker-compose down

使用技巧

相关地址

功能 地址
主页
用户管理 /admiin
REST API /api/swagger

任务

每个数据集的标注工作都作为一项任务;

支持两种工作模式:

  • interpolation task (video sequence)
  • annotation task (independent images)

快捷键

常用快捷键:

  • N:快速创建BOX标记工具;
  • Crtl + S: 随时保存
  • D: 上一张
  • F: 下一张
  • CRTL + #N(标签序号)
Shortcut Common
F1 open help
F1 in dashboard open page with documentation
F2 open settings
L lock/unlock an active shape
L+T lock/unlock all shapes on the current frame
Q or Num/ set occluded property for an active shape
N start/stop draw mode
Esc close draw mode without create
Ctrl+ change type of an active shape
Shift+ change type of new shape by default
Alt + > switch next default shape type
Alt + < switch previous default shape type
Enter change color of active shape
H hide active shape
T+H hide all shapes
J hide labels with attributes on every frame
Delete delete an active shape
Shift+Delete delete an active shape even if it is locked
F go to next frame
D go to previous frame
V go forward with a predefined step
C go backward with a predefined step
~ focus to go to frame element
Ctrl + R clockwise image rotation
Ctrl + Shift + R counter clockwise image rotation
Ctrl+C copy an active shape
Ctrl+V insert a copied shape
Ctrl+Z undo previous action
Ctrl+Shift+Z/Ctrl+Y redo previous action
Shift+B/Alt+B increase/decrease brightness on an image
Shift+C/Alt+C increase/decrease contrast on an image
Shift+S/Alt+S increase/decrease saturation on an image
Alt + G + '+', Alt + G + '-' increase/decrease grid opacity
Alt + G + Enter change grid color
Ctrl+S save job
Ctrl+B propagate active shape
+/- change relative order of highlighted box (if Z-Order is enabled)
Interpolation
M enter/apply merge mode
Esc close merge mode without apply the merge
R go to the next key frame of an active shape
E go to the previous key frame of an active shape
O change attribute of an active shape to “Outside the frame”
K mark current frame as key frame on an active shape
Attribute annotation mode
Shift+Enter enter/leave Attribute Annotation mode
Up Arrow go to the next attribute (up)
Down Arrow go to the next attribute (down)
Tab go to the next annotated object
Shift+Tab go to the previous annotated object
`` assign a corresponding value to the current attribute
Grouping
G switch group mode
Esc close group mode
Shift+G reset group for selected shapes
Filter
Left Arrow go to the previous frame which corresponds to the specified filter value
Right Arrow go to the next frame which corresponds to the specified filter value

Hints:

Hold Mouse Wheel to move frame (for example, while drawing)

Hold Ctrl when shape is active and fix it.

Hold Ctrl when paste shape from buffer for multiple pasting.

半监督标记与模型

To-Do

参考

  1. CVAT Github
  2. CVAT 部署文档
  3. CVAT 用户文档

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×