Fix detect.py URL inference (#5525)
* Fix detect.py URL inference
Allows detect.py to run inference on remote URL sources, i.e.:
```python
!python detect.py --weights yolov5s.pt --source https://ultralytics.com/assets/zidane.jpg # image URL
!python detect.py --weights yolov5s.pt --source https://ultralytics.com/assets/decelera_landscape.mov # video URL
```
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ciCo-authored-by:
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
正在显示
请
注册
或者
登录
后发表评论