-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stream with 0fps? #3196
Comments
@424124 0 FPS sounds like a great stream haha I assume we'll need to add some floor to the wait time op to account for these types of streams (!). |
@424124 good news 😃! Your original issue may now been fixed ✅ in PR #3216. To receive this update you can:
Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀! |
@glenn-jocher Thanks, that fixed the issue perfectly! |
Tried to run detect.py on a live camera stream but there is no movement in the popup.
Fusing layers...
Model Summary: 224 layers, 7266973 parameters, 0 gradients
1/1: 0... success (640x480 at 0.00 FPS).
Exception in thread Thread-1
Exception in thread :
Thread-2Traceback (most recent call last):
:
File "C:\Users\Admin\anaconda3\lib\threading.py", line 932, in _bootstrap_inner
Traceback (most recent call last):
File "C:\Users\Admin\anaconda3\lib\threading.py", line 932, in _bootstrap_inner
self.run()self.run()
File "C:\Users\Admin\anaconda3\lib\threading.py", line 870, in run
File "C:\Users\Admin\anaconda3\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "c:\OG\yolov5\utils\datasets.py", line 326, in update
self._target(*self._args, **self._kwargs)
File "c:\OG\yolov5\utils\datasets.py", line 326, in update
time.sleep(1 / self.fps) # wait time
time.sleep(1 / self.fps) # wait timeZeroDivisionError
: ZeroDivisionErrorfloat division by zero:
float division by zero
it still attempts to detect but on a still 0FPS or still frame?
0: 480x640 1 stop sign, Done. (0.018s)
0: 480x640 1 stop sign, Done. (0.017s)
0: 480x640 1 stop sign, Done. (0.016s)
0: 480x640 1 stop sign, Done. (0.014s)
0: 480x640 1 stop sign, Done. (0.016s)
0: 480x640 1 stop sign, Done. (0.012s)
0: 480x640 1 stop sign, Done. (0.017s)
0: 480x640 1 stop sign, Done. (0.013s)
The text was updated successfully, but these errors were encountered: