CVAT windows安装

Ubuntu安装参考


Windows部署CVAT

CVAT


安装Git

下载Git

Git安装方法


安装chocolatey

https://chocolatey.org/install

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

如果出现问题:

解决方案

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
$env:chocolateyUseWindowsCompression = 'true'

安装python

下载python

记得勾选 path,也可以直接使用 choco install python 安装python

接着 pip install docker-compose


安装Docker

下载Docker

  1. 程序和功能——启用或关闭Windows功能——选中Hyper-V——都勾选上

  2. 修改Docker配置文件,我这里使用的网易云加速器,也可以用阿里云加速器获取

    {
      "registry-mirrors": [
        "https://hub-mirror.c.163.com"
      ],
      "experimental": true
    }
    
  3. 解决参考 Switch to Linux containers 切换成Liunx容器

  4. Docker get-started 输入 docker run hello-world

    $ docker run hello-world
    
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    ca4f61b1923c: Pull complete
    Digest: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
    Status: Downloaded newer image for hello-world:latest
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    ...
    

都安装好后,输入如下命令:

git clone https://github.com/opencv/cvat
cd cvat

docker-compose build
docker-compose up -d

# 创建超级用户
winpty docker exec -it cvat bash -ic 'python3 ~/manage.py createsuperuser'
# 启动
docker-compose up

启动后,跳转即可访问:http://localhost:8080
登录界面
可以在http://localhost:8080/admin添加账户修改账户权限
注册账户

如果要进行公网访问(ip地址:8080)
需要修改 docker-compose.yml (复制粘贴一份,命名为: docker-compose.override.yml ), 修改如下:

version: "2.3"

services:
  cvat_proxy:
    environment:
      CVAT_HOST: .myipaddr
    ports:
      - "8080:80"
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页