Closed vhlk76 closed 3 years ago
👋 Hello @1180610212, thank you for your interest in 🚀 YOLOv5! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.
If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.
If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.
For business inquiries or professional support requests please visit https://www.ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com.
Python 3.8 or later with all requirements.txt dependencies installed, including torch>=1.7
. To install run:
$ pip install -r requirements.txt
YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.
跑detect的时候报错, def infer_fast(net, img, net_input_height_size, stride, upsample_ratio, cpu, pad_value=(0, 0, 0), img_mean=(128, 128, 128), imgscale=1/256): height, width, = img.shape # 实际高宽 请问有遇到吗?怎么解决的?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
你好,请问呢你最后解决了吗?
❔Question
detect.py文件中第63行中说“如果检测视频的时候想显示出来,可以在这里加一行 view_img = True”
save_img = True # 如果检测视频的时候想显示出来,可以在这里加一行 view_img = True view_img = True dataset = LoadImages(source, img_size=imgsz)
我希望在检测时能够将结果实时显示出来,但是貌似加了这一行也并没有什么作用?如果想要实时输出画框后的结果应该要如何实现呢?
❔Question
detect.py文件中第63行中说“如果检测视频的时候想显示出来,可以在这里加一行 view_img = True” `save_img = True
如果检测视频的时候想显示出来,可以在这里加一行 view_img = True
我希望在检测时能够将结果实时显示出来,但是貌似加了这一行也并没有什么作用?
如果想要实时输出画框后的结果应该要如何实现呢?