5bec64d65b
fix(backend): fix typings in batch_manager.py
...
- `batch_indicies` is `tuple[int]` not `list[int]`
- explicit `None` return values
2023-08-17 12:07:20 +10:00
8cf9bd47b2
chore(backend): remove unnecessary batch validation function
...
The `Batch` model is fully validated by pydantic on instantiation; we do not need any validation logic for it.
2023-08-17 11:59:47 +10:00
c91621b46c
fix(backend): BatchProcess.batch_id
is required
...
Providing a `default_factory` is enough for pydantic to know to create the attribute on instantiation if it's not already provided. We can then make make the typing just `str`.
2023-08-17 11:58:29 +10:00
f246b236dd
fix(api): fix start_batch
route responses
2023-08-17 11:51:14 +10:00
f7277a8b21
Run python black
2023-08-16 15:44:52 -04:00
796ff34c8a
Testing out Spencer's batch data structure
2023-08-16 15:21:11 -04:00
d6a5c2dbe3
Fix tests
2023-08-16 14:35:49 -04:00
ef8dc2e8c5
Merge branch 'main' into feat/batch-graphs
2023-08-16 14:03:34 -04:00
43b30355e4
feat: make primitive node titles consistent
2023-08-16 23:04:36 +10:00
314891a125
Merge branch 'main' into feat/batch-graphs
2023-08-15 22:42:49 -04:00
8b1ec2685f
chore: black
2023-08-16 12:07:34 +10:00
60c2c877d7
fix: add response model for star/unstar routes
...
- also implement pessimistic updates for starring, only changing the images that were successfully updated by backend
- some autoformat changes crept in
2023-08-16 12:07:34 +10:00
80b0c5eab4
change from pin to star
2023-08-16 12:07:34 +10:00
ee6a26a97d
update list images endpoint to sort by pinnedness and then created_at
2023-08-16 12:07:34 +10:00
04a9894e77
(api) add ability to pin and unpin images
2023-08-16 12:07:34 +10:00
2d3094f988
Run python black
2023-08-15 21:51:45 -04:00
abf09fc8fa
Switch sqlite clients to only use one connection
2023-08-15 21:46:24 -04:00
2b7dd3e236
feat: add missing primitive collections
...
- add missing primitive collections
- remove `Seed` and `LoRAField` (they don't exist)
2023-08-16 09:54:38 +10:00
fa884134d9
feat: rename ui_type_hint
to ui_type
...
Just a bit more succinct while not losing any clarity.
2023-08-16 09:54:38 +10:00
c48fd9c083
feat(nodes): refactor parameter/primitive nodes
...
Refine concept of "parameter" nodes to "primitives":
- integer
- float
- string
- boolean
- image
- latents
- conditioning
- color
Each primitive has:
- A field definition, if it is not already python primitive value. The field is how this primitive value is passed between nodes. Collections are lists of the field in node definitions. ex: `ImageField` & `list[ImageField]`
- A single output class. ex: `ImageOutput`
- A collection output class. ex: `ImageCollectionOutput`
- A node, which functions to load or pass on the primitive value. ex: `ImageInvocation` (in this case, `ImageInvocation` replaces `LoadImage`)
Plus a number of related changes:
- Reorganize these into `primitives.py`
- Update all nodes and logic to use primitives
- Consolidate "prompt" outputs into "string" & "mask" into "image" (there's no reason for these to be different, the function identically)
- Update default graphs & tests
- Regen frontend types & minor frontend tidy related to changes
2023-08-16 09:54:38 +10:00
f49fc7fb55
feat: node editor
...
squashed rebase on main after backendd refactor
2023-08-16 09:54:38 +10:00
15e7ca1baa
Break apart create/start logic
2023-08-15 16:28:47 -04:00
6cb90e01de
Graph is required in batch create
2023-08-15 16:13:51 -04:00
faa4574970
Turn off WAL mode
2023-08-15 15:59:42 -04:00
cc5755d5b1
Update invokeai/app/services/batch_manager_storage.py
...
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com >
2023-08-15 15:54:57 -04:00
85105fc070
Update invokeai/app/services/batch_manager_storage.py
...
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com >
2023-08-15 15:54:17 -04:00
f8d8b16267
Run python black
2023-08-14 11:01:31 -04:00
69f541075c
Merge branch 'main' into feat/batch-graphs
2023-08-14 10:32:35 -04:00
9d3cd85bdd
chore: black
2023-08-14 13:02:33 +10:00
409e5d01ba
Fix cpu_only schedulers(unipc)
2023-08-14 05:14:05 +03:00
d63bb39475
Make dpmpp_sde(_k) use not random seed
2023-08-14 00:24:38 +03:00
59ba9fc0f6
Flip bits in seed for sde/ancestral schedulers to have different noise from initial
2023-08-13 19:50:16 +03:00
6e0beb1ed4
Fixes for second order scheduler timesteps
2023-08-13 19:31:47 +03:00
94636ddb03
Fix empty prompt handling
2023-08-13 19:31:14 +03:00
499e89d6f6
feat: Add SDXL Negative Aesthetic Score
2023-08-14 04:02:36 +12:00
561951ad98
chore: Black linting
2023-08-13 21:28:39 +12:00
f296e5c41e
wip: Remove MaskBlur / Adjust color correction
2023-08-12 20:54:30 +12:00
6034fa12de
feat: Add Mask Blur node
2023-08-12 16:20:58 +12:00
ce3675fc14
Apply denoising_start/end according on timestep value
2023-08-12 03:19:49 +03:00
1debc31e3d
Allow cancel of running batch
2023-08-11 15:52:49 -04:00
f343ab0302
wip: Port Outpainting to new backend
2023-08-12 06:15:59 +12:00
1d798d4119
Return session id's on batch creation
2023-08-11 11:45:27 -04:00
f3ae52ff97
Fix error at high denoising_start, fix unipc(cpu_only)
2023-08-11 15:46:16 +03:00
87ce4ab27c
fix: Update default_graph to use new DenoiseLatents
2023-08-11 22:21:13 +12:00
7c0023ad9e
feat: Remove TextToLatents / Rename Latents To Latents -> DenoiseLatents
2023-08-11 22:20:37 +12:00
231e665675
Merge branch 'main' into feat/refactor_generation_backend
2023-08-11 20:53:38 +12:00
2ef6a8995b
Temporary force set vae to same precision as unet
2023-08-10 18:01:58 -04:00
a969707e45
prevent vae: '' from crashing model
2023-08-10 17:33:04 -04:00
c1dde83abb
Clean up erroniously added lines
2023-08-10 14:28:50 -04:00
280ac15da2
Go back to 1 lock per table
2023-08-10 14:26:22 -04:00