Ryan Dick
cad3e5dbd7
Remove dead code related to an old symmetry feature.
2024-02-28 11:29:52 -05:00
Ryan Dick
845c4e93ae
Update various comments related to regional prompting, and delete duplicate _preprocess_regional_prompt_mask(...) function.
2024-02-28 10:20:22 -05:00
Ryan Dick
54971afe44
Add symmetric support for regional negative text prompts.
2024-02-27 20:05:02 -05:00
Ryan Dick
cfba51aed5
Removed unused function: _prepare_text_embeddings(...)
2024-02-27 19:23:20 -05:00
Ryan Dick
2966c8de2c
Handle conditioned and unconditioned text conditioning in the same way for regional prompt attention.
2024-02-27 18:16:01 -05:00
Ryan Dick
b0fcbe552e
Tidy invocation interfaces for RectangleMaskInvocation and AddConditioningMaskInvocation.
2024-02-26 17:34:37 -05:00
Ryan Dick
d132fb4818
Get RegionalPromptAttnProcessor2_0 working with a ton of hacks.
2024-02-17 19:56:37 -05:00
Ryan Dick
2d5d370f38
Route masks into the RegionalPromptAttnProcessor2_0 processors.
2024-02-16 19:35:24 -05:00
Ryan Dick
caa690e24d
Add concatenation of multiple text conditioning tensors, and patching of RegionalPromptAttnProcessor2_0 into the UNet.
2024-02-16 17:09:06 -05:00
Ryan Dick
38248b988f
Fix a minor bug in the logic of the IPAttnProcessor2_0. The change won't have any functional effect, since this attention implementation was only being used for cross-attention, but the logic should be correct now in case we wanted to use it for self-attention.
2024-02-16 09:10:47 -05:00
Ryan Dick
ba4788007f
Initialize a RegionalPromptAttnProcessor2_0 class by copying AttnProcessor2_0 from diffusers.
2024-02-15 17:52:44 -05:00
Ryan Dick
ef51005881
Remove unused code for attention map saving.
2024-02-15 17:28:55 -05:00
Ryan Dick
7b0326d7f7
Delete unused functions from shared_invokeai_diffusion.py.
2024-02-15 17:22:37 -05:00
Ryan Dick
f590b39f88
Add support for a list of ConditioningFields in DenoiseLatents.
2024-02-15 14:41:54 -05:00
Ryan Dick
382fa57f3b
Remove unused constructor declared with typo in name: __int__.
2024-02-14 18:18:58 -05:00
Ryan Dick
ee3abc171d
Merge sequential conditioning and cac conditioning logic to eliminate a bunch of duplication.
2024-02-14 18:17:46 -05:00
Ryan Dick
bf72cee555
Remove outdated comments related to T2I-Adapters and ControlNets.
2024-02-14 17:37:40 -05:00
Ryan Dick
e866e3b19f
Remove use of **kwargs in do_unet_step(...), where full parameter list is known and supported.
2024-02-14 17:37:32 -05:00
Ryan Dick
16e574825c
Fix avoid storing extra conditioning info in two places.
2024-02-14 15:34:15 -05:00
blessedcoolant
e82c21b5ba
chore: rename DWPose to DW Openpose
2024-02-12 11:12:45 -05:00
blessedcoolant
f8e566d62a
cleanup: unused util functions
2024-02-12 11:12:45 -05:00
blessedcoolant
f588b95c7f
cleanup: remove unused code from the DWPose implementation
2024-02-12 11:12:45 -05:00
blessedcoolant
7d80261d47
chore: Add code attribution for the DWPoseDetector
2024-02-12 11:12:45 -05:00
blessedcoolant
67cbfeb33d
feat: Add output image resizing for DWPose
2024-02-12 11:12:45 -05:00
blessedcoolant
675c73c94f
fix: ruff lint errors
2024-02-12 11:12:45 -05:00
blessedcoolant
0a27b0379f
feat: Initial implementation of DWPoseDetector
2024-02-12 11:12:45 -05:00
psychedelicious
c5f069a255
feat(backend): remove dependency on basicsr
...
`basicsr` has a hard dependency on torchvision <= 0.16 and is unmaintained. Extract the code we need from it and remove the dep.
Closes #5108
2024-02-11 08:34:54 +11:00
Lincoln Stein
8e500283b6
Fix broken import in checkpoint_convert ( #5635 )
...
* Fix broken import in checkpoint_convert
* simplify the fix
---------
Co-authored-by: Lincoln Stein <lstein@gmail.com>
2024-02-04 12:56:51 +00:00
Lincoln Stein
f2777f5096
Port the command-line tools to use model_manager2 ( #5546 )
...
* Port the command-line tools to use model_manager2
1.Reimplement the following:
- invokeai-model-install
- invokeai-merge
- invokeai-ti
To avoid breaking the original modeal manager, the udpated tools
have been renamed invokeai-model-install2 and invokeai-merge2. The
textual inversion training script should continue to work with
existing installations. The "starter" models now live in
`invokeai/configs/INITIAL_MODELS2.yaml`.
When the full model manager 2 is in place and working, I'll rename
these files and commands.
2. Add the `merge` route to the web API. This will merge two or three models,
resulting a new one.
- Note that because the model installer selectively installs the `fp16` variant
of models (rather than both 16- and 32-bit versions as previous),
the diffusers merge script will choke on any huggingface diffuserse models
that were downloaded with the new installer. Previously-downloaded models
should continue to merge correctly. I have a PR
upstream https://github.com/huggingface/diffusers/pull/6670 to fix
this.
3. (more important!)
During implementation of the CLI tools, found and fixed a number of small
runtime bugs in the model_manager2 implementation:
- During model database migration, if a registered models file was
not found on disk, the migration would be aborted. Now the
offending model is skipped with a log warning.
- Caught and fixed a condition in which the installer would download the
entire diffusers repo when the user provided a single `.safetensors`
file URL.
- Caught and fixed a condition in which the installer would raise an
exception and stop the app when a request for an unknown model's metadata
was passed to Civitai. Now an error is logged and the installer continues.
- Replaced the LoWRA starter LoRA with FlatColor. The former has been removed
from Civitai.
* fix ruff issue
---------
Co-authored-by: Lincoln Stein <lstein@gmail.com>
2024-02-02 17:18:47 +00:00
Brandon
72db2ee352
Merge branch 'main' into sdxl-convert-safetensors
2024-02-02 10:10:49 -05:00
Wubbbi
1057314508
Fix ruff?
2024-02-01 20:40:28 -05:00
Wubbbi
73a077956b
Why did my IDE change the comment?
2024-02-01 20:40:28 -05:00
Wubbbi
5e1e50bd47
Fix hopefully last import
2024-02-01 20:40:28 -05:00
Wubbbi
413fe566b8
Fix imports
2024-02-01 20:40:28 -05:00
Wubbbi
c9b5f06c42
Update diffusers + hotfix
2024-02-01 20:40:28 -05:00
Brandon
06bcc07f65
Merge branch 'main' into sdxl-convert-safetensors
2024-01-31 17:00:19 -05:00
Brandon Rising
a0996b1c0a
Fix ruff styling
2024-01-31 07:16:14 -06:00
Brandon Rising
522ff4a042
civit -> civitai
2024-01-31 07:16:14 -06:00
Brandon Rising
a769f93be0
Remove unnecessary change
2024-01-31 07:16:14 -06:00
Brandon Rising
5d773dc94c
Remove debug line
2024-01-31 07:16:14 -06:00
Brandon Rising
088e3420e6
Allow passing of civit api key via config
2024-01-31 07:16:14 -06:00
Brandon Rising
14efc95707
Allow passing of a civit api key
2024-01-31 07:16:14 -06:00
Brandon Rising
a04981b418
This seems to work now
2024-01-30 21:32:08 -05:00
blessedcoolant
35184dbd86
fix: incorrect local file path
2024-01-24 03:37:16 +05:30
blessedcoolant
92fb09c4df
fix: Move the models to any folder to avoid boot warnings
2024-01-24 03:35:37 +05:30
blessedcoolant
7cb49e65bd
feat: Add Resolution to DepthAnything
2024-01-23 14:13:50 -06:00
blessedcoolant
6a2eb1d2e4
fix: Change the path of the annotator folder to annotators
...
Just making this change in case there are other models added to the folder in the future
2024-01-23 14:13:50 -06:00
blessedcoolant
c859eb865e
fix: lint & other minor issues
2024-01-23 14:13:50 -06:00
blessedcoolant
8f5e2cbcc7
feat: Add Depth Anything PreProcessor
2024-01-23 14:13:50 -06:00
Neil Wang
aa25ea62a5
fix(backend) installed models being redownloaded ( #5526 )
...
* fix
* fix ruff errors
---------
Co-authored-by: Lincoln Stein <lstein@gmail.com>
2024-01-18 16:53:53 -05:00