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

Error : cannot import name 'owl_v2_image' from 'vision_agent.tools' #337

Closed
RagavMaddali opened this issue Jan 6, 2025 · 1 comment
Closed

Comments

@RagavMaddali
Copy link

Getting 'cannot import name 'owl_v2_image' from 'vision_agent.tools'' while following readme steps

Steps:

  1. Create and use venv
    • python3.11 -m venv .venv
    • source .venv/bin/activate
    • pip install vision-agent
      This installed vision-agent 0.2.222
  2. Pulling ollama models
    • ollama pull llama3.2-vision
    • ollama pull mxbai-embed-large
  3. Trying basic example
from vision_agent.agent import OllamaVisionAgentCoder
agent = OllamaVisionAgentCoder(verbosity=2)
code = agent("Count the number of people in this image", media="people.jpeg")

The plan is getting generated, code is getting generated but code execution is failing with the below error
ImportError: cannot import name 'owl_v2_image' from 'vision_agent.tools'

@dillonalaird
Copy link
Member

Thanks for catching this, should be fixed in this PR #342 it's because of some name updates to the tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants