环境ubuntu18.04

基于Docker

1-Uninstall old versions

sudo apt-get remove docker docker-engine docker.io containerd runc

2-Install Docker CE
Update the apt package index:

sudo apt-get update


Install packages to allow apt to use a repository over HTTPS:

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common


Add Docker’s official GPG key:

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 install docker-ce docker-ce-cli containerd.io
apt-cache madison docker-ce
sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
例如
sudo apt-get install docker-ce=5:18.09.7~3-0~ubuntu-bionic docker-ce-cli=5:18.09.7~3-0~ubuntu-bionic containerd.io
sudo docker run hello-world

Docker安装完成

git clone https://github.com/jsbroks/coco-annotator

 

cd coco-annotator
sudo apt  install docker-compose

 

docker-compose up

解决 ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
sudo gpasswd -a ${USER} docker
然后退出当前用户比如切换为root,再次切换为jing。然后执行docker-compose up -d就ok了。
jing@ubuntu:/tmp/docker$ sudo su 
root@ubuntu:/tmp/docker$ su jing 
jing@ubuntu:/tmp/docker$ docker-compose up -d

docker-compose down

如果需要关闭就用上面这个命令

一般情况下每次重启这些东西是自动启动的

导入数据需要在你安装的文件目录 datasets里面使用类似于

sudo cp -R 1*.jpg /home/yang/coco-annotator/datasets/test/

的命令复制图片,在复制之前先在系统里面新建一个数据集以及分类

打开是在网页里面使用 localhost:5000 访问 ,远程访问就把前面换成你的ip就可以了

第一次注册的用户默认为管理员用户 剩下的是普通用户

 


by https://github.com/jsbroks/coco-annotator/wiki/Implementation#Users

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐