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

相关推荐
软件技术NINI11 分钟前
基于SpringBoot的滑雪场设备租赁系统
java·spring boot·后端
考虑考虑9 小时前
JDK27结构化并发
java·后端·java ee
金銀銅鐵9 小时前
带您看懂字节码指令(五):控制流里有什么
java·jvm·后端
Cosolar11 小时前
监控指标全正常,订单接口从 80ms 涨到 4s 故障复盘
java·后端·面试
yiangL_13 小时前
课后作业4:基于 Python 的古诗词词云可视化(P205)
开发语言·python
geovindu15 小时前
rust: Functional Options Pattern
开发语言·后端·设计模式·rust·函数式选项模式·惯用法型模式
skywalk816316 小时前
把「假成功」赶出工具层:lightharness 两天升级复盘(4×5 模式矩阵 + 工具层 5 个缺陷)
开发语言·前端·人工智能·lightharness
敲上瘾16 小时前
Qt控件通用属性:geometry、qrc资源到QSS样式表等
开发语言·c++·qt·ui
听情歌落俗18 小时前
嵌入式学习1-C语言基础语法与STM32实践
c语言·开发语言
小飞在努力18 小时前
【实现负载均匀在线判题⑤】MVC 架构搭建与 Model 题目数据模块实现
c语言·开发语言·c++·笔记·后端