InvokeAI/invokeai/backend
Lincoln Stein 685df33584
fix bug that caused black images when converting ckpts to diffusers in RAM (#2914)
Cause of the problem was inadvertent activation of the safety checker.

When conversion occurs on disk, the safety checker is disabled during loading.
However, when converting in RAM, the safety checker was not removed, resulting
in it activating even when user specified --no-nsfw_checker.

This PR fixes the problem by detecting when the caller has requested the InvokeAi
StableDiffusionGeneratorPipeline class to be returned and setting safety checker
to None. Do not do this with diffusers models destined for disk because then they
will be incompatible with the merge script!!

Closes #2836
2023-03-10 18:11:32 +00:00
..
config during migration do not overwrite symlinks 2023-03-05 08:40:12 -05:00
generator Make img2img strength 1 behave the same as txt2img (#2895) 2023-03-08 22:50:16 +01:00
image_util all vestiges of ldm.invoke removed 2023-03-03 01:02:00 -05:00
model_management fix bug that caused black images when converting ckpts to diffusers in RAM (#2914) 2023-03-10 18:11:32 +00:00
prompting backend..conditioning: remove code for legacy model 2023-03-09 18:15:12 -08:00
restoration remove legacy ldm code 2023-03-04 18:16:59 -08:00
stable_diffusion pipeline: remove code for legacy model 2023-03-09 18:15:12 -08:00
training migrate to new HF diffusers cache location 2023-03-05 08:20:24 -05:00
util all vestiges of ldm.invoke removed 2023-03-03 01:02:00 -05:00
web backend..conditioning: remove code for legacy model 2023-03-09 18:15:12 -08:00
__init__.py fix broken scripts 2023-03-03 20:19:37 -05:00
args.py all vestiges of ldm.invoke removed 2023-03-03 01:02:00 -05:00
generate.py pipeline: remove code for legacy model 2023-03-09 18:15:12 -08:00
globals.py Unified spelling of Hugging Face 2023-03-05 07:30:35 -06:00