InvokeAI/ldm
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
..
data Textual Inversion for M1 2022-09-27 01:39:17 +02:00
invoke defer patchmatch loading (#2039) 2022-12-20 15:32:35 -08:00
models Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
modules Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
__init__.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
generate.py defer patchmatch loading (#2039) 2022-12-20 15:32:35 -08:00
lr_scheduler.py prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
simplet2i.py Squashed commit of the following: 2022-09-12 14:31:48 -04:00
util.py Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00