Brandon Rising
66bbd62758
Run ruff and fix typing in torch patcher
2024-10-02 18:33:05 -04:00
Brandon Rising
0875e861f5
Various updates to gguf performance
2024-10-02 18:33:05 -04:00
Ryan Dick
807f458f13
Move FLUX_LORA_TRANSFORMER_PREFIX and FLUX_LORA_CLIP_PREFIX to a shared location.
2024-10-01 10:22:11 -04:00
Ryan Dick
ba8ef6ff0f
(minor) remove remaining incorrect references to T5 encoder in comments.
2024-09-30 07:59:14 -04:00
Ryan Dick
c256826015
Whoops, the 'lora_te1' prefix in FLUX kohya models refers to the CLIP text encoder - not the T5 as previously assumed. Update everything accordingly.
2024-09-30 07:59:14 -04:00
Ryan Dick
7d38a9b7fb
Add prefix to distinguish FLUX LoRA submodels.
2024-09-30 07:59:14 -04:00
Ryan Dick
249da858df
Add support for FLUX T5 text encoder LoRA models to invocations.
2024-09-30 07:59:14 -04:00
psychedelicious
21017edcde
fix(api): UI crash with TypeError: i.map is not a function
...
This pops up every now and then and I could never figure it out. A user figured it out in #6936 . The cause is appending a query string to the app URL.
For example:
```sh
http://127.0.0.1:9090/?__theme=dark
```
The query string breaking the static file serving, which prevents our translations from loading correctly. Instead of the JSON translations, FastAPI sends the index HTML page. The UI then errors when attempting to parse the translation JSON.
The query string ?__theme=dark is used by Gradio to force dark mode. I believe the users with this issue are doing the same thing the user in #6936 did (just change the port number on an existing bookmark) or their browser history/bookmark includes the query string.
Though this is technically a user-caused problem (we cannot prevent the user from using a malformed URL), we can work around it. When query string is used on the root path, we can redirect the browser to the root path without the query string.
This is done via very simple middleware.
Closes #6696
Closes #6817
Closes #6828
Closes #6936
Closes #6983
2024-09-30 13:15:57 +10:00
Ryan Dick
9a49374e12
Update FLUX default workflows.
2024-09-26 19:54:28 -04:00
Ryan Dick
bdeec54886
Remove FLUX TrajectoryGuidanceExtension and revert to the InpaintExtension. Keep the improved inpaint gradient mask adjustment behaviour.
2024-09-26 19:54:28 -04:00
Ryan Dick
ba07e255f5
Add support for fractional denoise start and end with FLUX.
2024-09-26 19:54:28 -04:00
Ryan Dick
fae96f3b9f
Remove trajectory_guidance_strength parameter.
2024-09-26 19:54:28 -04:00
psychedelicious
3abc80b88e
fix(app): broken link in invokeai.yaml example
2024-09-25 14:44:01 +03:00
Mary Hipp
6e6c555765
change order of infill methods
2024-09-23 13:57:20 -04:00
psychedelicious
12e54eb249
feat(nodes): mark core metadata internal
2024-09-23 16:16:51 +03:00
psychedelicious
62ba277268
fix(app): issue w/ import forward ref
2024-09-22 21:20:32 +03:00
psychedelicious
c0609f760f
feat(app): use new signal_progress API for spandrel nodes
...
Both the vanilla and autoscale invocations report progress while processing each tile.
The autoscale version, which may run the spandrel model multiple times, also includes the current iteration.
2024-09-22 21:20:32 +03:00
psychedelicious
44c41e9549
tidy(app): remove unused invocation_denoise_progress event
...
This is now superseded by the invocation_progress event.
2024-09-22 21:20:32 +03:00
psychedelicious
a6f93d3862
feat(app): use new signal_progress for denoising
...
- Update the step callback methods in the invocation API to use the new signal_progress API
- Copy and update the `calc_percentage`, reducing special handling for step and total_steps - a followup commit will fix callers of the step callbacks
2024-09-22 21:20:32 +03:00
psychedelicious
4b8b76ff3c
feat(app): add signal_progress method to invocation API
...
Any node can use this at any time to signal its progress to the client. The docstrings are detailed.
2024-09-22 21:20:32 +03:00
psychedelicious
a177d9a782
feat(app): add builder method on ProgressImage
2024-09-22 21:20:32 +03:00
psychedelicious
6b91084672
feat(app): add generalized progress event
...
Eliminate coupling on stable diffusion for progress events. Can be used for any node.
2024-09-22 21:20:32 +03:00
Ryan Dick
183a67cb1e
Merge branch 'main' into ryan/flux-trajectory-guidance
2024-09-20 22:29:34 +00:00
maryhipp
a4a0cc6d10
more default workflow updates
2024-09-20 15:48:31 -04:00
maryhipp
e50f71ec53
bump version of flux_denoise node, update default workflows
2024-09-20 15:41:44 -04:00
psychedelicious
6540381fb5
feat(nodes): clean up canvas v2's output node
...
- Marked internal
- Changed output type to plain ol' `ImageOutput`
- Removed unused code
2024-09-20 16:01:02 +03:00
psychedelicious
2d617f6067
feat(nodes): add Classification.Internal
...
This can be used for nodes that Invoke uses internally. Internal nodes do not have API stability guarantees. For example, they may change if the needs of the linear UI change.
2024-09-20 16:01:02 +03:00
Ryan Dick
e8357afd3a
Add traj_guidance_strength to FluxDenoiseInvocation.
2024-09-20 02:41:52 +00:00
maryhipp
5fa0a9479d
fix type for transformer
2024-09-19 10:08:19 -04:00
maryhipp
3b16aca83a
updated node description
2024-09-19 10:08:19 -04:00
maryhipp
f4ac7489ea
ruff check again
2024-09-19 10:08:19 -04:00
maryhipp
1f667f044a
mark both FLUX LoRA nodes as prototype
2024-09-19 10:08:19 -04:00
maryhipp
ab3d239931
ruff checkk
2024-09-19 10:08:19 -04:00
maryhipp
d4a7e48109
lora collector node
2024-09-19 10:08:19 -04:00
psychedelicious
3ade9300b2
fix(app): exclude intermediate images from board image count
2024-09-19 23:36:22 +10:00
psychedelicious
8064a0a820
fix(app): do not show intermediate images for board thumbnail
2024-09-19 23:36:22 +10:00
omahs
b5620cfdcd
fix typo
2024-09-19 05:40:54 +03:00
Ryan Dick
3d6f60f63e
Merge branch 'main' into ryan/flux-lora-quantized
2024-09-18 13:22:39 -04:00
psychedelicious
9b0dd52792
feat(app): add get_queue_counts_by_destination
...
This allows the frontend to check if there are, for example, pending canvas generations.
2024-09-18 06:40:47 +03:00
Mary Hipp
00de20d102
fix(nodes): add flux generation types to choices
2024-09-17 15:44:20 +10:00
Ryan Dick
02f27c750a
Add unit tests for LoRAPatcher.apply_lora_sidecar_patches(...) and fixup dtype handling in the sidecar layers.
2024-09-15 04:39:56 +03:00
Ryan Dick
61d3d566de
Minor cleanup and documentation updates.
2024-09-15 04:39:56 +03:00
Ryan Dick
45bc8fcd7f
WIP - Implement sidecar LoRA layers using functional API.
2024-09-15 04:39:56 +03:00
Ryan Dick
f5f894437c
Bug fixes to get LoRA sidecar patching working for the first time.
2024-09-15 04:39:56 +03:00
Ryan Dick
fef26a5f2f
Consolidate all LoRA patching logic in the LoRAPatcher.
2024-09-15 04:39:56 +03:00
Ryan Dick
50c9410121
WIP
2024-09-15 04:39:56 +03:00
Ryan Dick
01a15b4d80
WIP - add invocations to support FLUX LORAs.
2024-09-15 04:39:56 +03:00
Ryan Dick
51df5aa94d
Invert the expected denoise_mask parameter to the FLUX Denoise node to match the behaviour of Denoise Latents node used for SD.
2024-09-14 00:42:31 +03:00
Ryan Dick
2b3e4e123d
Split LoRA layer implementations into separate files.
2024-09-12 15:53:30 +00:00
psychedelicious
4f2fc65257
tidy(nodes): MLSDEdgeDetection -> MLSDDetection
...
It's a line segment detector, not general edge detector.
2024-09-11 08:12:48 -04:00