Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
yingying 242a945a3e | 1 year ago | |
---|---|---|
.dockerignore | 1 year ago | |
.gitignore | 1 year ago | |
.pre-commit-config.yaml | 1 year ago | |
Dockerfile | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
gradio_yolov8_det.py | 1 year ago | |
gradio_yolov8_det_docker.py | 1 year ago | |
gradio_yolov8_det_v03.py | 1 year ago | |
gyd_fastapi_server.py | 1 year ago | |
requirements.txt | 1 year ago | |
setup.cfg | 1 year ago | |
v03.md | 1 year ago |
基于Gradio的YOLOv8通用目标检测与图像分割演示系统
可自定义检测模型、演示便捷、安装简单
曾逸夫,从事人工智能研究与开发;主研领域:计算机视觉;YOLOv8官方开源项目代码贡献人;YOLOv5官方开源项目代码贡献人
❤️ Github:https://github.com/Zengyf-CVer
2023-01-23
⚡ Gradio YOLOv8 Det v0.2.2正式上线2023-01-22
⚡ Gradio YOLOv8 Det v0.2正式上线2023-01-15
⚡ Gradio YOLOv8 Det v0.1正式上线本项目提供了在线demo,点击下面的logo,进入Hugging Face Spaces中快速体验:
本项目提供了6个图片示例,用户可以快速体验检测与分割效果:
.
├── gradio-yolov8-det # 项目名称
│ ├── model_config # 模型配置
│ │ ├── model_name_p5_all.yaml # YOLOv8 模型名称(yaml版)
│ │ ├── model_name_p5_all.csv # YOLOv8 模型名称(csv版)
│ │ └── model_name_custom.yaml # 自定义模型名称(yaml版)
│ ├── cls_name # 类别名称
│ │ ├── cls_name_zh.yaml # 类别名称文件(yaml版-中文)
│ │ ├── cls_name_en.yaml # 类别名称文件(yaml版-英文)
│ │ ├── cls_name_ru.yaml # 类别名称文件(yaml版-俄语)
│ │ ├── cls_name_es.yaml # 类别名称文件(yaml版-西班牙语)
│ │ ├── cls_name_ar.yaml # 类别名称文件(yaml版-阿拉伯语)
│ │ ├── cls_name_ko.yaml # 类别名称文件(yaml版-韩语)
│ │ ├── cls_name.yaml # 类别名称文件(yaml版-中文-v0.1)
│ │ └── cls_name.csv # 类别名称文件(csv版-中文)
│ ├── util # 工具包
│ │ ├── fonts_opt.py # 字体管理
│ │ └── pdf_opt.py # PDF管理
│ ├── img_examples # 示例图片
│ ├── __init__.py # 初始化文件
│ ├── gradio_yolov8_det.py # v0.2.2主运行文件
│ ├── gyd_fastapi_server.py # Gradio FastAPI运行文件
│ ├── setup.cfg # pre-commit CI检查源配置文件
│ ├── .pre-commit-config.yaml # pre-commit配置文件
│ ├── LICENSE # 项目许可
│ ├── CodeCheck.md # 代码检查
│ ├── .gitignore # git忽略文件
│ ├── README.md # 项目说明
│ └── requirements.txt # 脚本依赖包
conda create -n yolo python==3.8
conda activate yolo # 进入环境
git clone https://gitee.com/CV_Lab/gradio-yolov8-det.git
cd gradio-yolov8-det
pip install -r ./requirements.txt -U
📌 运行
python gradio_yolov8_det.py
# 在浏览器中输入:http://127.0.0.1:7860/或者http://127.0.0.1:7861/ 等等(具体观察shell提示)
❗ 注:默认类别文件cls_name_zh.yaml|cls_name.csv
❤️ 本项目提供了一些脚本指令,旨在扩展项目的功能。
❗ 注:其中的一些功能是界面组件(按钮、文本框等)无法实现的,需要通过脚本指令完成:
# 共享模式
python gradio_yolov8_det.py -is # 在浏览器中以共享模式打开,https://**.gradio.app/
# 图片输入源切换,默认为图片上传
python gradio_yolov8_det.py -src upload # 图片上传
python gradio_yolov8_det.py -src webcam # webcam拍照
# 输入图片操作模式,默认为图片编辑器
python gradio_yolov8_det.py -it editor # 图片编辑器
python gradio_yolov8_det.py -it select # 区域选择
# 自定义下拉框默认模型名称
python gradio_yolov8_det.py -mn yolov8m
# 自定义NMS置信度阈值
python gradio_yolov8_det.py -conf 0.8
# 自定义NMS IoU阈值
python gradio_yolov8_det.py -iou 0.5
# 设置推理尺寸,默认为640
python gradio_yolov8_det.py -isz 320
# 设置滑块步长,默认为0.05
python gradio_yolov8_det.py -ss 0.01
❤️ 本项目可以内嵌于FastAPI框架
python gyd_fastapi_server.py
📌 如需引用Gradio YOLOv8 Det v0.2.2,请在相关文章的参考文献中加入下面文字:
曾逸夫, (2023) Gradio YOLOv8 Det (Version 0.2.2).https://gitee.com/CV_Lab/gradio-yolov8-det.git.
No Description
Python INI Dockerfile Text Markdown
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》