psychedelicious
cc83dede9f
chore: bump version to v5.2.0rc1
2024-10-11 10:11:47 +11:00
Riccardo Giovanetti
8464fd2ced
translationBot(ui): update translation (Italian)
...
Currently translated at 98.5% (1462 of 1483 strings)
Co-authored-by: Riccardo Giovanetti <riccardo.giovanetti@gmail.com >
Translate-URL: https://hosted.weblate.org/projects/invokeai/web-ui/it/
Translation: InvokeAI/Web UI
2024-10-11 09:41:45 +11:00
Васянатор
c3316368d9
translationBot(ui): update translation (Russian)
...
Currently translated at 100.0% (1479 of 1479 strings)
Co-authored-by: Васянатор <ilabulanov339@gmail.com >
Translate-URL: https://hosted.weblate.org/projects/invokeai/web-ui/ru/
Translation: InvokeAI/Web UI
2024-10-11 09:41:45 +11:00
Riku
8b2d5ab28a
translationBot(ui): update translation (German)
...
Currently translated at 70.3% (1048 of 1490 strings)
translationBot(ui): update translation (German)
Currently translated at 69.4% (1027 of 1479 strings)
Co-authored-by: Riku <riku.block@gmail.com >
Translate-URL: https://hosted.weblate.org/projects/invokeai/web-ui/de/
Translation: InvokeAI/Web UI
2024-10-11 09:41:45 +11:00
psychedelicious
3f6acdc2d3
fix(ui): use non-icon version of delete menu item on canvas context menu
2024-10-10 18:23:32 -04:00
psychedelicious
4aa20a95b2
feat(ui): consolidate img2img canvas flow
...
Make the `New Canvas From Image` button do what the `New Img2Img From Image` does.
2024-10-11 09:03:44 +11:00
Ryan Dick
2d82e69a33
Add support for FLUX ControlNet models (XLabs and InstantX) ( #7070 )
...
## Summary
Add support for FLUX ControlNet models (XLabs and InstantX).
## QA Instructions
- [x] SD1 and SDXL ControlNets, since the ModelLoaderRegistry calls were
changed.
- [x] Single Xlabs controlnet
- [x] Single InstantX union controlnet
- [x] Single InstantX controlnet
- [x] Single Shakker Labs Union controlnet
- [x] Multiple controlnets
- [x] Weight, start, end params all work as expected
- [x] Can be used with image-to-image and inpainting.
- [x] Clear error message if no VAE is passed when using InstantX
controlnet.
- [x] Install InstantX ControlNet in diffusers format from HF repo
(`InstantX/FLUX.1-dev-Controlnet-Union`)
- [x] Test all FLUX ControlNet starter models
## Merge Plan
No special instructions.
## Checklist
- [x] _The PR has a short but descriptive title, suitable for a
changelog_
- [x] _Tests added / updated (if applicable)_
- [ ] _Documentation added / updated (if applicable)_
2024-10-10 12:37:09 -04:00
Ryan Dick
683f9a70e7
Restore instantx_control_mode field on FLUX ControlNet invocation.
2024-10-10 15:25:30 +00:00
Ryan Dick
bb6d073828
Use the Shakker-Labs ControlNet union model as the only FLUX ControlNet starter model.
2024-10-10 13:59:59 +00:00
Kent Keirsey
7f7d8e5177
Merge branch 'ryan/flux-controlnet-xlabs-instantx' of https://github.com/invoke-ai/InvokeAI into ryan/flux-controlnet-xlabs-instantx
2024-10-10 08:06:25 -04:00
Ryan Dick
f37c5011f4
Reduce peak memory utilization when preparing FLUX controlnet inputs.
2024-10-10 07:59:29 -04:00
Ryan Dick
bb947c6162
Make FLUX controlnet node API more like SD API and get it working with linear UI.
2024-10-10 07:59:29 -04:00
Ryan Dick
a654dad20f
Remove instantx_control_mode from FLUX ControlNet node.
2024-10-10 07:59:29 -04:00
Mary Hipp
2bd44662f3
possibly a working FLUX controlnet graph
2024-10-10 07:59:29 -04:00
Ryan Dick
e7f9086006
Fix bug with InstantX input image range.
2024-10-10 07:59:29 -04:00
Mary Hipp
5141be8009
hide Control Mode for FLUX control net layer
2024-10-10 07:59:29 -04:00
Mary Hipp
eacdfc660b
ui: enable controlnet controls when FLUX is main model, update schema
2024-10-10 07:59:29 -04:00
maryhipp
5fd3c39431
update prepreprocessor logic to be more resilient
2024-10-10 07:59:29 -04:00
maryhipp
7daf3b7d4a
update starter models to include FLUX controlnets
2024-10-10 07:59:29 -04:00
Ryan Dick
908f65698d
Fix support for InstantX non-union models (with no single blocks).
2024-10-10 07:59:29 -04:00
Ryan Dick
63c4ac58e9
Support installing InstantX ControlNet models from diffusers directory format.
2024-10-10 07:59:29 -04:00
Ryan Dick
8c125681ea
Skip tests that are failing on MacOS CI runners (for now).
2024-10-10 07:59:29 -04:00
Ryan Dick
118f0ba3bf
Revert "Try to fix test failures affecting MacOS CI runners."
...
This reverts commit 216b36c75d .
2024-10-10 07:59:29 -04:00
Ryan Dick
b3b7d084d0
Try to fix test failures affecting MacOS CI runners.
2024-10-10 07:59:29 -04:00
Ryan Dick
812940eb95
(minor) Add comment about future memory optimization.
2024-10-10 07:59:29 -04:00
Ryan Dick
0559480dd6
Shift the controlnet-type-specific logic into the specific ControlNet extensions and make the FLUX model controlnet-type-agnostic.
2024-10-10 07:59:29 -04:00
Ryan Dick
d99e7dd4e4
Add instantx_control_mode param to FLUX ControlNet invocation.
2024-10-10 07:59:29 -04:00
Ryan Dick
e854181417
Create a dedicated FLUX ControlNet invocation.
2024-10-10 07:59:29 -04:00
Ryan Dick
de414c09fd
Bugfixes to get InstantX ControlNet working.
2024-10-10 07:59:29 -04:00
Ryan Dick
ce4624f72b
Update ControlNetCheckpointProbe.get_base_type() to work with InstantX.
2024-10-10 07:59:29 -04:00
Ryan Dick
47c7df3476
Fix circular imports related to XLabsControlNetFluxOutput and InstantXControlNetFluxOutput.
2024-10-10 07:59:29 -04:00
Ryan Dick
4289b5e6c3
Add instantx controlnet logic to FLUX model forward().
2024-10-10 07:59:29 -04:00
Ryan Dick
c8d1d14662
Work on integrating InstantX into denoise process.
2024-10-10 07:59:29 -04:00
Ryan Dick
44c588d778
Rename DiffusersControlNetFlux -> InstantXControlNetFlux.
2024-10-10 07:59:29 -04:00
Ryan Dick
d75ac56d00
Create flux/extensions directory.
2024-10-10 07:59:29 -04:00
Ryan Dick
714dd5f0be
Update FluxControlnetModel to work with both XLabs and InstantX.
2024-10-10 07:59:29 -04:00
Ryan Dick
2f4d3cb5e6
Add unit test to test the full flow of loading an InstantX ControlNet from a state dict.
2024-10-10 07:59:29 -04:00
Ryan Dick
b76555bda9
Add unit test for infer_instantx_num_control_modes_from_state_dict().
2024-10-10 07:59:29 -04:00
Ryan Dick
1cdd501a0a
Add unit test for infer_flux_params_from_state_dict(...).
2024-10-10 07:59:29 -04:00
Ryan Dick
1125218bc5
Update FLUX ControlNet unit test state dicts to include shapes.
2024-10-10 07:59:29 -04:00
Ryan Dick
683504bfb5
Add scripts/extract_sd_keys_and_shapes.py
2024-10-10 07:59:29 -04:00
Ryan Dick
03cf953398
First pass of utility function to infer the FluxParams from a state dict.
2024-10-10 07:59:29 -04:00
Ryan Dick
24c115663d
Add unit test for convert_diffusers_instantx_state_dict_to_bfl_format(...) and fix a few bugs.
2024-10-10 07:59:29 -04:00
Ryan Dick
a9e7ecad49
Finish first draft of convert_diffusers_instantx_state_dict_to_bfl_format(...).
2024-10-10 07:59:29 -04:00
Ryan Dick
76f4766324
WIP - implement convert_diffusers_instantx_state_dict_to_bfl_format(...).
2024-10-10 07:59:29 -04:00
Ryan Dick
3dfc242f77
(minor) rename other_forward() -> forward()
2024-10-10 07:59:29 -04:00
Ryan Dick
1e43389cb4
Add utils for detecting XLabs ControlNet vs. InstantX ControlNet from
...
state dict.
2024-10-10 07:59:29 -04:00
Ryan Dick
cb33de34f7
Migrate DiffusersControlNetFlux from diffusers-style to BFL-style.
2024-10-10 07:59:29 -04:00
Ryan Dick
7562ea48dc
Improve typing of zero_module().
2024-10-10 07:59:29 -04:00
Ryan Dick
83f4700f5a
Use top-level torch import for all torch stuff.
2024-10-10 07:59:29 -04:00