zcr c03b7e263e
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
feat:
fix:  替换项目中所有mmcv的依赖
2026-02-10 11:17:31 +08:00
2026-02-10 11:17:31 +08:00
2026-02-10 11:17:31 +08:00
2026-01-27 11:28:36 +08:00
1
2024-03-20 11:44:15 +08:00
2026-02-10 11:17:31 +08:00
2026-02-10 11:17:31 +08:00
2026-02-10 11:17:31 +08:00
2026-02-10 11:17:31 +08:00
2026-02-10 11:17:31 +08:00

文件解释

样例包括:

  • README.md - 本文件
  • Dockerfile - 用以自动构建 Docker 镜像的脚本
  • requirements.txt - 依赖包文件
  • main.py - 主 fastapis 服务器端源代码
  • python-version : 3.9

快速开始

如下这些引导,假定你想在自己的电脑上开发本项目。

  1. 安装依赖

      $ conda create -n trinity_client_aida python=3.9 -y
      $ conda activate trinity_client_aida 
      $ pip install -r requirements.txt
      $ conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia -y
    
  2. 启动服务器

     $ uvicorn app.main:app --host 0.0.0.0 --port 8000
    
  3. 打开 http://127.0.0.1:8000/docs

Docker 部署

  1. 构建镜像

      $ cd {workspace}
      $ docker build -t trinity_client_mixi
    
  2. 使用docker-compose 启动

      $ docker-compose up -d
    
  3. 查看日志

      $ docker-compose logs -f
    
Description
No description provided
Readme 3.3 MiB
Languages
Python 99.9%