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'
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 processorprocessor = 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.