Skip to content

Incompatible Safetensors Metadata and Weight Name Issues in SDXL ControlNet Setup #9668

Answered by asomoza
Artemis1111 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, usually when you use UNet2DConditionModel.from_pretrained is with a diffusers unet model, which requires a config.json, so this should be always a directory and not a file.

You're saying that the weights_name doesn't get executed but this is not correct, the from_pretrained doesn't have a weights_name argument, so you're just passing a random argument.

If you're using from_pretrained to load a unet, it should be a directory that has a config.json file and the model weights filename should be either diffusion_pytorch_model.safetensors or diffusion_pytorch_model.fp16.safetensors

Also you're mixing more stuff, the error you're getting is with the pipeline, probably the model variable is …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Artemis1111
Comment options

Answer selected by Artemis1111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants