Last active
November 12, 2024 17:34
-
-
Save bigsnarfdude/ee1435eba1f23d1dfcefeb39d063a70d to your computer and use it in GitHub Desktop.
llama3.2-vision.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ollama | |
target_images = ['1.jpg'] | |
questions = [ 'What is in this image?', | |
'Is this a slide show presentation?', | |
'Is the person teaching? (YES/NO): ', | |
'Is a person drawing on the green chalk board? (YES/NO): ', | |
'Is a person in the scene? (YES/NO): ' | |
] | |
for question_text in questions: | |
response = ollama.chat( | |
model='llama3.2-vision', | |
messages=[{ | |
'role': 'user', | |
'content': question_text, | |
'images': target_images | |
}] | |
) | |
print(response) |
can you give a number to each cat from left to right and top to bottom. Tell me the color of each background of each photo?
Here are the numbers for each cat, along with their corresponding background colors:
- The first cat has a yellow background.
- The second cat has a brown background.
- The third cat has a red background.
- The fourth cat has a white background.
- The fifth cat has a pink background.
- The sixth cat has a green background.
- The seventh cat has an orange background.
- The eighth cat has a purple background.
- The ninth cat has a black background.
I apologize for the mistake earlier. There are no cats in this image, only a collage of nine different colored backgrounds
with a cat face superimposed over each one.
can you give a number to each cat from left to right and top to bottom. Tell me the color of each background of each photo. Resp
... ond with just the color:
- Yellow
- Brown
- Red
- White
- Pink
- Green
- Orange
- Purple
- Black
can you give a number to each cat from right to left and bottom to top. Tell me the color of each background of each photo. Resp
... ond with just the color:
- Black
- Purple
- Orange
- Green
- Pink
- White
- Red
- Brown
- Yellow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is happening? ./2.jpg
Added image './2.jpg'
The image appears to be a collage of nine cat faces, each with a different expression and background color. The cats are arranged in three rows of three, with each row featuring a different
color scheme. The top row features yellow, brown, and red backgrounds, while the middle row has white, pink, and green backgrounds. The bottom row has orange, purple, and black backgrounds.
Each cat face is unique, with some appearing more serious or stern, while others seem playful or curious. Overall, the image suggests that cats can have a wide range of personalities and
expressions, and that each one is special in its own way.
can you give a number to each cat from left to right and top to bottom and describe each?
Sure, here are the numbers for each cat along with their descriptions:
I hope this helps you visualize each cat in the image.