psychedelicious
421c23d3ea
fix(ui): fix gallery image fetching for board categories
2023-06-22 16:25:49 +10:00
psychedelicious
4545f3209f
fix(ui): fix bug with image deletion not removing image from gallery
2023-06-22 16:25:49 +10:00
psychedelicious
e2ee8102c2
tidy(db): tidy image_record_storage.py
2023-06-22 16:25:49 +10:00
psychedelicious
083a0fc4cf
tidy(ui): remove references to boardsAdapter
2023-06-22 16:25:49 +10:00
psychedelicious
26b75b85f7
fix(ui): if deleting selected board, deselect it
2023-06-22 16:25:49 +10:00
psychedelicious
f560a462a0
feat(ui): rudimentary categorized gallery image fetching
2023-06-22 16:25:49 +10:00
psychedelicious
d501986610
chore(ui): regen api client
2023-06-22 16:25:49 +10:00
psychedelicious
67a75f6895
feat(api, db): support board_id
filter on images service get_many()
2023-06-22 16:25:49 +10:00
psychedelicious
3c032c0767
feat(ui): only auto-add image to board if is not intermediate
2023-06-22 16:25:49 +10:00
psychedelicious
abd6561140
feat(ui): just fetch all boards instead of paginating them
2023-06-22 16:25:49 +10:00
psychedelicious
bd533426fc
feat(ui): first pass at boards styling
2023-06-22 16:25:49 +10:00
psychedelicious
2489d5459f
chore(ui): regen api client
2023-06-22 16:25:49 +10:00
psychedelicious
ac477cf5d6
fix(ui): improve image deletion handling
2023-06-22 16:25:49 +10:00
psychedelicious
be3bdae847
fix: resolve rebase conflicts
2023-06-22 16:25:49 +10:00
psychedelicious
3e0ee838cf
fix(ui): add initial image dimensions to state
...
We need to access the initial image dimensions during the creation of the `ImageToImage` graph to determine if we need to resize the image.
Because the `initialImage` is now just an image name, we need to either store (easy) or dynamically retrieve its dimensions during graph creation (a bit less easy).
Took the easiest path. May need to revise this in the future.
2023-06-22 16:25:49 +10:00
psychedelicious
8d3bec57d5
feat(ui): store only image name in parameters
...
Images that are used as parameters (e.g. init image, canvas images) are stored as full `ImageDTO` objects in state, separate from and duplicating any object representing those same objects in the `imagesSlice`.
We cannot store only image names as parameters, then pull the full `ImageDTO` from `imagesSlice`, because if an image is not on a loaded page, it doesn't exist in `imagesSlice`. For example, if you scroll down a few pages in the gallery and send that image to canvas, on reloading the app, the canvas will be unable to load that image.
We solved this temporarily by storing the full `ImageDTO` object wherever it was needed, but this is both inefficient and allows for stale `ImageDTO`s across the app.
One other possible solution was to just fetch the `ImageDTO` for all images at startup, and insert them into the `imagesSlice`, but then we run into an issue where we are displaying images in the gallery totally out of context.
For example, if an image from several pages into the gallery was sent to canvas, and the user refreshes, we'd display the first 20 images in gallery. Then to populate the canvas, we'd fetch that image we sent to canvas and add it to `imagesSlice`. Now we'd have 21 images in the gallery: 1 to 20 and whichever image we sent to canvas. Weird.
Using `rtk-query` solves this by allowing us to very easily fetch individual images in the components that need them, and not directly interact with `imagesSlice`.
This commit changes all references to images-as-parameters to store only the name of the image, and not the full `ImageDTO` object. Then, we use an `rtk-query` generated `useGetImageDTOQuery()` hook in each of those components to fetch the image.
We can use cache invalidation when we mutate any image to trigger automated re-running of the query and all the images are automatically kept up to date.
This also obviates the need for the convoluted URL fetching scheme for images that are used as parameters. The `imagesSlice` still need this handling unfortunately.
2023-06-22 16:25:49 +10:00
psychedelicious
cfda128e06
feat(ui): wip boards via rtk-query
2023-06-22 16:25:49 +10:00
psychedelicious
661a94b3de
feat(db): add get_all()
method for boards
...
This is needed to show the full list of boards in the update boards modal.
2023-06-22 16:25:49 +10:00
psychedelicious
9ef64016c7
feat(db): sort board by created_at
2023-06-22 16:25:49 +10:00
psychedelicious
21f0d0b0c1
fix(db): fix deserialize_board_record()
...
It was not adding `cover_image_name`
2023-06-22 16:25:49 +10:00
psychedelicious
8bce234542
feat(db): update image-board relationships on add
...
Functionally, `add_image_to_board()` now moves images between boards.
2023-06-22 16:25:49 +10:00
psychedelicious
daadf6ebfd
feat(ui): add board image count badge
2023-06-22 16:25:49 +10:00
Mary Hipp
fe10a9f747
render cover image based on URL in image entities
2023-06-22 16:25:49 +10:00
Mary Hipp
7a2d3f628a
add boardToAddTo state so that result can be added to board when generation is complete
2023-06-22 16:25:49 +10:00
Mary Hipp
4defb92105
handle long board names
2023-06-22 16:25:49 +10:00
Mary Hipp
f9f3c91a83
drag and drop to move image to board, a bit of board list UI
2023-06-22 16:25:49 +10:00
maryhipp
95b9c8e505
return cover_image_name since urls change, override one from db for now
2023-06-22 16:25:49 +10:00
psychedelicious
49a02c157b
feat(ui): fix UpdateImageBoardModal select
2023-06-22 16:25:49 +10:00
psychedelicious
d604d986f9
feat(db, api): update get_board_for_image & service dependencies
...
- previously was `get_boards_for_image`, returning a list of `BoardDTO`, now returns a single `board_id`
2023-06-22 16:25:49 +10:00
psychedelicious
70cc037a9c
fix(ui): do not persist boards
2023-06-22 16:25:49 +10:00
psychedelicious
e4893e4031
fix(db): return board records from CRUD methods
2023-06-22 16:25:49 +10:00
maryhipp
4a0a718b96
foiled by a comma
2023-06-22 16:25:49 +10:00
maryhipp
ca8f1a7828
(api) use most recently generated image for cover photo
2023-06-22 16:25:49 +10:00
Mary Hipp
2e41af2109
[half-baked] adding image to board modal
2023-06-22 16:25:49 +10:00
Mary Hipp
bd29e5e655
UI tweaks
2023-06-22 16:25:49 +10:00
Mary Hipp
dcfee2e1e4
add searching to boards list
2023-06-22 16:25:49 +10:00
Mary Hipp
8aac683319
can delete and rename boards
2023-06-22 16:25:49 +10:00
psychedelicious
d306a84447
feat(ui): rough out boards UI
2023-06-22 16:25:49 +10:00
psychedelicious
5865ecd530
feat(db): add FK for boards.cover_image_name
2023-06-22 16:25:49 +10:00
psychedelicious
e1f9685b02
feat(db): add index for boards
2023-06-22 16:25:49 +10:00
psychedelicious
498bf0d0ba
feat(db): add indices for board_images
2023-06-22 16:25:49 +10:00
psychedelicious
163ef2c941
feat(ui): remove refs to BoardRecord in UI
...
UI should only work w/ BoardDTO
2023-06-22 16:25:49 +10:00
psychedelicious
48193b7fa7
chore(ui): regen api client
2023-06-22 16:25:49 +10:00
psychedelicious
dd1b3c9f35
fix(api): update API models to use BoardDTOs
2023-06-22 16:25:49 +10:00
psychedelicious
4b32322a58
feat(nodes): make board <> images a one-to-many relationship
...
we can extend this to many-to-many in the future if desired.
2023-06-22 16:25:49 +10:00
Mary Hipp
e06c43adc8
lint fix
2023-06-22 16:25:49 +10:00
Mary Hipp
c009f46b00
regenerate api schema
2023-06-22 16:25:49 +10:00
maryhipp
748016bdab
routes working
2023-06-22 16:25:49 +10:00
psychedelicious
72e9ced889
feat(nodes): add boards and board_images services
2023-06-22 16:25:49 +10:00
maryhipp
3833304f57
[WIP] board list endpoint w cover photos
2023-06-22 16:25:49 +10:00
maryhipp
4bfaae6617
fix type
2023-06-22 16:25:49 +10:00
maryhipp
499a174832
some more
2023-06-22 16:25:49 +10:00
maryhipp
6ca5ad9075
filter images by board_id
2023-06-22 16:25:49 +10:00
maryhipp
a121e6b3a0
add board_id association to image
2023-06-22 16:25:49 +10:00
maryhipp
207602f425
remove unused
2023-06-22 16:25:49 +10:00
maryhipp
a1671519d5
board CRUD
2023-06-22 16:25:49 +10:00
Lincoln Stein
1c31efa57c
punctuation fix in user message
2023-06-21 09:37:24 -04:00
Lincoln Stein
b727442f84
better window size behavior under alacritty & terminator
2023-06-21 09:32:58 -04:00
Lincoln Stein
90df316835
Merge branch 'main' into lstein/installer-for-new-model-layout
2023-06-20 22:50:41 +01:00
Lincoln Stein
2fc19d9afa
suppress description in "other models" tab for space reasons
2023-06-20 11:45:37 -04:00
Lincoln Stein
ac6403f877
address some of ebr issues
2023-06-20 11:08:27 -04:00
Lincoln Stein
678bb4fe10
Merge branch 'lstein/installer-for-new-model-layout' of github.com:invoke-ai/InvokeAI into lstein/installer-for-new-model-layout
2023-06-20 09:42:21 -04:00
Lincoln Stein
294b1e83e6
test and fix edge cases
2023-06-20 09:42:10 -04:00
blessedcoolant
4f5693040e
Merge branch 'main' into fix/inpaint_new_manager
2023-06-19 22:55:00 +12:00
psychedelicious
41442eb7f6
feat(ui): convert canvas txt2img & img2img to latents
...
- Add graph builders for canvas txt2img & img2img - they are mostly copy and paste from the linear graph builders but different in a few ways that are very tricky to work around. Just made totally new functions for them.
- Canvas txt2img and img2img support ControlNet (not inpaint/outpaint). There's no way to determine in real-time which mode the canvas is in just yet, so we cannot disable the ControlNet UI when the mode will be inpaint/outpaint - it will always display. It's possible to determine this in near-real-time, will add this at some point.
- Canvas inpaint/outpaint migrated to use model loader, though inpaint/outpaint are still using the non-latents nodes.
2023-06-19 15:57:28 +10:00
psychedelicious
223a679ac1
chore(ui): regen api client
2023-06-19 15:57:28 +10:00
psychedelicious
3c60616b4d
feat(ui): simplify linear graph creation logic
...
Instead of manually creating every node and edge, we can simply copy/paste the base graph from node editor, then sub in parameters.
This is a much more intelligible process. We still need to handle seed, img2img fit and controlnet separately.
2023-06-19 15:57:28 +10:00
Sergey Borisov
a01998d095
Remove more old logic
2023-06-19 15:57:28 +10:00
Sergey Borisov
7b35162b9e
Remove old logic except for inpaint, add support for lora and ti to inpaint node
2023-06-19 15:57:28 +10:00
Sergey Borisov
c26e1a9271
Rewrite inpaint node to new model manager, remove TextToImage and ImageToImage nodes
2023-06-19 15:57:28 +10:00
Sergey Borisov
9b32407744
Provide generator to all schedulers step function to make both ancestral and sde schedulers reproducible
2023-06-19 00:34:01 +03:00
Sergey Borisov
82091b9a66
Fix vae conversion
2023-06-18 23:46:07 +03:00
Sergey Borisov
f3d9797ebe
Add dpmpp_sde and dpmpp_2m_sde schedulers(with karras)
2023-06-18 23:38:15 +03:00
blessedcoolant
80a8d3ef28
style: Theme placeholder style for IAIMantineMultiSelect
2023-06-18 22:17:09 +12:00
blessedcoolant
f4ca9d0e09
Merge branch 'scheduler-select' of https://github.com/blessedcoolant/InvokeAI into scheduler-select
2023-06-18 22:05:12 +12:00
blessedcoolant
a960fa009d
fix: Fix some styling issues with IAIMantineMultiSelect
2023-06-18 22:04:12 +12:00
psychedelicious
b96b95bc95
feat(ui): enabledSchedulers
-> favoriteSchedulers
2023-06-18 20:01:05 +10:00
psychedelicious
450641c414
fix(ui): enable all schedulers by default
2023-06-18 19:39:31 +10:00
psychedelicious
94cfcdc411
feat(ui): improve scheduler selection logic
...
- remove UI-specific state (the enabled schedulers) from redux, instead derive it in a selector
- simplify logic by putting schedulers in an object instead of an array
- rename `activeSchedulers` to `enabledSchedulers`
- remove need for `useEffect()` when `enabledSchedulers` changes by adding a listener for the `enabledSchedulersChanged` action/event to `generationSlice`
- increase type safety by making `enabledSchedulers` an array of `SchedulerParam`, which is created by the zod schema for scheduler
2023-06-18 19:34:37 +10:00
psychedelicious
150059f704
fix(ui): create all scheduler constants up-front
2023-06-18 18:49:10 +10:00
psychedelicious
f1a8b9daee
fix(ui): clarify scheduler logic
...
- use full conditional syntax with `{}`
- do not mutate `action.payload` in a reducer
2023-06-18 18:47:59 +10:00
blessedcoolant
be8c0bb952
feat: Use Labels for Schedulers
2023-06-18 20:17:51 +12:00
blessedcoolant
dae5b9b259
fix: Minor styling fix to the IAIMantineMultiSelect component
2023-06-18 20:06:56 +12:00
blessedcoolant
06428fac67
fix: Revert scheduler back to zod validation
2023-06-18 20:02:36 +12:00
blessedcoolant
59b5dfc3e0
feat: Port Schedulers to Mantine
2023-06-18 19:47:27 +12:00
Lincoln Stein
e1d53b86f3
Merge branch 'main' into lstein/installer-for-new-model-layout
2023-06-17 16:26:56 -07:00
Lincoln Stein
ddb3f4b02b
make configure script work properly on empty rootdir
2023-06-17 19:26:35 -04:00
Sergey Borisov
6b7cf3f3be
Add lms and dpmpp2_s karras scheduler
2023-06-17 21:00:16 +03:00
Lincoln Stein
f28d50070e
configure/install basically working; needs edge case testing
2023-06-16 22:54:36 -04:00
Lincoln Stein
ada7399753
rewrite of widget display - marshalling needs rewrite
2023-06-15 23:32:33 -04:00
Sergey Borisov
5f2d07917d
Fix lora import, fix sd2 config, fix list models api
2023-06-15 21:30:15 +03:00
Lincoln Stein
82c2498043
Merge branch 'main' into lstein/new-model-manager
2023-06-14 08:41:40 -07:00
blessedcoolant
4ca325e8e6
chore: Rebuild API
2023-06-15 03:20:49 +12:00
blessedcoolant
6b8e88ad7f
Merge branch 'main' into feat/controlnet-control-modes
2023-06-15 03:18:41 +12:00
psychedelicious
b8e32fa459
chore(ui): regen api client
2023-06-15 01:05:16 +10:00
psychedelicious
34ebee67b7
fix(nodes): fix revert conflict
2023-06-15 01:05:16 +10:00
psychedelicious
e0c998d192
Revert "feat(ui): add warning socket event handling"
...
This reverts commit e7a61e631a42190e4b64e0d5e22771c669c5b30c.
2023-06-15 01:05:16 +10:00
psychedelicious
b51e9a6bdb
Revert "feat(nodes): add warning socket event"
...
This reverts commit cefdd9d634e515239bd85666c872a0d64bb9d772.
2023-06-15 01:05:16 +10:00
psychedelicious
09f396ce84
feat(ui): add warning socket event handling
2023-06-15 01:05:16 +10:00
psychedelicious
abee37eab3
feat(nodes): add warning socket event
2023-06-15 01:05:16 +10:00
psychedelicious
42e48b2bef
feat(nodes): add dynamic prompt node
2023-06-15 01:05:16 +10:00
psychedelicious
f9d5f9d52c
fix(nodes): minor fixes for folder validation
...
- fix type for `__output_folder`
- prefix `validate_storage_folders()` with `__` to indicate private method
2023-06-15 00:40:39 +10:00
StAlKeR7779
d0ee3558d1
Merge branch 'main' into lstein/new-model-manager
2023-06-14 17:29:01 +03:00
blessedcoolant
587297878a
refactor(minor): Latent Disk Storage
2023-06-15 02:21:49 +12:00
blessedcoolant
b4c998a9ae
refactor(minor): Image File Storage
2023-06-15 01:58:58 +12:00
psychedelicious
88e8e3977b
feat(ui): update UI to not use image_origin
...
see commit `8ad8de8: feat(nodes): remove `image_origin` from most places` for details.
2023-06-14 23:08:27 +10:00
psychedelicious
24b86cffe9
chore(ui): regen api client & types
2023-06-14 23:08:27 +10:00
psychedelicious
a1773197e9
feat(nodes): remove image_origin
from most places
...
- remove `image_origin` from most places where we interact with images
- consolidate image file storage into a single `images/` dir
Images have an `image_origin` attribute but it is not actually used when retrieving images, nor will it ever be. It is still used when creating images and helps to differentiate between internally generated images and uploads.
It was included in eg API routes and image service methods as a holdover from the previous app implementation where images were not managed in a database. Now that we have images in a db, we can do away with this and simplify basically everything that touches images.
The one potentially controversial change is to no longer separate internal and external images on disk. If we retain this separation, we have to keep `image_origin` around in a number of spots and it getting image paths on disk painful.
So, I am have gotten rid of this organisation. Images are now all stored in `images`, regardless of their origin. As we improve the image management features, this change will hopefully become transparent.
2023-06-14 23:08:27 +10:00
blessedcoolant
6c53abc034
feat: Add ControlMode to Linear UI
2023-06-14 20:01:17 +12:00
blessedcoolant
eb7047b21d
chore: Rebuild WebAPI
2023-06-14 19:26:02 +12:00
blessedcoolant
43419ac761
Merge branch 'main' into feat/controlnet-control-modes
2023-06-14 19:04:42 +12:00
user1
5cd0e90816
Renamed ControlNet control_mode option "even_more_control" to "unbalanced"
2023-06-13 22:30:17 -07:00
user1
cfd49e3921
Removing vestigial comments.
2023-06-13 21:33:15 -07:00
user1
a8e0490133
Merge branch 'feat/controlnet-control-modes' of https://github.com/invoke-ai/InvokeAI into feat/controlnet-control-modes
2023-06-13 21:21:13 -07:00
psychedelicious
1e08d865c9
chore: dummy commit to trigger actions
2023-06-14 14:14:24 +10:00
blessedcoolant
f8bb650cc1
revert: IAIScrollArea
2023-06-14 14:14:24 +10:00
psychedelicious
2cee8bebb2
fix(ui): revert offset scrollbars
...
The wonky padding is too janky. Just overlay for now.
2023-06-14 14:14:24 +10:00
psychedelicious
ade4ec5fd8
fix(ui): fix crash when toggling pinned parameters panel
2023-06-14 14:14:24 +10:00
psychedelicious
70ffd6b03f
fix(ui): fix controlnet selects data types
2023-06-14 14:14:24 +10:00
psychedelicious
6c551df311
fix(ui): fix rebase conflicts
2023-06-14 14:14:24 +10:00
blessedcoolant
24f605629e
cleanup: Remove OverlayScrollable component
2023-06-14 14:14:24 +10:00
blessedcoolant
2af1ec9d02
fix: Minor padding issue in unpinned drawer
2023-06-14 14:14:24 +10:00
blessedcoolant
79d53341de
fix: Stretch scroll area so it retains parent width
2023-06-14 14:14:24 +10:00
blessedcoolant
e40b3506c4
fix: Options squishing on accordion collapse
2023-06-14 14:14:24 +10:00
blessedcoolant
33912382e3
feat: Introduce Mantine's ScrollArea
2023-06-14 14:14:24 +10:00
blessedcoolant
d282810e53
cleanup: Remove IAICustomSelect and port types
2023-06-14 14:14:24 +10:00
psychedelicious
9df502fc77
fix(ui): fix mantine select props
2023-06-14 14:14:24 +10:00
psychedelicious
705573f0a8
feat(ui): even more pedantic mantine select theming
2023-06-14 14:14:24 +10:00
blessedcoolant
1878ea94f6
feat: Port Canvas Layer Select to IAIMantineSelect
2023-06-14 14:14:24 +10:00
psychedelicious
4ba5086b9a
feat(ui): add tooltip to IAIMantineSelect
2023-06-14 14:14:24 +10:00
psychedelicious
4a991b4daa
feat(ui): more pedantic mantine select theming
2023-06-14 14:14:24 +10:00
psychedelicious
80474d26f9
feat(ui): mantine scrollbar theming
2023-06-14 14:14:24 +10:00
blessedcoolant
9a77bd9140
feat: Port IAISelect's to IAIMantineSelect's
...
Ported everything except Model Manager selects and the Canvas Layer Select (this needs tooltip support)
2023-06-14 14:14:24 +10:00
psychedelicious
14cdc800c3
feat(ui): pedantic mantine select theming
2023-06-14 14:14:24 +10:00
blessedcoolant
9cfbea4c25
feat: Match styling of Mantine Select with InvokeAI
2023-06-14 14:14:24 +10:00
blessedcoolant
5fe674e223
feat: Standardize IAIMantineSelect Component
2023-06-14 14:14:24 +10:00
blessedcoolant
32200efce8
feat: Change default font to Inter
2023-06-14 14:14:24 +10:00
blessedcoolant
68a02da990
feat: Use Mantine Select for Scheduler
2023-06-14 14:14:24 +10:00
blessedcoolant
5b20766ea3
chore: Move Mantine Theme Override to own file
2023-06-14 14:14:24 +10:00
blessedcoolant
9a914250a0
feat: Change Model Select To Mantine
2023-06-14 14:14:24 +10:00
blessedcoolant
0e3106f631
feat: Add Mantine Support
2023-06-14 14:14:24 +10:00
user1
de3e6cdb02
Switched over to ControlNet control_mode with 4 options: balanced, more_prompt, more_control, even_more_control. Based on True/False combinations of internal booleans cfg_injection and soft_injection
2023-06-13 21:08:34 -07:00
Sergey Borisov
6c5954f9d1
Add controlnet to model manager, fixes
2023-06-14 04:26:21 +03:00
Sergey Borisov
740c05a0bb
Save models on rescan, uncache model on edit/delete, fixes
2023-06-14 03:12:12 +03:00
Sergey Borisov
26090011c4
Fix conflict resolve, add model configs to type annotation
2023-06-14 00:26:37 +03:00
StAlKeR7779
c9ae26a176
Merge branch 'main' into lstein/new-model-manager
2023-06-13 23:37:52 +03:00
Sergey Borisov
e7db6d8120
Fix ckpt and vae conversion, migrate script, remove sd2-base
2023-06-13 18:05:12 +03:00
user1
8495764d45
Moving from ControlNet guess_mode to separate booleans for cfg_injection and soft_injection for testing control modes
2023-06-13 00:41:36 -07:00
user1
8b7fac75ed
First pass at ControlNet "guess mode" implementation.
2023-06-13 00:41:36 -07:00
user1
9e0e26f4c4
Moving from ControlNet guess_mode to separate booleans for cfg_injection and soft_injection for testing control modes
2023-06-12 23:57:57 -07:00