Closed patrickvonplaten closed 1 month ago
Sadly it often happens that cv2 is incorrectly installed: https://github.com/opencv/opencv-python/issues/884 which shouldn't bother people from using mistral_common's text encoding capabilities.
This PR makes sure that all import errors are caught and instead of raising we simply throw a warning.
cc @youkaichao as well
thanks for the update!
Sadly it often happens that cv2 is incorrectly installed: https://github.com/opencv/opencv-python/issues/884 which shouldn't bother people from using mistral_common's text encoding capabilities.
This PR makes sure that all import errors are caught and instead of raising we simply throw a warning.
cc @youkaichao as well