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

'Image' object is not iterable #4

Open
changqinyao opened this issue Jun 28, 2024 · 2 comments
Open

'Image' object is not iterable #4

changqinyao opened this issue Jun 28, 2024 · 2 comments

Comments

@changqinyao
Copy link

No description provided.

@jzhang38
Copy link
Collaborator

Could you provide your code & detailed error message?

@makemecker
Copy link

No description provided.

The image argument should be inside a list:

images_tensor = process_images([image], image_processor, model.config).to(model.device, dtype=torch.float16)

Source

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

3 participants