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"
  • 3
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 11
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值