Skip to content

Conversation

@Cyberes
Copy link
Contributor

@Cyberes Cyberes commented Dec 8, 2022

I was running into issues converting a .ckpt to Diffusers format where the model didn't have the global_step key. The model I was converting was merged via the WebUI's checkpoint merger.

If global_step isn't present then just set it to None and let the checks on line 833 figure out what to do.

Also, check if the config file exists before downloading it and skip downloading it if it does.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 8, 2022

The documentation is not available anymore as the PR was closed or merged.

@Cyberes Cyberes changed the title Handle missing global_step key Handle missing global_step key in scripts/convert_original_stable_diffusion_to_diffusers.py Dec 8, 2022
@patrickvonplaten
Copy link
Contributor

Thanks for the fix here :-)

@patrickvonplaten patrickvonplaten merged commit d2dc4de into huggingface:main Dec 12, 2022
sliard pushed a commit to sliard/diffusers that referenced this pull request Dec 21, 2022
…fusion_to_diffusers.py (huggingface#1612)

handle missing global_step key and don't download config if it already exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants