Skip to content

How to specify filename in ControlNetModel.from_pretrained()? #10687

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

You must be logged in to vote

Hi, to be able load diffusers controlnets with from_pretrained() they need to have the correct naming, that means it should be diffusion_pytorch_model.safetensors like for example, in this repository. This means that probably that model file is not in the diffusers format and in the single file format which you can try to load using from_single_file().

If it doesn't work, you should ask the author what's the format of that file and if it's a diffusers format one, you can ask them to name it accordingly.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by CaledoniaProject
Comment options

You must be logged in to vote
0 replies
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