sicara / tf-explain

Interpretability Methods for tf.keras models with Tensorflow 2.x
https://tf-explain.readthedocs.io
MIT License
1.02k stars 112 forks source link

Installation should accept opencv-contrib-python #142

Closed bersbersbers closed 3 years ago

bersbersbers commented 4 years ago
> pip check
tf-explain 0.2.1 requires opencv-python, which is not installed.

But I have opencv-contrib-python installed, and everything is working fine. See also https://github.com/aleju/imgaug/issues/473

RaphaelMeudec commented 4 years ago

@bersbersbers thanks for pointing out! Would be happy to review a PR for it if you have time to work on it

darinmandarin commented 4 years ago

I also have an issue with opencv when importing tf_explain or any of callbacks.

AttributeError: module 'cv2' has no attribute 'COLORMAP_VIRIDIS'. Neither of installed opencv packages work (opencv-contrib-python==4.3.0.36 opencv-python==4.3.0.36)

RaphaelMeudec commented 3 years ago

I think the problem has been fixed on master already and shipped in the last release. Closing this issue, thanks for opening it!