InvokeAI/invokeai/backend
Lincoln Stein 95954188b2 remove factory pattern
Factory pattern is now removed. Typical usage of the InvokeAIGenerator is now:

```
from invokeai.backend.generator import (
    InvokeAIGeneratorBasicParams,
    Txt2Img,
    Img2Img,
    Inpaint,
)
    params = InvokeAIGeneratorBasicParams(
        model_name = 'stable-diffusion-1.5',
        steps = 30,
        scheduler = 'k_lms',
        cfg_scale = 8.0,
        height = 640,
        width = 640
        )
    print ('=== TXT2IMG TEST ===')
    txt2img = Txt2Img(manager, params)
    outputs = txt2img.generate(prompt='banana sushi', iterations=2)

    for i in outputs:
        print(f'image={output.image}, seed={output.seed}, model={output.params.model_name}, hash={output.model_hash}, steps={output.params.steps}')
```

The `params` argument is optional, so if you wish to accept default
parameters and selectively override them, just do this:

```
    outputs = Txt2Img(manager).generate(prompt='banana sushi',
                                        steps=50,
					scheduler='k_heun',
					model_name='stable-diffusion-2.1'
					)
```
2023-03-10 19:33:04 -05:00
..
config during migration do not overwrite symlinks 2023-03-05 08:40:12 -05:00
generator remove factory pattern 2023-03-10 19:33:04 -05:00
image_util all vestiges of ldm.invoke removed 2023-03-03 01:02:00 -05:00
model_management remove factory pattern 2023-03-10 19:33:04 -05:00
prompting all vestiges of ldm.invoke removed 2023-03-03 01:02:00 -05:00
restoration remove legacy ldm code 2023-03-04 18:16:59 -08:00
stable_diffusion Make img2img strength 1 behave the same as txt2img (#2895) 2023-03-08 22:50:16 +01: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 Fixed startup issues with the web UI. (#2876) 2023-03-06 18:29:28 -05:00
__init__.py remove factory pattern 2023-03-10 19:33:04 -05:00
args.py all vestiges of ldm.invoke removed 2023-03-03 01:02:00 -05:00
generate.py remove legacy ldm code 2023-03-04 18:16:59 -08:00
globals.py Unified spelling of Hugging Face 2023-03-05 07:30:35 -06:00
safety_checker.py node-based txt2img working without generate 2023-03-09 00:18:29 -05:00