Skip to content

Conversation

@wfng92
Copy link
Contributor

@wfng92 wfng92 commented Mar 30, 2023

The existing check for opencv only covers the main package opencv-python. However, there exist four different packages for opencv:

  • opencv-python - main package
  • opencv-contrib-python - full package (comes with contrib/extra modules)
  • opencv-python-headless - main package without GUI
  • opencv-contrib-python-headless - full package without GUI

This PR ensures that diffusers will not raise import error when using cv2-related functions as long as they have installed any of the packages above.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 30, 2023

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten
Copy link
Contributor

cc @pcuenca @sayakpaul @williamberman what do you think here?

@patrickvonplaten
Copy link
Contributor

This looks ok/good to me

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one. Thanks a lot!

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@patrickvonplaten patrickvonplaten merged commit cd634a8 into huggingface:main Mar 31, 2023
w4ffl35 pushed a commit to w4ffl35/diffusers that referenced this pull request Apr 14, 2023
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants