diff options
author | MrCheeze <fishycheeze@yahoo.ca> | 2022-12-10 16:29:26 +0000 |
---|---|---|
committer | MrCheeze <fishycheeze@yahoo.ca> | 2022-12-10 16:29:26 +0000 |
commit | bd81a09eacf02dad095b98094ab936f276d0343f (patch) | |
tree | e7fe2566b861c67363bf971b6cc3ff29723d99be /modules/sd_hijack_inpainting.py | |
parent | a1c8ad88283f7b3e861e4722c71e39bf71eec744 (diff) | |
download | stable-diffusion-webui-gfx803-bd81a09eacf02dad095b98094ab936f276d0343f.tar.gz stable-diffusion-webui-gfx803-bd81a09eacf02dad095b98094ab936f276d0343f.tar.bz2 stable-diffusion-webui-gfx803-bd81a09eacf02dad095b98094ab936f276d0343f.zip |
fix support for 2.0 inpainting model while maintaining support for 1.5 inpainting model
Diffstat (limited to 'modules/sd_hijack_inpainting.py')
-rw-r--r-- | modules/sd_hijack_inpainting.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/sd_hijack_inpainting.py b/modules/sd_hijack_inpainting.py index 938f9a58..5018b047 100644 --- a/modules/sd_hijack_inpainting.py +++ b/modules/sd_hijack_inpainting.py @@ -324,12 +324,11 @@ def should_hijack_inpainting(checkpoint_info): def do_inpainting_hijack(): # most of this stuff seems to no longer be needed because it is already included into SD2.0 - # LatentInpaintDiffusion remains because SD2.0's LatentInpaintDiffusion can't be loaded without specifying a checkpoint # p_sample_plms is needed because PLMS can't work with dicts as conditionings # this file should be cleaned up later if weverything tuens out to work fine # ldm.models.diffusion.ddpm.get_unconditional_conditioning = get_unconditional_conditioning - ldm.models.diffusion.ddpm.LatentInpaintDiffusion = LatentInpaintDiffusion + # ldm.models.diffusion.ddpm.LatentInpaintDiffusion = LatentInpaintDiffusion # ldm.models.diffusion.ddim.DDIMSampler.p_sample_ddim = p_sample_ddim # ldm.models.diffusion.ddim.DDIMSampler.sample = sample_ddim |