vision-agent icon indicating copy to clipboard operation
vision-agent copied to clipboard

Loading local model, running task error

Open lxyzler opened this issue 1 week ago • 0 comments

Traceback (most recent call last): File "va_ollama.py", line 3, in agent("Count the people in the image", media="./people.png") File "/usr/local/lib/python3.9/dist-packages/vision_agent/agent/vision_agent_coder.py", line 393, in call code_and_context = self.generate_code(input) File "/usr/local/lib/python3.9/dist-packages/vision_agent/agent/vision_agent_coder.py", line 553, in generate_code plan_context = self.planner.generate_plan( # type: ignore File "/usr/local/lib/python3.9/dist-packages/vision_agent/agent/vision_agent_planner.py", line 413, in generate_plan custom_tool_names, T.FUNCTION_TOOLS, T.UTIL_TOOLS # type: ignore AttributeError: module 'vision_agent.tools' has no attribute 'FUNCTION_TOOLS'

The following operation has been completed ollama pull llama3.1 ollama pull mxbai-embed-large

The code for executing the file is as follows

import vision_agent as va agent = va.agent.OllamaVisionAgentCoder() agent("Count the people in the image", media="./people.png")

lxyzler avatar Feb 18 '25 07:02 lxyzler