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

'TypeError: 'MolmoProcessor' object is not callable' #17

Closed
PadmajaVaishnavi opened this issue Jan 19, 2025 · 1 comment
Closed

'TypeError: 'MolmoProcessor' object is not callable' #17

PadmajaVaishnavi opened this issue Jan 19, 2025 · 1 comment

Comments

@PadmajaVaishnavi
Copy link

I have an issue with using the molmo models allenai/Molmo-7B-D-0924 and allenai/MolmoE-1B-0924 for my ICL and ZSL tasks, it continuously throwing the error,” TypeError Traceback (most recent call last) in <cell line: 0>() 39 40 # Step 7: Process the images using the processor ---> 41 inputs = processor(images=example_images, return_tensors="pt", padding=True) 42 target_input = processor(images=target_image, return_tensors="pt") 43 TypeError: 'MolmoProcessor' object is not callable”, could you please help me with this error.

@chrisc36
Copy link
Collaborator

The models in HF have a slightly different API, so you need to call processor.process

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