baaivision / Emu3

Next-Token Prediction is All You Need
Apache License 2.0
1.81k stars 71 forks source link

Can't load visual processor #48

Open OliviaWang123456 opened 4 days ago

OliviaWang123456 commented 4 days ago

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 commented 4 days ago

Please refer to https://github.com/baaivision/Emu3/issues/40 to see if it helps