You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, when I import icevision in colab I get an error: ModuleNotFoundError: No module named 'sahi.model'
To Reproduce
Steps to reproduce the behavior: !pip install icevision[all] from icevision.all import *
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
[<ipython-input-5-2dc2b878494d>](https://localhost:8080/#) in <module>
----> 1 from icevision.all import *
2 frames
[/usr/local/lib/python3.7/dist-packages/icevision/__init__.py](https://localhost:8080/#) in <module>
5 from icevision.data import *
6 from icevision import backbones
----> 7 from icevision import models
8 from icevision.metrics import *
9 from icevision.visualize import *
[/usr/local/lib/python3.7/dist-packages/icevision/models/__init__.py](https://localhost:8080/#) in <module>
30
31 if SoftDependencies.sahi:
---> 32 from icevision.models import inference_sahi
[/usr/local/lib/python3.7/dist-packages/icevision/models/inference_sahi.py](https://localhost:8080/#) in <module>
12
13
---> 14 from sahi.model import DetectionModel
15 from sahi.prediction import ObjectPrediction
16 from sahi.predict import get_sliced_prediction as sahi_get_sliced_prediction
ModuleNotFoundError: No module named 'sahi.model'
Screenshots
Where it happens:
colab (possibly others, but I didn't have a chance to check)
The text was updated successfully, but these errors were encountered:
The problem is with sahi library - they have changed the interface between version 0.10 and 0.11 and icevision 0.12 (most recent version on pip) relies on things that are only present in <= sahi 0.10.*
The Issue occurred when I tried to import --> from icevision.all import *
[/usr/local/lib/python3.8/dist-packages/icevision/models/inference_sahi.py](https://localhost:8080/#) in <module>
---> 14 from sahi.model import DetectionModel
15 from sahi.prediction import ObjectPrediction
16 from sahi.predict import get_sliced_prediction as sahi_get_sliced_prediction
ModuleNotFoundError: No module named 'sahi.model'
My Installation followed :
# # Torch - Torchvision - IceVision - IceData - MMDetection - YOLOv5 - EfficientDet Installation
!wget https://raw.githubusercontent.com/airctic/icevision/master/icevision_install.sh
# # Choose your installation target: cuda11 or cuda10 or cpu
!bash icevision_install.sh cuda11
then installed sahi
!pip install sahi -U
then I checked the versions of Icevision and sahi.
🐛 Bug
Hi there, when I import icevision in colab I get an error:
ModuleNotFoundError: No module named 'sahi.model'
To Reproduce
Steps to reproduce the behavior:
!pip install icevision[all]
from icevision.all import *
Screenshots
Where it happens:
The text was updated successfully, but these errors were encountered: