摘要: 从事深度学习研究开始,尝试过很多不同类型,不同功能的数据标注工具,尤其是图像标注工具,包括自己写的简单工具,都不能很好的满足任务的需求,近期突然使用了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
:
1 | version: "2.3" |
2. 配置挂载图像存储目录
替换{}中目录位置
1 | version: "2.3" |
完成上述配置,重新执行build
过程:
1 | docker-compose -f docker-compose.yml -f docker-compose.add-on.yml up -d --build |
3. 开启CUDA/OpenVINO support | 分析组件
1 | # Build and run containers with CUDA and OpenVINO support |
4. 配置访问命令
How to make unassigned tasks not visible to all users
Set reduce_task_visibility variable to
True
.
5. 修改logo
cvat/cvat-ui/src/assets/cvat-logo.svg
其它命令
1 | # stops and removes containers, networks, volumes, and images |
使用技巧
相关地址
功能 | 地址 |
---|---|
主页 | |
用户管理 | |
REST API |
任务
每个数据集的标注工作都作为一项任务;
支持两种工作模式:
- 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