Skip to content

Commit

Permalink
feat(diffusers): bump to 0.15.0 + 2 weeks with lpw fix (9965cb5)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Apr 25, 2023
1 parent 0dcbd16 commit 77e9078
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ WORKDIR /api
ADD requirements.txt requirements.txt
RUN pip install -r requirements.txt

# [5e5ce13] adds xformers support to train_unconditional.py (#2520)
# Also includes LoRA safetensors support.
RUN git clone https://github.com/huggingface/diffusers && cd diffusers && git checkout 5e5ce13e2f89ac45a0066cb3f369462a3cf1d9ef
# [9965cb5] [Community Pipelines] Update lpw_stable_diffusion pipeline (#3197)
# Above was reverted shortly afterwards for not being backwards compatible.
RUN git clone https://github.com/huggingface/diffusers && cd diffusers && git checkout 9965cb50eac12e397473f01535aab43aae76b4ab
WORKDIR /api
RUN pip install -e diffusers

Expand Down
4 changes: 2 additions & 2 deletions api/convert_to_diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import torch
import json
from diffusers.pipelines.stable_diffusion.convert_from_ckpt import (
load_pipeline_from_original_stable_diffusion_ckpt,
download_from_original_stable_diffusion_ckpt,
)
from utils import Storage
from device import device_id
Expand Down Expand Up @@ -123,7 +123,7 @@ def main(
# user overrides
args.update(checkpoint_args)

pipe = load_pipeline_from_original_stable_diffusion_ckpt(**args)
pipe = download_from_original_stable_diffusion_ckpt(**args)
pipe.save_pretrained(model_id, safe_serialization=True)


Expand Down

0 comments on commit 77e9078

Please sign in to comment.