From 64444025a9391db469645db353953478e8eb9a37 Mon Sep 17 00:00:00 2001 From: spezialspezial <75758219+spezialspezial@users.noreply.github.com> Date: Wed, 31 Aug 2022 07:08:46 +0200 Subject: [PATCH 1/2] Update simplet2i.py (#228) Typo causing bug when preinitializing the model. Unsupported Sampler: klms, Defaulting to plms --- ldm/simplet2i.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldm/simplet2i.py b/ldm/simplet2i.py index 645f84af53..b83280471d 100644 --- a/ldm/simplet2i.py +++ b/ldm/simplet2i.py @@ -124,7 +124,7 @@ class T2I: grid=False, width=512, height=512, - sampler_name='klms', + sampler_name='k_lms', latent_channels=4, downsampling_factor=8, ddim_eta=0.0, # deterministic From 2aa83932728242b05248fada8447506e2fbed9f0 Mon Sep 17 00:00:00 2001 From: Jason Toffaletti Date: Tue, 30 Aug 2022 23:00:40 -0700 Subject: [PATCH 2/2] set PYTORCH_ENABLE_MPS_FALLBACK in mac environment (#232) - this enables cpu fallback for op not yet implemented for m1 gpu --- environment-mac.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/environment-mac.yaml b/environment-mac.yaml index 42a5c359e3..be63a05540 100644 --- a/environment-mac.yaml +++ b/environment-mac.yaml @@ -30,3 +30,5 @@ dependencies: - -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers - -e git+https://github.com/lstein/k-diffusion.git@master#egg=k-diffusion - -e . +variables: + PYTORCH_ENABLE_MPS_FALLBACK: 1