From 7686bcd66e06dd34ad9e28b655f06595e1eb90a1 Mon Sep 17 00:00:00 2001 From: Victor Hall Date: Fri, 7 Jul 2023 00:58:05 -0400 Subject: [PATCH] update diffusers to 0.18.0 on all platforms --- docker/requirements-build.txt | 2 +- requirements.txt | 2 +- utils/convert_original_stable_diffusion_to_diffusers.py | 3 ++- windows_setup.cmd | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/requirements-build.txt b/docker/requirements-build.txt index 8540112..64feddc 100644 --- a/docker/requirements-build.txt +++ b/docker/requirements-build.txt @@ -1,4 +1,4 @@ -diffusers[torch]>=0.17.1 +diffusers[torch]>=0.18.0 ninja numpy omegaconf==2.2.3 diff --git a/requirements.txt b/requirements.txt index f746db2..772d6a8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ torch==2.0.1 torchvision==0.15.2 transformers==4.29.2 -diffusers[torch]==0.17.1 +diffusers[torch]==0.18.0 pynvml==11.4.1 bitsandbytes==0.38.1 ftfy==6.1.1 diff --git a/utils/convert_original_stable_diffusion_to_diffusers.py b/utils/convert_original_stable_diffusion_to_diffusers.py index 5a70a0e..5cb6eb3 100644 --- a/utils/convert_original_stable_diffusion_to_diffusers.py +++ b/utils/convert_original_stable_diffusion_to_diffusers.py @@ -161,4 +161,5 @@ if __name__ == "__main__": # only save the controlnet model pipe.controlnet.save_pretrained(args.dump_path, safe_serialization=args.to_safetensors) else: - pipe.save_pretrained(args.dump_path, safe_serialization=args.to_safetensors) \ No newline at end of file + pipe.save_pretrained(args.dump_path, safe_serialization=args.to_safetensors) + print(f"Saved diffusers copy of model to {args.dump_path}.") \ No newline at end of file diff --git a/windows_setup.cmd b/windows_setup.cmd index 52958d9..7b8d555 100644 --- a/windows_setup.cmd +++ b/windows_setup.cmd @@ -5,7 +5,7 @@ cd . python -m pip install --upgrade pip pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url "https://download.pytorch.org/whl/cu118" pip install -U transformers==4.29.2 -pip install -U diffusers[torch]==0.14.0 +pip install -U diffusers[torch]==0.18.0 pip install pynvml==11.4.1 pip install -U https://github.com/victorchall/everydream-whls/raw/main/bitsandbytes-0.38.1-py2.py3-none-any.whl pip install ftfy==6.1.1