Lincoln Stein
36e0faea6b
blackify
2023-11-08 16:47:03 -05:00
Lincoln Stein
927f8a66e6
Merge branch 'main' into refactor/model-manager-2
2023-11-08 16:46:08 -05:00
Lincoln Stein
eebc0e7315
Merge branch 'refactor/model-manager-2' of github.com:invoke-ai/InvokeAI into refactor/model-manager-2
2023-11-08 16:45:29 -05:00
Lincoln Stein
6b173cc66f
multiple small stylistic changes requested by reviewers
2023-11-08 16:45:26 -05:00
Lincoln Stein
b4732a7308
Update invokeai/app/services/model_records/model_records_base.py
...
Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>
2023-11-08 13:50:40 -05:00
Lincoln Stein
344a56327a
Update invokeai/app/services/model_records/model_records_base.py
...
Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>
2023-11-08 13:50:01 -05:00
Millun Atluri
4cfd55936c
run black formatting
2023-11-07 16:06:18 +11:00
Millun Atluri
5c3a27aac6
fixed sorts
2023-11-07 16:03:06 +11:00
Millun Atluri
d573a23090
Moved FreeU Config Import
2023-11-07 15:48:53 +11:00
Lincoln Stein
ce22c0fbaa
sync pydantic and sql field names; merge routes
2023-11-06 18:08:57 -05:00
Kent Keirsey
ff8a8a1963
Merge branch 'main' into feat/nodes/freeu
2023-11-06 09:04:54 -08:00
Kent Keirsey
f8f1740668
Set Defaults to 1
2023-11-06 07:11:16 -08:00
Kent Keirsey
e66d0f7372
Merge branch 'main' into feat/nodes/freeu
2023-11-06 05:39:58 -08:00
Lincoln Stein
2d051559d1
fix flake8 complaints
2023-11-05 21:45:08 -05:00
Lincoln Stein
db9cef0092
re-run isort
2023-11-04 23:50:07 -04:00
Lincoln Stein
72c34aea75
added add_model_record and get_model_record to router api
2023-11-04 23:42:44 -04:00
Lincoln Stein
edeea5237b
add sql-based model config store and api
2023-11-04 23:03:26 -04:00
Ryan Dick
6e7a3f0546
(minor) Fix static checks and typo.
2023-11-02 19:20:37 -07:00
Ryan Dick
4a683cc669
Add a app config parameter to control the ModelCache logging behavior.
2023-11-02 19:20:37 -07:00
Ryan Dick
379d68f595
Patch LoRA on device when model is already on device.
2023-11-02 10:03:17 -07:00
Kent Keirsey
bb68175fd0
Add negative IP Adapter support
2023-10-31 14:30:24 +11:00
psychedelicious
03a64275c6
fix(db): fix deprecated pydantic .json()
method
2023-10-31 04:34:51 +11:00
psychedelicious
55bfadfd0b
fix(nodes): fix DenoiseMaskField.masked_latents_name
...
This optional field needs to have a default of `None`.
2023-10-31 04:18:09 +11:00
psychedelicious
859e3d5a61
chore: flake8
2023-10-30 01:49:10 +11:00
Lincoln Stein
3546c41f4a
close #4975
2023-10-23 18:48:14 -04:00
psychedelicious
8615d53e65
fix(nodes): fix missing generation modes
...
Lax typing on the metadata util functions allowed a typing issue to slip through. Fixed the lax typing, updated core metadata node.
2023-10-20 16:22:56 +11:00
psychedelicious
824702de99
feat(nodes): change expected structure for custom nodes
2023-10-20 14:28:16 +11:00
psychedelicious
8604943e89
feat(nodes): simple custom nodes
...
Custom nodes may be places in `$INVOKEAI_ROOT/nodes/` (configurable with `custom_nodes_dir` option).
On app startup, an `__init__.py` is copied into the custom nodes dir, which recursively loads all python files in the directory as modules (files starting with `_` are ignored). The custom nodes dir is now a python module itself.
When we `from invocations import *` to load init all invocations, we load the custom nodes dir, registering all custom nodes.
2023-10-20 14:28:16 +11:00
psychedelicious
dcd11327c1
fix(db): remove unused, commented out methods
2023-10-20 12:05:13 +11:00
psychedelicious
2f4f83280b
fix(db): remove extraneous conflict handling in workflow image records
2023-10-20 12:05:13 +11:00
psychedelicious
16dacb5f43
fix(nodes): remove constraints on ip adapter metadata fields
2023-10-20 12:05:13 +11:00
psychedelicious
b5940039f3
chore: lint
2023-10-20 12:05:13 +11:00
psychedelicious
2faed653d7
fix(api): deduplicate metadata/workflow extraction logic
2023-10-20 12:05:13 +11:00
psychedelicious
0cda7943fa
feat(api): add workflow_images junction table
...
similar to boards, images and workflows may be associated via junction table
2023-10-20 12:05:13 +11:00
psychedelicious
6d776bad7e
fix(nodes): remove errant print
2023-10-20 12:05:13 +11:00
psychedelicious
86c3acf184
fix(nodes): revert optional graph
2023-10-20 12:05:13 +11:00
psychedelicious
7b6e2bc37f
feat(nodes): add field name validation
...
Protect against using reserved field names
2023-10-20 12:05:13 +11:00
psychedelicious
bbae4045c9
fix(nodes): GraphInvocation
should use InputField
2023-10-20 12:05:13 +11:00
psychedelicious
4012388f0a
feat: use ModelValidator
naming convention for pydantic type adapters
...
This is the naming convention in the docs and is also clear.
2023-10-20 12:05:13 +11:00
psychedelicious
3c4f43314c
feat: move workflow/metadata models to baseinvocation.py
...
needed to prevent circular imports
2023-10-20 12:05:13 +11:00
psychedelicious
5a163f02a6
fix(nodes): fix metadata/workflow serialization
2023-10-20 12:05:13 +11:00
psychedelicious
f0db4d36e4
feat: metadata refactor
...
- Refactor how metadata is handled to support a user-defined metadata in graphs
- Update workflow embed handling
- Update UI to work with these changes
- Update tests to support metadata/workflow changes
2023-10-20 12:05:13 +11:00
psychedelicious
c2da74c587
feat: add workflows table & service
2023-10-20 12:05:13 +11:00
psychedelicious
9195c8c957
feat: dedicated route to get intermediates count
...
This fixes a weird issue where the list images method needed to handle `None` for its `limit` and `offset` arguments, in order to get a count of all intermediates.
2023-10-19 16:58:51 +11:00
psychedelicious
96e80c71fb
chore: lint
2023-10-19 08:52:02 +11:00
psychedelicious
da403ba04c
fix(api): flesh out types for api_app.py
2023-10-19 08:52:02 +11:00
psychedelicious
e4c45012f4
feat(api): add gzip middleware
...
On our local installs this will be a very minor change. For those running on remote servers, load times should be slightly improved.
It's a small change but I think correct.
2023-10-19 08:52:02 +11:00
psychedelicious
ef14ba1713
fix(api): fix uvicorn config loop arg
...
We were providing the loop itself, not the kind of loop. This didn't appear to cause any issues whatsoever, but now it's correct.
2023-10-19 08:52:02 +11:00
psychedelicious
9e06371178
feat(api): serve app via route & add cache-control: no-store
...
This should prevent `index.html` from *ever* being cached, so UIs will never be out of date.
Minor organisation to accomodate this.
Deleting old unused files from the early days
2023-10-19 08:52:02 +11:00
psychedelicious
a459786d73
fix(nodes): enable number to string coercion
2023-10-19 08:43:08 +11:00