InvokeAI/ldm/dream
Lincoln Stein 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
..
generator Replace --full_precision with --precision that works even if not specified 2022-09-20 17:08:00 -04:00
args.py add ability to post-process images from the CLI 2022-09-20 23:33:20 -04:00
conditioning.py Fix token display when using -t 2022-09-18 21:25:27 -04:00
devices.py Replace --full_precision with --precision that works even if not specified 2022-09-20 17:08:00 -04:00
image_util.py optionally scale initial image to fit box defined by width x height 2022-09-01 00:52:43 -04:00
log.py create ldm.dream.log 2022-09-20 16:54:50 -04:00
pngwriter.py fix crash on second prompt #636 2022-09-17 00:57:35 -04:00
readline.py add ability to post-process images from the CLI 2022-09-20 23:33:20 -04:00
server.py add sd-metadata metadata_loads() and metadata_dumps() functions 2022-09-17 13:28:37 -04:00