Ryan Dick
|
ba54277011
|
Catch a more specific exception in environments that do not have a libc shared library.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
5915a4a51c
|
Minor fixes.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
4580ba0d87
|
Remove logic to update model cache size estimates dynamically.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
b9fd2e9e76
|
Improve get_pretty_snapshot_diff(...) message formatting.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
75b65597af
|
Add malloc info to MemorySnapshot.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
2a3c0ab5d2
|
Move MemorySnapshot to its own file.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
7d61373b82
|
Add LibcUtil class.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
7d65555a5a
|
Fix type error in torch device comparison.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
123f2b2dbc
|
Update cache model size estimates based on changes in VRAM when moving models to/from CUDA.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
1e4e42556e
|
Update model cache device comparison to treat 'cuda' and 'cuda:0' as the same device type.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
1f6699ac43
|
Consolidate all model.to(...) calls in the model cache to use a utility function with better logging.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
ace8665411
|
Add warning log if moving a model from cuda to cpu causes unexpected change in VRAM usage.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
7fa5bae8fd
|
Add warning log if moving model from RAM to VRAM causes an unexpected change in VRAM usage.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
f9faca7c91
|
Add warning log if model mis-reports its required cache memory before load from disk.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
594fd3ba6d
|
Add debug logging of changes in RAM and VRAM for all model cache operations.
|
2023-10-03 14:25:34 -04:00 |
|
Ryan Dick
|
44d68f5ed5
|
Auto-format model_cache.py.
|
2023-10-03 14:25:34 -04:00 |
|
psychedelicious
|
045d3f6139
|
chore: flake8
|
2023-09-28 13:49:31 +10:00 |
|
Lincoln Stein
|
f6bbcd0589
|
remove dangling debug statement
|
2023-09-27 22:26:26 -04:00 |
|
Lincoln Stein
|
ada22a799e
|
remove dangling debug statement
|
2023-09-27 22:26:06 -04:00 |
|
Lincoln Stein
|
034af2d9f8
|
enable downloading from subfolders for repo_ids
|
2023-09-27 22:11:56 -04:00 |
|
Ryan Dick
|
0fc14afcf0
|
Merge branch 'main' into bug/ip-adapter-calc-size
|
2023-09-27 09:42:51 -04:00 |
|
Lincoln Stein
|
3fd27b1aa9
|
run correct version of black
|
2023-09-26 08:03:34 -04:00 |
|
Lincoln Stein
|
d59e534cad
|
use heuristic to select RAM cache size during headless install; blackified
|
2023-09-26 08:03:34 -04:00 |
|
Ryan Dick
|
399ebe443e
|
Fix IP-Adapter calculation of memory footprint.
|
2023-09-25 18:28:10 -04:00 |
|
Lincoln Stein
|
43ebd68313
|
Merge branch 'main' into install/install-ip-adapters
|
2023-09-24 23:19:25 -04:00 |
|
Lincoln Stein
|
912087e4dc
|
blackify
|
2023-09-24 19:00:38 -04:00 |
|
Lincoln Stein
|
593fb95213
|
ip_adapter_sd15 & its encoder will now be installed by default during headless install
|
2023-09-24 19:00:21 -04:00 |
|
Lincoln Stein
|
a1d9e6b871
|
Merge branch 'main' into bugfix/probe_ip_adapter
|
2023-09-24 15:39:43 -04:00 |
|
Lincoln Stein
|
e34e6d6e80
|
enable v_prediction for sd-1 models
|
2023-09-24 12:22:29 -04:00 |
|
Lincoln Stein
|
86cb53342a
|
fix probing for ip_adapter folders
|
2023-09-23 22:32:03 -04:00 |
|
Lincoln Stein
|
25a71a1791
|
Merge branch 'main' into refactor/rename-get-logger
|
2023-09-23 14:49:07 -07:00 |
|
Ryan Dick
|
bf62553150
|
(minor) Update documentation to reflect that a bug was fixed in InvokeAI/ip_adapter_sdxl_vit_h by e178288fb6
|
2023-09-20 20:18:33 -04:00 |
|
Lincoln Stein
|
0960518088
|
add techjedi's database maintenance script
|
2023-09-20 17:46:49 -04:00 |
|
Kevin Turner
|
b1b5f70ea6
|
Merge branch 'main' into feat/taesd
|
2023-09-20 12:54:17 -07:00 |
|
Kevin Turner
|
e487bcd0f7
|
feat(model management): guess whether a VAE is for SDXL based on its name
|
2023-09-20 12:07:12 -07:00 |
|
Kevin Turner
|
e0f8274f49
|
feat(model management): guess whether a VAE is for SDXL based on its name
|
2023-09-20 12:06:55 -07:00 |
|
Lincoln Stein
|
0420874f56
|
reimplement the old invokeai-metadata command
|
2023-09-20 13:49:29 -04:00 |
|
Kevin Turner
|
f222b871e9
|
Merge remote-tracking branch 'origin/main' into feat/taesd
# Conflicts:
# invokeai/backend/model_management/model_probe.py
|
2023-09-20 10:46:55 -07:00 |
|
Ryan Dick
|
92b49e45bb
|
Address flake8 error.
|
2023-09-18 16:33:16 -04:00 |
|
Ryan Dick
|
b05b8ef677
|
Switch to using torch 2.0 attention for IP-Adapter (more memory-efficient).
|
2023-09-18 16:30:53 -04:00 |
|
blessedcoolant
|
e0dddbd38e
|
chore: fix isort issues
|
2023-09-17 12:13:03 +12:00 |
|
blessedcoolant
|
b7773c9962
|
chore: black & lint fixes
|
2023-09-17 12:00:21 +12:00 |
|
user1
|
c48e648cbb
|
Added per-step setting of IP-Adapter weights (for param easing, etc.)
|
2023-09-16 12:36:16 -07:00 |
|
user1
|
7ee13879e3
|
Added check in IP-Adapter to avoid begin/end step percent handling if use of IP-Adapter is already turned off due to potential clash with other cross attention control.
|
2023-09-16 09:29:50 -07:00 |
|
user1
|
ced297ed21
|
Initial implementation of IP-Adapter "begin_step_percent" and "end_step_percent" for controlling on which steps IP-Adapter is applied in the denoising loop.
|
2023-09-16 08:24:12 -07:00 |
|
Ryan Dick
|
343df03a92
|
isort
|
2023-09-15 13:18:00 -04:00 |
|
Ryan Dick
|
b57acb7353
|
Merge branch 'main' into feat/ip-adapter
|
2023-09-15 13:15:25 -04:00 |
|
Kent Keirsey
|
afe9756667
|
Merge branch 'main' into feat/taesd
|
2023-09-15 12:19:19 -04:00 |
|
Sergey Borisov
|
ff3150a818
|
Update lora hotfix to new diffusers version(scale argument added)
|
2023-09-15 12:19:01 -04:00 |
|
Ryan Dick
|
16664da5b6
|
black
|
2023-09-14 23:49:02 -04:00 |
|
Ryan Dick
|
c104807201
|
Update list of supported IP-Adapters.
|
2023-09-14 23:43:19 -04:00 |
|
Ryan Dick
|
990ce9a1da
|
Lookup IP-Adapter linked image encoder from disk instead of storing in model config metadata.
|
2023-09-14 23:06:57 -04:00 |
|
Ryan Dick
|
c2f074dc2f
|
Fix python static checks.
|
2023-09-14 16:48:47 -04:00 |
|
Ryan Dick
|
fca60862e2
|
Add README.md describing IP-Adapter model formats.
|
2023-09-14 16:02:07 -04:00 |
|
Ryan Dick
|
94c186bb4c
|
Fix bug in IPAdapter.to(...).
|
2023-09-14 15:45:25 -04:00 |
|
Ryan Dick
|
a22c8cb3a1
|
Improve robustness of check for IPAdapter vs IPAdapterPlus.
|
2023-09-14 15:25:41 -04:00 |
|
Ryan Dick
|
781e8521d5
|
Eliminate the need for IPAdapter.initialize().
|
2023-09-14 15:02:59 -04:00 |
|
Ryan Dick
|
d114d0ba95
|
Remove need for the image_encoder param in IPAdapter.initialize().
|
2023-09-14 14:14:35 -04:00 |
|
Ryan Dick
|
388554448a
|
Add CLIP Vision model to IP-Adapter info and use this to infer which model to use.
|
2023-09-14 11:57:53 -04:00 |
|
Ryan Dick
|
d5160648d0
|
Add support for downloading IP-Adapter models from HF.
|
2023-09-14 11:18:43 -04:00 |
|
Ryan Dick
|
6d0ea42a94
|
Get CLIPVision model download from HF working.
|
2023-09-14 09:54:10 -04:00 |
|
Ryan Dick
|
2c1100509f
|
Add BaseModelType.Any to be used by CLIPVisionModel.
|
2023-09-14 08:19:55 -04:00 |
|
Ryan Dick
|
c34b359c36
|
(minor) Remove duplicate TODO.
|
2023-09-13 21:25:20 -04:00 |
|
Ryan Dick
|
77d135967f
|
Update IPAdapterModel to respect requested torch_dtype.
|
2023-09-13 21:06:42 -04:00 |
|
Ryan Dick
|
ebf26687cb
|
(minor) Remove unnecessary TODO.
|
2023-09-13 21:03:42 -04:00 |
|
Ryan
|
2f5e923008
|
Removed duplicate import in model_cache.py
|
2023-09-13 19:33:43 -04:00 |
|
Ryan
|
b7296000e4
|
made MPS calls conditional on MPS actually being the chosen device with backend available
|
2023-09-13 19:33:43 -04:00 |
|
Ryan
|
fab055995e
|
Add empty_cache() for MPS hardware.
|
2023-09-13 19:33:43 -04:00 |
|
Ryan Dick
|
1c8991a3df
|
Use CLIPVisionModel under model management for IP-Adapter.
|
2023-09-13 19:10:02 -04:00 |
|
Ryan Dick
|
3d52656176
|
Add CLIPVisionModel to model management.
|
2023-09-13 17:14:20 -04:00 |
|
Kevin Turner
|
090db1ab3a
|
Merge remote-tracking branch 'origin/main' into feat/taesd
|
2023-09-13 09:17:53 -07:00 |
|
Ryan Dick
|
3ee9a21647
|
Initial (barely) working version of IP-Adapter model management.
|
2023-09-13 08:27:24 -04:00 |
|
Ryan Dick
|
0d823901ef
|
Add IPAdapter to model_management __init__.py
|
2023-09-13 08:27:24 -04:00 |
|
Ryan Dick
|
7ee55489bb
|
Improve model search warning messages.
|
2023-09-13 08:27:24 -04:00 |
|
Ryan Dick
|
163ece9aee
|
Initial skeleton for IPAdapter model management.
|
2023-09-13 08:27:24 -04:00 |
|
Martin Kristiansen
|
e467ca7f1b
|
Apply black, isort, flake8
|
2023-09-12 13:01:58 -04:00 |
|
Martin Kristiansen
|
e88d7c242f
|
isort wip 3
|
2023-09-12 13:01:58 -04:00 |
|
Martin Kristiansen
|
caea6d11c6
|
isort wip 2
|
2023-09-12 13:01:58 -04:00 |
|
Millun Atluri
|
88db094cf2
|
Merge branch 'main' into feat/taesd
|
2023-09-11 22:11:25 +10:00 |
|
Ryan Dick
|
50a0691514
|
flake8
|
2023-09-08 18:05:31 -04:00 |
|
Ryan Dick
|
a255624984
|
black
|
2023-09-08 17:55:23 -04:00 |
|
Ryan Dick
|
2630fe3608
|
Remove unused ip_adapter/utils.py file.
|
2023-09-08 16:25:34 -04:00 |
|
Ryan Dick
|
6ca6cf713c
|
Tidy IPAdapter. Add types, improve field/method naming.
|
2023-09-08 16:00:58 -04:00 |
|
Ryan Dick
|
3f7d5b4e0f
|
Remove redundant IPAdapterXL class.
|
2023-09-08 15:46:10 -04:00 |
|
Ryan Dick
|
91596d9527
|
Re-factor IPAdapter to patch UNet in a context manager.
|
2023-09-08 15:39:22 -04:00 |
|
Ryan Dick
|
d669f0855d
|
Comment unused IPAdapter generate(...) methods.
|
2023-09-08 13:12:42 -04:00 |
|
Ryan Dick
|
b2d5b53b5f
|
Pass IP-Adapter conditioning via cross_attention_kwargs instead of concatenating to the text embedding. This avoids interference with other features that manipulate the text embedding (e.g. long prompts).
|
2023-09-08 11:47:36 -04:00 |
|
Ryan Dick
|
ddc148b70b
|
Move ConditioningData and its field classes to their own file. This will allow new conditioning types to be added more cleanly without introducing circular dependencies.
|
2023-09-08 11:00:11 -04:00 |
|
Ryan Dick
|
c2d43f007b
|
Specify the image_embedding_len in the IPAttnProcessor rather than the text embedding length. This enables the IPAttnProcessor to handle text embeddings of varying lengths.
|
2023-09-07 18:20:21 -04:00 |
|
Ryan Dick
|
7703bf2ca1
|
Delete IP-Adapter copies of AttnProcessor and AttnProcessor2_0, which were unmodified from diffusers.
|
2023-09-07 15:00:13 -04:00 |
|
Millun Atluri
|
b5e1ba34b3
|
Merge branch 'main' into refactor/rename-get-logger
|
2023-09-07 23:19:59 +10:00 |
|
Ryan Dick
|
23fdf0156f
|
Clean up IP-Adapter in diffusers_pipeline.py - WIP
|
2023-09-06 20:42:20 -04:00 |
|
Ryan Dick
|
d776e0a0a9
|
Split ControlField and IpAdapterField.
|
2023-09-06 17:03:37 -04:00 |
|
Lincoln Stein
|
c54c1f603b
|
Merge branch 'main' into bugfix/set-vram-on-macs
|
2023-09-05 07:09:39 -04:00 |
|
blessedcoolant
|
f44496a579
|
Merge branch 'main' into feat/ip-adapter
|
2023-09-05 15:22:15 +12:00 |
|
psychedelicious
|
95ecb1a0c1
|
fix(ip_adapter): add None to types
|
2023-09-05 12:30:00 +10:00 |
|
blessedcoolant
|
a9fafad5b5
|
chore: sync, lint & update
|
2023-09-05 14:17:23 +12:00 |
|
Lincoln Stein
|
d2e327add9
|
install models/core/misc/lama/lama.pt
|
2023-09-04 21:54:40 -04:00 |
|
psychedelicious
|
58aa159a50
|
fix(backend): fix remaining instances of getLogger()
|
2023-09-05 10:43:30 +10:00 |
|
psychedelicious
|
d8f7c19030
|
Merge branch 'main' into refactor/rename-get-logger
|
2023-09-05 10:37:53 +10:00 |
|