InvokeAI/ldm/invoke
Lincoln Stein cca8d14c79
defer patchmatch loading (#2039)
* defer patchmatch loading

Because of the way that patchmatch was loaded early at import time, it
was impossible to turn off the attempted loading with --no-patchmatch.

In addition, the patchmatch loading messages appear early on during
initialization, interfering with ability to print out the version
cleanly when --version provided to invoke script.

This commit creates a thin wrapper class for patch_match that is only
loaded when needed, solving both problems.

* create a singleton patchmatch object for use in inpainting

This creates a thin wrapper to patchmatch which loads the module
on demand, respecting the global "trypatchmatch" option.

* address 2d round of issues in PR 2039 comments

* Patchmatch->PatchMatch and misc cleanup
2022-12-20 15:32:35 -08:00
..
generator defer patchmatch loading (#2039) 2022-12-20 15:32:35 -08:00
restoration Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
__init__.py add --version to invoke.py arguments (#2038) 2022-12-20 15:14:28 +00:00
args.py add --version to invoke.py arguments (#2038) 2022-12-20 15:14:28 +00:00
CLI.py add --version to invoke.py arguments (#2038) 2022-12-20 15:14:28 +00:00
concepts_lib.py Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
conditioning.py restrict to 75 tokens and correctly handle blends 2022-12-14 16:54:27 -05:00
devices.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
globals.py defer patchmatch loading (#2039) 2022-12-20 15:32:35 -08:00
image_util.py Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
log.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
model_cache.py Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
patchmatch.py defer patchmatch loading (#2039) 2022-12-20 15:32:35 -08:00
pngwriter.py correct bug when trying to enhance JPG images (#1928) 2022-12-11 13:48:47 -05:00
prompt_parser.py Save and display per-token attention maps (#1866) 2022-12-10 15:57:41 +01:00
readline.py Save and display per-token attention maps (#1866) 2022-12-10 15:57:41 +01:00
seamless.py Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
server_legacy.py Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
server.py Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
txt2mask.py Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00