基于 FastAPI 开发 Ultralytics Serving
.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: FastAPI",
"type": "python",
"request": "launch",
"module": "uvicorn",
"args": [
"app.main:app",
"--reload"
],
"jinja": true,
"justMyCode": true
}
]
}
--reload修改后可以自动加载,适用于开发。- Debug FastAPI in VS Code IDE
- Debug FastAPI application in VSCode
docker build docker buildx build 如何构建多架构 Docker 镜像?