Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert SD checkpoints directly from tensor file #337

Closed
ssube opened this issue Apr 15, 2023 · 0 comments
Closed

convert SD checkpoints directly from tensor file #337

ssube opened this issue Apr 15, 2023 · 0 comments
Labels
model/diffusion scope/convert status/fixed issues that have been fixed and released type/feature new features
Milestone

Comments

@ssube
Copy link
Owner

ssube commented Apr 15, 2023

The current SD checkpoint conversion code writes the model to .cache/*/working directory in PyTorch format before converting it into ONNX. That is not necessary and diffusers has a helper function to load directly from the .ckpt or .safetensors file: download_from_original_stable_diffusion_ckpt, https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py#L976

@ssube ssube added status/planned issues that have been planned but not started type/feature new features scope/convert model/diffusion labels Apr 15, 2023
@ssube ssube added this to the v0.10 milestone Apr 15, 2023
@ssube ssube modified the milestones: v0.10, v0.11 Apr 24, 2023
@ssube ssube added status/progress issues that are in progress and have a branch status/fixed issues that have been fixed and released and removed status/planned issues that have been planned but not started status/progress issues that are in progress and have a branch labels Apr 29, 2023
@ssube ssube closed this as completed Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
model/diffusion scope/convert status/fixed issues that have been fixed and released type/feature new features
Projects
None yet
Development

No branches or pull requests

1 participant