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

相关推荐
曾几何时`几秒前
Go(一)Gin框架 和 GORM机制
开发语言·golang·gin
小旭95274 分钟前
MySQL 主从复制、MyCat 读写分离与分库分表实战
java·数据库·sql·mysql·database
计算机安禾4 分钟前
【算法分析与设计】第38篇:最近点对与分治在几何中的应用
java·服务器·网络·数据库·算法
biter down7 分钟前
3.Python 接口自动化之 Pytest 测试框架
开发语言·python
梦梦代码精12 分钟前
功能堆砌不如好扩展:4 款开源商城系统的选型思考
java·docker·uni-app·开源·php
鬼拉怪拉13 分钟前
【无标题】
开发语言
计算机安禾14 分钟前
【算法分析与设计】第37篇:平面扫描与线段交问题
java·大数据·数据库·算法·机器学习
兰令水19 分钟前
leecodecode【二叉树排序+最近公共祖先】【2026.6.2打卡-java版本】
java·数据结构·算法·leetcode
人道领域19 分钟前
【LeetCode刷题日记】77&&216.回溯算法剪枝优化在组合问题中的应用
java·算法·leetcode
诸葛务农23 分钟前
共沸脱水技术及其在光刻胶用PGMEA纯化中的应用(上)
java·数据库·算法