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

Can't load visual processor #48

Open
OliviaWang123456 opened this issue Nov 11, 2024 · 1 comment
Open

Can't load visual processor #48

OliviaWang123456 opened this issue Nov 11, 2024 · 1 comment

Comments

@OliviaWang123456
Copy link

Hi,

Thank you for your work.
I download the VQ model and succesfully load vae
vae = AutoModel.from_pretrained(MODEL_HUB, trust_remote_code=True)
But I failed to load image processor
processor = AutoImageProcessor.from_pretrained(MODEL_HUB, trust_remote_code=True)
with Error as follow:
TypeError: unsupported operand type(s) for |: 'type' and 'EnumMeta'

transformers==4.44.0 fllow the requirement

Could u plz tell me what's wrong.
Thanks a lot.

@ryanzhangfan
Copy link
Collaborator

Please refer to #40 to see if it helps

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