You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
按SDXL.md完成模型下载后,运行sdxl.py文件时对输入文本做了77的截断,后将stable-diffusion/text_encoder/config.json中"max_position_embeddings"改为248,报错如下
RuntimeError: Error(s) in loading state_dict for CLIPTextModel:
size mismatch for text_model.embeddings.position_embedding.weight: copying a param with shape torch.Size([77, 1024]) from checkpoint, the shape in current model is torch.Size([248, 1024]).
You may consider adding ignore_mismatched_sizes=True in the model from_pretrained method.
请问是需要修改text_encoder/config.json中的"architectures": ["CLIPTextModel"]吗?
The text was updated successfully, but these errors were encountered:
按SDXL.md完成模型下载后,运行sdxl.py文件时对输入文本做了77的截断,后将stable-diffusion/text_encoder/config.json中"max_position_embeddings"改为248,报错如下
RuntimeError: Error(s) in loading state_dict for CLIPTextModel:
size mismatch for text_model.embeddings.position_embedding.weight: copying a param with shape torch.Size([77, 1024]) from checkpoint, the shape in current model is torch.Size([248, 1024]).
You may consider adding
ignore_mismatched_sizes=True
in the modelfrom_pretrained
method.请问是需要修改text_encoder/config.json中的"architectures": ["CLIPTextModel"]吗?
The text was updated successfully, but these errors were encountered: