Commit Graph

757 Commits

Author SHA1 Message Date
45cc867b0c fixed perlin noise generation for mps (macos) - fix for cpu fallback 2022-10-07 10:35:42 -04:00
173dc34194 Merge branch 'development' into fnformat 2022-10-07 15:39:41 +02:00
333219be35 fix broken image generation on plms and ddim samplers 2022-10-07 08:26:53 -04:00
c1230da3ab remove duplicated code 2022-10-07 08:13:34 -04:00
a7515624b2 remove duplicated code 2022-10-07 08:12:55 -04:00
9f34ddfcea fix crash on len(Nonetype) in k_sampler 2022-10-07 08:05:13 -04:00
395445e7b0 using string.format for filename formatting 2022-10-07 09:24:39 +00:00
89c6c11214 feat: adding filename format template 2022-10-07 08:32:39 +00:00
c6a7be63b8 fix crash in generate._transparency_check_and_warning() 2022-10-06 21:00:27 -04:00
75165957c9 Revert "realesrgan inherits precision setting from main program"
This reverts commit 5f42d08945.

This fix was intended to solve issue #939, in which ESRGAN generates
dark images when upscaling 4X on certain GTX cards. However, the fix
apparently causes conflicts with some versions of the ESRGAN library,
and this fix will have to wait until after release of 2.0.
2022-10-06 20:52:38 -04:00
d60df54f69 fix k_samplers in img2img - probably correct now 2022-10-06 18:53:54 -04:00
7541c7cf5d fix k_samplers in img2img - probably correct now 2022-10-06 18:31:04 -04:00
440065f7f8 revert previous change 2022-10-06 14:57:06 -04:00
2c27e759cd fix #889 - fuzzy k* img2img at low strength 2022-10-06 14:16:56 -04:00
5f42d08945 realesrgan inherits precision setting from main program 2022-10-06 12:23:30 -04:00
2154dd2349 prevent crashes due to uninitialized free_gpu_mem 2022-10-06 10:54:05 -04:00
f3050fefce bug and warning message fixes
- txt2img2img back to using DDIM as img2img sampler; results produced
  by some k* samplers are just not reliable enough for good user
  experience
- img2img progress message clarifies why img2img steps taken != steps requested
- warn of potential problems when user tries to run img2img on a small init image
2022-10-06 10:39:08 -04:00
595d15455a Fix generation of image with s>1000 2022-10-06 15:49:35 +02:00
183b98384f set perlin & threshold to zero on generator initialization 2022-10-06 09:35:04 -04:00
a99aab6309 enable --hires to use k* samplers 2022-10-05 20:10:21 -04:00
5a40f7ad15 Fix for crashes in txt2img hires fix mode 2022-10-05 20:10:06 -04:00
2f29b78a00 enable --hires to use k* samplers 2022-10-05 17:18:32 -04:00
bcb6e2e506 Fix for crashes in txt2img hires fix mode 2022-10-05 17:13:43 -04:00
44e3995425 remove dangling -V from normalized dream command 2022-10-05 00:48:17 -04:00
5dd9e30c2f Merge branch 'development' of github.com:invoke-ai/InvokeAI into development 2022-10-04 22:58:09 -04:00
f368f682e1 remove unecessary import of pyreadline3 2022-10-04 22:53:07 -04:00
d16f0c8a8f add enhancements to CLI command-line completion and history
- Added support for pyreadline3 so that Window users can benefit.
- Added the !search command to search the history for a matching string:
~~~
!search puppies
[20] puppies at the food bowl -Ak_lms
[54] house overrun by hungry puppies -C20 -s100
~~~
- Added the !clear command to clear the in-memory and on-disk
  command history.
2022-10-04 22:53:07 -04:00
18e667f98e fix miscellaneous regressions:
- embiggen needs to use ddim sampler due to low step count
- --hires_fix option needs to be written to log and command string
- fix call signature of _init_image_mask()
2022-10-04 22:48:19 -04:00
a09c64a1fe merge outcropping and postprocessing fixes 2022-10-04 22:47:21 -04:00
4c482fe24a refactor how postprocessors work
- similar call structures for outpainting, outcropping and face restoration modules
- added documentation for outcropping
- post-processing steps now leave a provenance chain (of sorts) in the sd-metadata field:

~~~
scripts/sd-metadata.py outputs/img-samples/curly.942491079.upscale.png
outputs/img-samples/curly.942491079.upscale.png:
 {
    "model": "stable diffusion",
    "model_id": "stable-diffusion-1.4",
    "model_hash": "fe4efff1e174c627256e44ec2991ba279b3816e364b49f9be2abc0b3ff3f8556",
    "app_id": "lstein/stable-diffusion",
    "app_version": "v1.15",
    "image": {
        "height": 512,
        "width": 512,
        "steps": 50,
        "cfg_scale": 7.5,
        "seed": 942491079,
        "prompt": [
            {
                "prompt": "pretty curly-haired redhead woman",
                "weight": 1.0
            }
        ],
        "postprocessing": [
            {
                "tool": "outcrop",
                "dream_command": "!fix \"test-pictures/curly.png\" -s 50 -S 942491079 -W 512 -H 512 -C 7.5 -A k_lms -c top 64 right 64"
            },
            {
                "tool": "gfpgan",
                "dream_command": "!fix \"outputs/img-samples/curly.942491079.outcrop-02.png\" -s 50 -S 942491079 -W 512 -H 512 -C 7.5 -A k_lms -G 0.8"
            },
            {
                "tool": "upscale",
                "dream_command": "!fix \"outputs/img-samples/curly.942491079.gfpgan.png\" -s 50 -S 942491079 -W 512 -H 512 -C 7.5 -A k_lms -U 4.0 0.75"
            }
        ],
        "sampler": "k_lms",
        "variations": [],
        "type": "txt2img"
    }
}
~~~
2022-10-04 22:37:25 -04:00
609983ffa8 add outcrop postprocessor 2022-10-04 22:37:25 -04:00
0f9bff66bc Merge branch 'development' of github.com:pbaylies/stable-diffusion into pbaylies-development 2022-10-04 22:31:11 -04:00
5d911b43c0 Merge branch 'development' into development 2022-10-04 18:40:42 -04:00
483097f31c fix off-by-one error 2022-10-05 00:15:47 +02:00
7a3eae4572 revert to original k* noise schedule 2022-10-05 00:15:47 +02:00
db349aa3ce * Fix meshgrid warning for perlin noise. 2022-10-04 16:58:22 -04:00
b5c114c5b7 * Changes for PR 2022-10-04 14:37:32 -04:00
f34279b3e7 add perlin options to formatted dream cmd 2022-10-04 14:32:18 -04:00
f041510659 Merge branch 'development' into development 2022-10-03 23:53:19 -04:00
feb405f19a reorder mask creation and scaling to avoid deleting colors under transparency 2022-10-03 23:29:09 -04:00
b8e4c13746 Add New WebUI and Desktop Mode
Co-Authored-By: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
2022-10-03 23:28:53 -04:00
0a217b5f15 Merge branch 'Any-Winter-4079-Textual_Inversion' of github.com:Any-Winter-4079/InvokeAI into development 2022-10-03 19:43:46 -04:00
88a9f33422 Fixes #875 2022-10-03 19:42:12 -04:00
ea67040ef1 restore behavior of --grid argument 2022-10-03 17:09:48 -04:00
e79069a957 Merge branch 'development' into development 2022-10-03 08:33:44 -04:00
1ab09e7a06 use right value for step arg in img_callback in decode() 2022-10-03 05:47:32 -04:00
7c6dbcb14a use right value for step arg in img_callback 2022-10-03 05:46:23 -04:00
8e97bc24a4 restore step argument to step_callback 2022-10-03 05:38:43 -04:00
935a9d3c75 Update !fetch command, add documentation and autocomplete list
-- !fetch takes second optional argument name of the file to save commands to
2022-10-03 10:38:22 +02:00
5a88be3744 fix typo which caused crash in sampler.py 2022-10-02 22:31:11 -04:00