gligen / GLIGEN

Open-Set Grounded Text-to-Image Generation
MIT License
1.91k stars 145 forks source link

Unexpected keys when running inference #83

Closed athena913 closed 1 month ago

athena913 commented 1 month ago

Hi,

I tried running gligen_inference.py, but I am getting the following error. I am using the Clip from https://github.com/openai/CLIP.git. I would appreciate any help on how I can fix this? Thanks.

raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for FrozenCLIPEmbedder: Unexpected key(s) in state_dict: "transformer.text_model.embeddings.position_ids".