ubuntu20.04下安装标注工具CVAT

1 安装docker

复制代码
sudo apt-get update
sudo apt-get --no-install-recommends install -y apt-transport-https ca-certificates \
  curl \
  gnupg-agent \
  software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
  "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) \
  stable"

sudo apt-get update
sudo apt-get --no-install-recommends install -y \
  docker-ce docker-ce-cli containerd.io docker-compose-plugin

2 增加用户到docker组

复制代码
sudo groupadd docker
sudo usermod -aG docker $USER

3 下载cvat,进入cvat路径

复制代码
git clone https://github.com/opencv/cvat
cd cvat

4 设置访问地址,这样让其他电脑可以访问它

或者将它放入/etc/profile中开机配置

复制代码
export CVAT_HOST=your-ip-address

5 安装chrome

cvat推荐只能用chrome

复制代码
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

2.使用 gdebi 工具自动安装 deb 包和依赖关系:

复制代码
sudo apt install gdebi
sudo gdebi google-chrome-stable_current_amd64.deb

5 运行docker容器

注意是在cvat目录下,第一次会下载需要的镜像

以后每次开机都需要在这个路径下启动cvat的docker镜像

复制代码
docker compose up -d

6 创建一个超级用户

复制代码
docker exec -it cvat_server bash -ic 'python3 ~/manage.py createsuperuser'

注意再邮箱处可以不填,否则可能报错。

7 访问

在chrome浏览器中输入localhost:8080

相关推荐
2401_86976959几秒前
内容5 日期类实现
开发语言·c++
白露与泡影13 分钟前
2026秋招冲刺:1000道Java高频面试题(各大厂考点汇总)
java·开发语言·面试
IT龟苓膏17 分钟前
Java 并发基础:进程、线程、线程状态、synchronized、volatile 一篇讲清
java·开发语言·jvm
weixin_4467291618 分钟前
java中class类没有打进war包中
java
郝学胜-神的一滴21 分钟前
Python 高级编程 019:类变量与实例变量彻底解析
开发语言·python·程序人生·软件构建
哭哭啼28 分钟前
pgSql 事务篇
java·数据库·postgresql
架构源启35 分钟前
Spring AI进阶系列(17)- 未来展望与职业发展:Java 工程师迈向 AI 工程化与智能体架构的路线图
java·人工智能·spring
我登哥MVP38 分钟前
Spring Boot 从“会用”到“精通”:SpringBoot MVC 请求处理全流程
java·spring boot·后端·spring·mvc·maven·intellij-idea
Thomas_YXQ42 分钟前
Unity3D Addressable 深度优化热更性能消耗
开发语言·3d·unity·微信
aini_lovee1 小时前
C# 快递单打印系统(万能套打系统)
开发语言·c#