interactdiffusion icon indicating copy to clipboard operation
interactdiffusion copied to clipboard

Inference Error

Open Hammour-steak opened this issue 8 months ago • 4 comments

When I use the command python inference_batch.py --batch_size 1 --folder generated_output --seed 489 --scheduled-sampling 1.0 --half, unexpected error occurs:

RuntimeError: Error(s) in loading state_dict for FrozenCLIPEmbedder:
        Unexpected key(s) in state_dict: "transformer.text_model.embeddings.position_ids".

It origins from the code: text_encoder = instantiate_from_config(config['text_encoder']).to(device).eval() in inference.py, Incidentally, I used interact-diffusion-v1.pth. Is there anything wrong in this checkpoint? Thank you.

Hammour-steak avatar Jun 12 '24 07:06 Hammour-steak