Plot the number of object specified through multiple images, accept singular form for object only.
Type
Default
Details
images
list
list of images to be extracted
object
str
object to detect
path
str
object_count_bar_plot.png
path to save plot
yolo
bool
False
whether to use YOLO or GPT only
tools = [tool_schema(fn) for fn in [list_image_files, plot_object]]m = form_msgs([ ("system", "You are a helpful assistant. Use the supplied tools to assist the user."), ("user", "Find the images at Olympiaterminaali on 10.07.2024 during 13:00-14:00."), ("user", "Plot the number of cars that appeared in these images and return the path to the plot.")]) # Sometimes it runs, sometimes it doesn't. It is still the old error of no aux_fncomplete(m, tools=tools)
('assistant',
'The plot showing the number of cars that appeared in the images taken at Olympiaterminaali on 10.07.2024 during 13:00-14:00 has been created. You can find the plot at the path "object_count_bar_plot.png".')
print_msgs(m)
>> System:
You are a helpful assistant. Use the supplied tools to assist the user.
>> User:
Find the images at Olympiaterminaali on 10.07.2024 during 13:00-14:00.
>> User:
Plot the number of cars that appeared in these images and return the path to the plot.
>> Assistant:
The plot showing the number of cars that appeared in the images taken at Olympiaterminaali on
10.07.2024 during 13:00-14:00 has been created. You can find the plot at the path
"object_count_bar_plot.png".