You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error reporting code is yolov5 6.2. When I use 5.0, it is normal. When I use 6.1, it also reports an error. If ROOT is removed, it can run successfully. However, there is no 5.0 process when detecting video streams.
After my search, the error is the judgment of "if Path(sources).is_file()", but when I correct it, there will still be other errors.
In any case, there are some problems with ’LoadStreams‘ under Windows10
When I replace
if os.path.isfile(sources):
with open(sources) as f:
sources = [x.strip() for x in f.read().strip().splitlines() if len(x.strip())]
else:
sources = [sources]
with
sources = Path(sources).read_text().rsplit() if Path(sources).is_file() else [sources]
it works normally.
Search before asking
YOLOv5 Component
Detection
Bug
I can correctly run python detect on Google Colab python detect.py --source 'https://ultralytics.com/images/zidane.jpg'
However, an error will be reported under Window10
The error reporting code is yolov5 6.2. When I use 5.0, it is normal. When I use 6.1, it also reports an error. If ROOT is removed, it can run successfully. However, there is no 5.0 process when detecting video streams.
After my search, the error is the judgment of "if Path(sources).is_file()", but when I correct it, there will still be other errors.
In any case, there are some problems with ’LoadStreams‘ under Windows10
Environment
YOLO:YOLOv5-6.2 2022-6-30 Python-3.7.13 torch-1.7.1+cu110 CUDA:0 (NVIDIA GeForce RTX 3060, 12288MiB)
OS:Windows10
python:3.7
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: