question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icevision no longer works with the latest `sahi` release

See original GitHub issue

🐛 Bug

Describe the bug

Icevision stopped working with the latest sahi release (0.11.0).

When trying to do: from icevision.all import *

I get: ModuleNotFoundError: No module named 'sahi.model'

Looking at the code, I see the following:

sahi.model import DetectionModel

However, in the latest sahi release, the module structure contains a models subfolder, not model. For instance, in their predict.py script, there is the following:

from sahi.models.base import DetectionModel

One can look at their new folder/package structure here.

Two possible solutions:

  • Change icevision code to reference sahi.models instead of sahi.model, or
  • Pin sahi version to < 0.11.0

To Reproduce Steps to reproduce the behavior:

  1. Install icevision
  2. Try to run from icevision.all import *

Expected behavior

Icevision modules are imported successfully

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 18.04
  • Python: 3.9

Additional context Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rbaverycommented, Nov 1, 2022

nevermind, there’s already a PR up for this: https://github.com/airctic/icevision/pull/1147/files

1reaction
rbaverycommented, Nov 1, 2022

I think this requirement needs to be more restrictive so that only up to version 0.10.8 is installed: https://github.com/airctic/icevision/blob/master/setup.cfg#L37

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · airctic/icevision - GitHub
Icevision no longer works with the latest sahi release bug Something isn't working ... icevision import lead to the following error "AttributeError: module ......
Read more >
Getting Started with Object Detection using IceVision
1. Install IceVision. · 2. Download and prepare a dataset to work with. · 3. Select an object detection library, model, and backbone....
Read more >
Installation - IceVision
Depending on what version of cuda driver you'd like to use, you can install different versions of torch builds. If you're not sure...
Read more >
Semantic Segmentation - IceVision
IceVision is a Framework for object detection, instance segmentation and semantic segmentation that makes it easier to prepare data, train an object detection ......
Read more >
Small Object Detection with SAHI - IceVision
You can find more detailed info about this work in this blog post. Installing Icevision and dependencies + SAHI. Install from pypi... #...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found