GithubHelp home page GithubHelp logo

Comments (2)

misza222 avatar misza222 commented on July 30, 2024 1

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.*

from icevision.

shravankumar147 avatar shravankumar147 commented on July 30, 2024

Hi,

I Encounter the same issue,

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.

icedata 0.5.1
icevision 0.12.0
sahi 0.11.6

As the error is pointing to the icevision/models/inference_sahi.py file, I looked into it and modified as below:

from sahi import DetectionModel instead from sahi.model import DetectionModel

This solved the issue.

from icevision.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.