Cleanup redundant SAM forward() methods (#4591)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
47ab96dab6
commit
2567b288c9
4 changed files with 14 additions and 118 deletions
|
|
@ -119,7 +119,7 @@ class LoadStreams:
|
|||
# Wait until a frame is available in each buffer
|
||||
while not all(self.imgs):
|
||||
if not all(x.is_alive() for x in self.threads) or cv2.waitKey(1) == ord('q'): # q to quit
|
||||
cv2.destroyAllWindows()
|
||||
self.close()
|
||||
raise StopIteration
|
||||
time.sleep(1 / min(self.fps))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue