Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError #389

Open
2 tasks done
ChristopherMarais opened this issue May 13, 2024 · 1 comment
Open
2 tasks done

ImportError #389

ChristopherMarais opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ChristopherMarais
Copy link

Search before asking

  • I have searched the Inference issues and found no similar bug report.

Bug

When trying to do

from inference.models import YOLOWorld

or

from inference.models import Clip

It gives an importerror. when changing the code to:

from inference.models.yolo_world import YOLOWorld

and

from inference.models.clip import Clip

it works. The versions of the imports that give import errors are also used in the package itself, it is used in /inference/models/yolo_world/yolo_world.py for instance.

I fixed it for myself, but the package should probably be updated with this small change.

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@ChristopherMarais ChristopherMarais added the bug Something isn't working label May 13, 2024
@PawelPeczek-Roboflow
Copy link
Collaborator

Yeah, that's not super clear as we've missed that in one of docs iteration.
Idea is the following - each model is plug-in to the inference package installable as extras (due to various aspects of licensing for different models)

image

We definitely need a docs page showcasing all extras we support.
As a quick way to help you, let me provide this link: https://github.com/roboflow/inference/blob/main/.release/pypi/inference.cpu.setup.py#L58

pip install inference[<extras-name>]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants