Commit Graph

4386 Commits

Author SHA1 Message Date
cd69d258aa combine PRs #690 and #683 2022-09-20 23:38:03 -04:00
1b5013ab72 GFPGAN and Real ESRGAN Implementation Refactor 2022-09-20 23:37:19 -04:00
e8bb39370c add ability to post-process images from the CLI
- supports gfpgan, esrgan, codeformer and embiggen
- To use:
   dream> !fix ./outputs/img-samples/000056.292144555.png -ft gfpgan -U2 -G0.8
   dream> !fix ./outputs/img-samples/000056.292144555.png -ft codeformer -G 0.8
   dream> !fix ./outputs/img-samples/000056.29214455.png  -U4
   dream> !fix ./outputs/img-samples/000056.292144555.png -embiggen 1.5

   The first example invokes gfpgan to fix faces and esrgan to upscale.
   The second example invokes codeformer to fix faces, no upscaling
   The third example uses esrgan to upscale 4X
   The four example runs embiggen to enlarge 1.5X

- This is very preliminary work. There are some anomalies to note:
  1. The syntax is non-obvious. I would prefer something like:
     !fix esrgan,gfpgan
     !fix esrgan
     !fix embiggen,codeformer

     However, this will require refactoring the gfpgan and embiggen
     code.

   2. Images generated using gfpgan, esrgan or codeformer all are named
      "xxxxxx.xxxxxx.postprocessed.png" and the original is saved.
      However, the prefix is a new one that is not related to the
      original.

   3. Images generated using embiggen are named "xxxxx.xxxxxxx.png",
      and once again the prefix is new. I'm not sure whether the
      prefix should be aligned with the original file's prefix or not.
      Probably not, but opinions welcome.
2022-09-20 23:33:20 -04:00
43c9288534 Update UPSCALE.md 2022-09-20 23:01:21 -04:00
408e3774e0 Merge branch 'development' into development 2022-09-20 21:25:15 -04:00
1b0d6a9bdb FIX readme (again)
Please don't make me keep having to cclean this up

1) Centering of the front matter is completely wrecked

2) We are not a billboard for Discord. We have a perfectly good badge - if the *link* needs fixing, fix it.

3) Stop putting HTML in Markdown

4) We need to state who and what we are once, clearly, not 3 times...

- <b>InvokeAI: A Stable Diffusion Toolkit</b>
- # Stable Diffusion Dream Script
- # **InvokeAI - A Stable Diffusion Toolkit**

5) Headings in Markdown SHOULD NOT HAVE additional formatting
2022-09-20 20:00:42 -04:00
810112577f Fixes #717 2022-09-20 19:14:20 -04:00
fc61ddab3c Merge branch 'development' into postprocessing-commands 2022-09-20 18:48:42 -04:00
d5209965bc Merge branch 'development' into development 2022-09-20 17:40:21 -04:00
18a9a7c159 Resolved conflicts with workflow 2022-09-20 17:24:00 -04:00
3bc40506fd Merge branch 'main' of github.com:santisbon/stable-diffusion into santisbon-main 2022-09-20 17:23:06 -04:00
555f21cd25 Merge branch 'development' into mkdocs-updates 2022-09-20 17:11:43 -04:00
d176fb07cd Replace --full_precision with --precision that works even if not specified
Allowed values are 'auto', 'float32', 'autocast', 'float16'. If not specified or 'auto' a working precision is automatically selected based on the torch device.
Context: #526
Deprecated --full_precision / -F

Tested on both cuda and cpu by calling scripts/dream.py without arguments and checked the auto configuration worked. With --precision=auto/float32/autocast/float16 it performs as expected, either working or failing with a reasonable error. Also checked Img2Img.
2022-09-20 17:08:00 -04:00
30de9fcfae switch to ldm.dream.log 2022-09-20 16:54:50 -04:00
e02bfd00a8 create ldm.dream.log 2022-09-20 16:54:50 -04:00
a28636dd4a add markdown log option 2022-09-20 16:54:50 -04:00
b3ea8fe24e Merge branch 'development' into development 2022-09-20 16:54:22 -04:00
e33ed45cfc Delete redundant backquotes #665
Author: @mefengl
2022-09-20 16:44:25 -04:00
a1813fd23c Merge branch 'development' of github.com:invoke-ai/InvokeAI into development 2022-09-20 16:39:36 -04:00
7a6587d3dd Update environment-mac.yaml 2022-09-20 16:38:28 -04:00
cc0cf147c8 Update INSTALL_MAC.md
1. let users install Rust right at the beginning in order to avoid some troubleshooting later on
2. add "conda deactivate" for troubleshooting once ldm was activated

Fix conflict

Update INSTALL_MAC.md
2022-09-20 16:38:28 -04:00
4cf4853ae4 Merge branch 'development' into development 2022-09-20 16:34:11 -04:00
90d8f0af73 Merge branch 'development' of https://github.com/lstein/stable-diffusion into development 2022-09-20 16:32:00 -04:00
c0e1fb5f71 feat(ci): add pyproject.toml with blue config
Signed-off-by: Ben Alkov <ben.alkov@gmail.com>
2022-09-20 16:27:15 -04:00
e8e6be0ebe change WebGUI title to InvokeAI 2022-09-20 16:14:33 -04:00
7830fd8ca1 Merge branch 'development' of github.com:psychedelicious/stable-diffusion into psychedelicious-development 2022-09-20 14:54:09 -04:00
4efee2a1ec Merge branch 'development' into development 2022-09-20 14:40:38 -04:00
e902b50bfc Update Logo Colors 2022-09-20 12:44:17 -04:00
c08eedf264 Delete redundant backquotes
remove extra space
2022-09-20 23:32:22 +08:00
1ee3023cdd Fixes cascading bugs 2022-09-21 00:44:57 +10:00
3e8a861fc0 Fixes missing seed in filename 2022-09-21 00:26:05 +10:00
cae0579ba9 Fixes bug with unused parser 2022-09-21 00:25:49 +10:00
f06f69a81a Removes unused file 2022-09-20 23:25:04 +10:00
b970ec4ce9 Refactors metadata & types, bugfixes, organization 2022-09-20 23:17:31 +10:00
a22ae23e9e Merge branch 'invoke-ai:main' into main 2022-09-20 08:03:54 -05:00
bb75174f4a Merge branch 'development' into development 2022-09-20 08:43:25 -04:00
27b238999f Use model_url instead of model_path for gfpgan and CodeFormer. Fixes lstein/stable-diffusion#678 2022-09-20 07:15:54 -04:00
893bdca0a8 fixed README formatting 2022-09-20 07:04:38 -04:00
de47f68b61 fix typo in README 2022-09-20 07:04:05 -04:00
6af9f2716e Update README.md 2022-09-20 07:03:41 -04:00
60b83ff07e Change README name to InvokeAI 2022-09-20 07:02:03 -04:00
38c9001e8e remove line-breaks from tables in CLI
instead I use empty img-tags with defined width in the table headers
2022-09-20 10:11:34 +02:00
7335f908af center pictures in prompt.md 2022-09-20 06:53:04 +02:00
96b90be5c3 make pictures in variations appear centered
also added captions to most of them
2022-09-20 06:46:51 +02:00
06ad4387a2 update Recipe for Photoshop
this way the view doesn't break that fast
2022-09-20 06:29:02 +02:00
a637c2418a Merge branch 'lstein:main' into main 2022-09-19 18:35:00 -05:00
5f8f2e63eb Merge remote-tracking branch 'upstream/development' into development 2022-09-20 07:27:32 +10:00
c6e4352c3f Add missing option to wget command 2022-09-19 16:28:11 -04:00
8c72da3643 Merge remote-tracking branch 'upstream/development' into development 2022-09-19 15:48:22 -04:00
23af057e5c tweaks to make postprocess fixing work better
- modify strength of embiggen to reduce tiling ghosts
- normalize naming of postprocessed files (could improve more to avoid
name collisions)
- move restoration modules under ldm.dream
2022-09-19 14:54:52 -04:00