transformers icon indicating copy to clipboard operation
transformers copied to clipboard

Have to import cv2 and pop up window frist, or else it stuck forever

Open leemengwei opened this issue 7 months ago • 2 comments

@SSacSim Yes One have to import cv2 and pop up window frist. Thats really annoying.

Image

transformers 4.48.3 opencv-python 4.10.0.84

@purusharthmalik

Originally posted by @leemengwei in #37239

leemengwei avatar May 15 '25 06:05 leemengwei

I'm not sure what we can do with this error! Have you tried opening an issue with openCV?

Rocketknight1 avatar May 15 '25 13:05 Rocketknight1

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Jun 14 '25 08:06 github-actions[bot]

Same issue importing transformers in a conda env with cv2 causes to freeze with the first frame indefinitely,

However in the same env cv2.imshow() works when transformers is commented.

Jaykumaran avatar Jun 19 '25 15:06 Jaykumaran

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Jul 14 '25 08:07 github-actions[bot]