需要linux操作系统哈,如果是windows系统可以使用虚拟机来实现,可以使用VB,但确实有一些问题,但整体还是可以用的,VM涉及商用问题,个人使用无所谓。
操作系统ubuntu-20.04.5-desktop-amd64
一、安装docker
1.卸载旧版本
ubuntu下自带了docker的库,不需要添加新的源。
但是ubuntu自带的docker版本太低,需要先卸载旧的再安装新的
sudo apt-get remove docker docker-engine docker.io containerd runc
2.获取软件最新源
sudo apt-get update
3.安装 apt 依赖包
用于通过HTTPS来获取仓库
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
4.安装GPG证书
curl -fsSL https:*//mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -*
5.验证
sudo apt-key fingerprint 0EBFCD88
6.设置稳定版仓库
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
二、安装 Docker Engine-Community
1.更新 apt 包索引
sudo apt-get update
2.安装最新版本
sudo apt-get install docker-ce docker-ce-cli containerd.io
3.安装特定版本
apt-cache madison docker-ce
<VERSION_STRING>为一个版本
sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
具体一个命令
sudo apt-get install docker-ce=5:20.10.17~3-0~ubuntu-focal docker-ce-cli=5:20.10.17~3-0~ubuntu-focal containerd.io
4.测试
sudo docker run hello-world
报错
Unable to find image 'hello-world:latest' locally
解决方法
sudo nano /etc/docker/daemon.json
添加文本内容
{
"registry-mirrors": ["https://alzgoonw.mirror.aliyuncs.com"]
}
重启docker
systemctl restart docker
systemctl status docker
三、配置
1.配置用户组
sudo usermod -aG docker your-user
其他问题
1.运行
docker-compose up
报错
docker-compose: command not found
解决办法
sudo apt install docker-compose
2.COCO Annotator执行docker-compose up
报错
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
解决方法
sudo service docker restart
newgrp - docker
重新计入环境和目录再执行
docker-compose up
四、COCO-Annotator的安装
前置条件为上文的docker安装
git clone https://github.com/jsbroks/coco-annotator
下载完成后
cd coco-annotator
执行
docker-compose up
中间没图是因为后面补的
浏览器输入
http://localhost:5000/
没注册先注册,虚拟机也可以让大家一起标注,但有服务器的建议直接用服务器来做。
这样方便局域网内的标记人员进行标记,涉及外网就自己内网穿透啦。
吐槽下,最好是管理员创建datasets和categories,不知道是不是Bug。
非管理员是看不见你的categories的,需要用户也创建一个相同的名称的,
然后用户在给数据集添加的时候就会看见两个(用户创建的关键点不用打全),然后选择管理员创建的。