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

相关推荐
命运之光1 天前
【C语言完整代码】就诊信息管理系统
java·c语言·开发语言
命运之光1 天前
【C语言完整代码】图书管理系统:图书馆场景下的增删改查实战
c语言·开发语言
猿长大人1 天前
C# | Serilog 新手入门
开发语言·c#·.net·log
marvelyu1 天前
每天10分钟学会OceanBase系列(Day 20):跨机房容灾实战——构建多数据中心高可用架构
java·大数据·数据库
在世修行1 天前
从零打造 C# 工业视觉检测系统(七):串口通信 SerialPort 封装与开发
开发语言·c#·modbus rtu·rs232/rs485
AI人工智能+电脑小能手1 天前
大白话说Java设计模式-04-工厂方法模式(业务实战篇)
java·设计模式·工厂方法模式·架构设计·代码解耦
BUG指挥官1 天前
Sa-Token和Spring Security对比
java·后端·spring
小当家.1051 天前
深入理解 ReAct Agent:从原理到 Java 实战
java·react.js·agent·react·架构设计·agent设计
geminigoth1 天前
Spring AI Alibaba 入门开发一(备份)
java·人工智能·spring
Hammer_Hans1 天前
DFT笔记98
java·开发语言·数据库