59228643a9
docs: skip_model_hash
-> model install category, use_memory_db
-> development category
2024-03-10 10:38:52 +11:00
b24657df11
docs: roll back adding examples to config docstrings
...
This isn't a valid docstring syntax and breaks the autogeneration
2024-03-10 10:38:52 +11:00
d4686b7f64
fix(mm): yaml migration fixup
...
- If the metadata yaml has an invalid version, exist the app. If we don't, the app will crawl the models dir and add models to the db without having first parsed `models.yaml`. This should not happen often, as the vast majority of users are on v3.0.0 models.yaml files.
- Fix off-by-one error with models count (need to pop the `__metadata__` stanza
- After a successful migration, rename `models.yaml` to `models.yaml.bak` to prevent the migration logic from re-running on subsequent app startups.
2024-03-09 08:37:45 -06:00
67163c2224
fix(mm): only move model files if necessary
...
The old logic to check if a model needed to be moved relied on the model path being a relative path. Paths are now absolute, causing this check to fail. We then assumed the paths were different and moved the model from its current location to, well, its current location.
Use more resilient method to check if a model should be moved.
2024-03-09 22:58:26 +11:00
f01e81d382
Run ruff
2024-03-08 18:46:17 -05:00
a50e0a4802
use correct key name from yaml
2024-03-08 18:46:17 -05:00
df0a5aa92a
pass config_path to migration path, make sure it uses absolute path
2024-03-08 18:46:17 -05:00
0bd9a0a9ea
Add ability to provide config examples in docs
2024-03-08 16:31:39 -05:00
4ae2cd242e
Update to include remote_api_tokens in the config docs
2024-03-08 16:31:39 -05:00
0696094d95
tests: fix tests
...
The tests were testing deprecated settings (not the settings themselves, just the class's functionality).
2024-03-08 16:31:39 -05:00
fb1ae55010
docs: update CONFIGURATION.md to use autogenerated docs
2024-03-08 16:31:39 -05:00
deb1d4eb14
docs: run script to update config class's docstring
2024-03-08 16:31:39 -05:00
d156fd2093
tests: validate config docstring is current
2024-03-08 16:31:39 -05:00
c41e87160a
scripts: add script to update config docstring
...
- Add script to call config docstring helper function and write the docstring to the file directly
- Add `make` target for this script
2024-03-08 16:31:39 -05:00
eba1fc1355
docs: autogenerated app config docs
...
mkdocs can autogenerate python class docs from its docstrings. Our config is a pydantic model.
It's tedious and error-prone to duplicate docstrings from the pydantic field descriptions to the class docstrings.
- Add helper function to generate a mkdocs-compatible docstring from the InvokeAIAppConfig class fields
2024-03-08 16:31:39 -05:00
96702c395e
feat(config): add deprecated category for config settings
...
It's not clear why these are still in the config class.
2024-03-08 16:31:39 -05:00
3361aec065
docs(nodes): update config field descriptions
2024-03-08 16:31:39 -05:00
8ba4b2a150
Run ruff
2024-03-08 15:36:14 -05:00
df12e12e09
Run ruff
2024-03-08 15:36:14 -05:00
ee38fbe89c
Remove check for models dir in model deletion, update tests to always assume the model path is an absolute path
2024-03-08 15:36:14 -05:00
6e2cef1db5
Remove instances making models relative to the model dir
2024-03-08 15:36:14 -05:00
b1f5ac4548
fix path
2024-03-08 15:36:14 -05:00
e52274ecac
Experiment with using absolute paths within model management
2024-03-08 15:36:14 -05:00
66f0ff5b13
add ordering to search_by_attr that is used for model lists
2024-03-08 13:38:38 -06:00
cab5b64f0b
only render convert button if ckpt model
2024-03-08 13:19:08 -06:00
a42812d78d
ui(model_manager): Remember Scan Path
2024-03-08 14:05:57 -05:00
281222df3c
remove old data migration from previous schema version
2024-03-08 13:10:27 -05:00
d5674150fa
ruff
2024-03-08 13:02:04 -05:00
0cb2cf6644
wrap version check in try/except
2024-03-08 13:02:04 -05:00
da87266c9c
remove log
2024-03-08 13:02:04 -05:00
35731a6f51
fix null description, add logging
2024-03-08 13:02:04 -05:00
a3dfa161a8
Run ruff
2024-03-08 13:02:04 -05:00
42d606f07c
use register instead of heuristic import, get rid of typing warnings
2024-03-08 13:02:04 -05:00
9063b1ae61
on model manager start, look to see if yaml needs to be migrated and do it if so
2024-03-08 13:02:04 -05:00
6aae88bd88
Rerun typegen
2024-03-08 12:44:58 -05:00
57c1954da7
feat(ui): use control adapter processor helper in metadata parser
2024-03-08 12:44:58 -05:00
2410ed689a
tests(mm): add tests for control adapter probe default settings
2024-03-08 12:44:58 -05:00
a10dccdd43
fix(mm): fix bug in control adapter probe default settings
...
Wasn't checking for matches correctly.
2024-03-08 12:44:58 -05:00
a3570901f7
fix(ui): do not show default settings for refiner models
2024-03-08 12:44:58 -05:00
fd457955bc
feat(ui): update default settings for control adapters
...
- Split out main model defaults
- Add controlnet/t2i defaults (which includes only the preprocessor)
2024-03-08 12:44:58 -05:00
1f69613f5d
chore(ui): typegen
2024-03-08 12:44:58 -05:00
7a87ebb3b2
fix(mm): add control adapter default settings to ModelRecordChanges schema
...
This is needed to update Control Adapter defaults.
2024-03-08 12:44:58 -05:00
4ee4a801c6
feat(ui): update default settings for main models
...
Needed some massaging now that only main models get main model default settings.
2024-03-08 12:44:58 -05:00
53b7f6be37
feat(ui): use default settings for control adapters for processor
2024-03-08 12:44:58 -05:00
dbd7c94e7c
chore(ui): typegen
2024-03-08 12:44:58 -05:00
50bb9a6b41
fix(mm): remove default settings from IP adapter config
2024-03-08 12:44:58 -05:00
13bb3c5e15
feat(mm): add control adapter default settings while probing
2024-03-08 12:44:58 -05:00
80c2a4b925
feat(mm): add AnyDefaultSettings union
2024-03-08 12:44:58 -05:00
8ce485b036
feat(mm): add default settings for control adapters
...
Only includes `preprocessor` at this time.
2024-03-08 12:44:58 -05:00
6fc3e86061
tidy(mm): only main models get the main default settings
2024-03-08 12:44:58 -05:00