zhh 94c3d1e30d feat(新功能):
fix(修复bug):  修复配饰位置异常
docs(文档变更):
refactor(重构):
test(增加测试):
2025-09-16 16:57:33 +08:00
2025-09-16 16:57:33 +08:00
2024-10-29 16:58:21 +08:00
2025-04-16 14:19:02 +08:00
1
2024-03-20 11:44:15 +08:00
2025-06-24 16:58:05 +08:00
2025-09-01 12:29:08 +08:00
2025-06-11 16:13:13 +08:00
2025-06-24 16:58:05 +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
      $ pip install mmcv==1.4.2 -f https://download.openmmlab.com/mmcv/dist/cu117/torch1.13/index.html
    
  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%