yolov5-fastapi-demo:YOLOv5的FastAPI包装器-源码

上传者: 42102933 | 上传时间: 2021-06-06 15:06:07 | 文件大小: 651KB | 文件类型: ZIP
yolov5-fastapi-demo 这是一个演示的FastAPI应用程序,允许用户上传图像,使用预先训练的YOLOv5模型执行推理以及接收JSON格式的结果。 此存储库还包括Jinja2 HTML模板,因此您可以通过Web浏览器(位于localhost:8000)访问此界面。 要求 安装了所有require.txt依赖关系的Python 3.8或更高版本,包括torch> = 1.7(根据 )。 要安装运行: pip install -r requirements.txt 推理 您可以使用python server.py或uvicorn server:app --reload初始化服务器 您可以通过以下几种方法测试服务器: 使用client.py这是使用请求库将一批图像和模型名称上载到localhost:8000/detect/并接收JSON推理结果的基本示例。 在网络浏览器

文件下载

资源详情

[{"title":"( 15 个子文件 651KB ) yolov5-fastapi-demo:YOLOv5的FastAPI包装器-源码","children":[{"title":"yolov5-fastapi-demo-main","children":[{"title":".gitignore <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"images","children":[{"title":"bus.jpg <span style='color:#111;'> 476.01KB </span>","children":null,"spread":false},{"title":"zidane.jpg <span style='color:#111;'> 164.99KB </span>","children":null,"spread":false}],"spread":true},{"title":"templates","children":[{"title":"show_results.html <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"main.css <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"layout.html <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"about.html <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"home.html <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false}],"spread":true},{"title":"requirements.txt <span style='color:#111;'> 797B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"server.py <span style='color:#111;'> 8.30KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"fastapi_yolov5_minimal_client_server_example","children":[{"title":"client_minimal.py <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"server_minimal.py <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitattributes <span style='color:#111;'> 66B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • qq_38014808 :
    用户下载后在一定时间内未进行评价,系统默认好评。
    2021-08-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明