当前位置:网站首页>初试YOLOv7
初试YOLOv7
2022-07-26 11:17:00 【shikong2011】
初试YOLOv7
论文下载网址:https://arxiv.org/pdf/2207.02696.pdf
1、网页版demo
Huggingface提供了网页演示demo。登录Yolov7 - a Hugging Face Space by akhaliq,可以在左侧img点击方框选择图片后,选择model为yolov7(也可以选择yolov7-e6)点击 Submit后,在output可以看到输出的预测结果。
另外在Example下面有一张horse的图片,点击后也可以在输出看到结果。

2、代码运行

(1)安装requirements.txt
pip install -r requirements.txt
(2)下载模型
在github页面,有模型下载连接,直接点击后下载,当然也可以同时把所有的模型下载下来,放在detect.py同个目录。

(3)运行detect.py
直接在pycharm运行或者在终端中输入:
python detect.py --weights yolov7.pt --conf 0.25 --img-size 640 --source inference/images/horses.jpg
可以在runs\detect\exp3\horses.jpg中看到预测结果。

(4)训练自己的数据集
可以参考以下文章,不再赘述。
【环境配置】超详细,YOLOV7训练自己的数据集:
https://www.pudn.com/news/62c92c865f75f3409e909b15.html
yolov7从环境配置到训练自己的数据集AlexeyAB版本
https://blog.csdn.net/weixin_41868104/article/details/125663323
疑问1:如果没有下载模型,运行detect.py一般可以自动下载模型,但是在运行中发现git更新模型错误提示,具体方法还在研究中,网友们可以帮忙分析下。

边栏推荐
- Data visualization - White Snake 2: black snake robbery (2)
- ESP8266-Arduino编程实例-开发环境搭建(基于PlatformIO)
- 数据数据湖(十九):SQL API 读取Kafka数据实时写入Iceberg表
- Dichotomous template summary
- Pytorch——基于mmseg/mmdet训练报错:RuntimeError: Expected to have finished reduction in the prior iteration
- Orbslam2 cmakelists File Structure Parsing
- Basic concepts of JVM and memory management model
- 正点原子stm32中hal库iic模拟`#define SDA_IN() {GPIOB->MODER&=~(3<<(9*2));GPIOB->MODER|=0<<9*2;}` //PB9 输入模式
- How to configure the jdbcrealm data source?
- 服务器内存故障预测居然可以这样做!
猜你喜欢

easyui01

并发三大性质

【万字长文】使用 LSM-Tree 思想基于.Net 6.0 C# 实现 KV 数据库(案例版)

MySQL deadlock analysis

Application scheme of ankerui residual pressure monitoring system in residential quarter

QT——LCDNumber

梅科尔工作室-华为14天鸿蒙设备开发实战笔记八

MySQL basic knowledge summary

正点原子stm32中hal库iic模拟`#define SDA_IN() {GPIOB->MODER&=~(3<<(9*2));GPIOB->MODER|=0<<9*2;}` //PB9 输入模式

Three properties of concurrency
随机推荐
建模杂谈系列150 SCLC工程化实验3-SRule
easyui05
Data type of SQL Server database
Record errors encountered by individuals
A new technical director asked me to do an IP territorial function~
想让照片中的云飘起来?视频编辑服务一键动效3步就能实现
你敢信?开发一个管理系统我只用了两天时间
LeetCode / Scala - 两数,三数,四数,N数之和
Reproduce PHP one sentence Trojan horse
easyui02
大咖观点+500强案例,软件团队应该这样提升研发效能!
Query summary of SQL Server
What does it mean that the configuration file ends in RC
[学习进度]5月
Real time streaming protocol --rtsp
Substance Painter 2021软件安装包下载及安装教程
Integrity constraints of SQL Server database
梅科尔工作室-华为14天鸿蒙设备开发实战笔记八
【转载】多元高斯分布(The Multivariate normal distribution)
Classic Bluetooth connection process