Closed potipot closed 2 years ago
Apparently the issue comes from opencv-python
versions mismatch. When discovering isntalled packages:
pip list | grep "opencv"
output:
opencv-contrib-python 4.1.2.30
opencv-python 4.1.2.30
opencv-python-headless 4.5.5.62
opencv-python
is required by many packages but most recent version is needed by yolov5-icevision
: opencv-python>=4.1.2
opencv-python-headless
is only required by albumentations
and possibly thats when it gets installed.
In setup.py of version 1.0.3 we find:
CHOOSE_INSTALL_REQUIRES = [
(
("opencv-python>=4.1.1", "opencv-contrib-python>=4.1.1", "opencv-contrib-python-headless>=4.1.1"),
"opencv-python-headless>=4.1.1",
)
]
Not sure what is the actual cause of the problem. opencv-python-headless
is not installed in the pure colab environment.
A current workaround I've found is to manually install opencv-python-headless
to the coherent version:
pip install opencv-python-headless==4.1.2.30
Should we add the workaround to the notebooks or to the install script? Btw do we still need the colab_install
script?
I'd say to the install script?
And no, I don't think we need the colab_install
script, do we?
As Farid noted we can delete install_colab.sh
so add that workaround to the script it is then.
🐛 Bug
We get an import error when running icevision tutorial notebooks in colab.
To Reproduce Try and run installation and import in the notebook https://colab.research.google.com/github/airctic/icevision/blob/master/notebooks/negative_samples.ipynb
Desktop (please complete the following information):