psychedelicious
dbb5830027
fix(ui): useIsEntityTypeEnabled should use useMemo not useCallback
...
Typo/bug introduced in #7770
2025-04-17 11:21:16 +10:00
psychedelicious
4fc4dbb656
fix(ui): ensure query subs are reset in case of error
2025-04-17 11:13:41 +10:00
psychedelicious
d4f6d09cc9
fix(ui): never subscribe to dynamic prompts queries
...
If the request errors, we would never get to unsubscribe. The request would forever be marked as having a subscriber and never be cleared from memory.
2025-04-17 10:36:09 +10:00
psychedelicious
44e44602d3
feat(ui): remove keepUnusedDataFor for dynamic prompts
...
This query can have potentially large responses. Keeping them around for 24 hours essentially a hardcoded memory leak. Use the default for RTKQ of 60 seconds.
2025-04-17 10:36:09 +10:00
psychedelicious
36066c5f26
fix(ui): ensure dynamic prompts updates on any change to any dependent state
...
When users generate on the canvas or upscaling tabs, we parse prompts through dynamic prompts before invoking. Whenever the prompt or other settings change, we run dynamic prompts.
Previously, we used a redux listener to react to changes to dynamic prompts' dependent state, keeping the processed dynamic prompts synced. For example, when the user changed the prompt field, we re-processed the dynamic prompts.
This requires that all redux actions that change the dependent state be added to the listener matcher. It's easy to forget actions, though, which can result in the dynamic prompts state being stale.
For example, when resetting canvas state, we dispatch an action that resets the whole params slice, but this wasn't in the matcher. As a result, when resetting canvas, the dynamic prompts aren't updated. If the user then clicks Invoke (with an empty prompt), the last dynamic prompts state will be used.
For example:
- Generate w/ prompt "frog", get frog
- Click new canvas session
- Generate without any prompt, still get frog
To resolve this, the logic that keeps the dynamic prompts synced is moved from the listener to a hook. The way the logic is triggered is improved - it's now triggered in a useEffect, which is run when the dependent state changes. This way, it doesn't matter _how_ the dependent state changes - the changes will always be "seen", and the dynamic prompts will update.
2025-04-17 10:36:09 +10:00
psychedelicious
cbee6e6faf
fix(app): remove accidentally committed tensor cache size
...
I had set this to zero for testing udring the python 2.6.0 upgrade and neglected to remove it.
2025-04-17 10:12:47 +10:00
psychedelicious
6a822a52b8
chore(ui): update whats new copy
2025-04-16 07:17:52 +10:00
psychedelicious
d10dc28fc2
chore: bump version to v5.10.0rc1
2025-04-16 07:17:52 +10:00
psychedelicious
20eea18c41
chore(ui): typegen
2025-04-16 06:28:22 +10:00
skunkworxdark
566282bff0
Update metadata_linked.py
...
added metadata_to_string_collection, metadata_to_integer_collection, metadata_to_float_collection, metadata_to_bool_collection
2025-04-16 06:28:22 +10:00
psychedelicious
e7e874f7c3
fix(ui): increase padding when fitting layers to stage
2025-04-15 07:47:39 +10:00
psychedelicious
557e0cb3e6
chore(ui): knip
2025-04-15 07:13:25 +10:00
psychedelicious
a12bf07fb3
feat(ui): add node publish denylist
2025-04-15 07:13:25 +10:00
psychedelicious
a5bc21cf50
feat(nodes): extract LaMa model url to constant
2025-04-15 07:13:25 +10:00
psychedelicious
7b84f8c5e8
fix(ui): do not disable image context canvas actions based on selected base model
...
These actions should be accessible at any time.
2025-04-10 10:50:13 +10:00
psychedelicious
0280c9b4b9
fix(ui): generation_mode metadata not set correctly
2025-04-10 10:50:13 +10:00
psychedelicious
ae8d1f26d6
fix(app): import CogView4Transformer2DModel from the module that exports it
2025-04-10 10:50:13 +10:00
psychedelicious
170ea4fb75
fix(app): add CogView4ConditioningInfo to ObjectSerializerDisk's safe_globals
...
needed for torch w/ weights_only=True
2025-04-10 10:50:13 +10:00
psychedelicious
e5b0f8b985
feat(app): remove cogview4 inpaint workflow
...
This doesn't make sense to have as a default workflow given the trickiness of producing alpha masks.
2025-04-10 10:50:13 +10:00
psychedelicious
3f656072cf
feat(app): update cogview4 t2i workflow w/ form
2025-04-10 10:50:13 +10:00
psychedelicious
1d4aa93f5e
chore(ui): typegen
2025-04-10 10:50:13 +10:00
psychedelicious
b182060201
chore(ui): lint
2025-04-10 10:50:13 +10:00
psychedelicious
2b2f64b232
refactor(ui): simplify useIsEntityTypeEnabled
2025-04-10 10:50:13 +10:00
psychedelicious
df32974378
fix(ui): add checks for cogview4's dimension restrictions
2025-04-10 10:50:13 +10:00
psychedelicious
ad582c8cc5
feat(nodes): rename CogView4 nodes to match naming format
2025-04-10 10:50:13 +10:00
psychedelicious
47273135ca
feat(ui): add cogview4 and inpainting tags to library
2025-04-10 10:50:13 +10:00
psychedelicious
c99e65bdab
feat(app): add cogview4 default workflows
2025-04-10 10:50:13 +10:00
Mary Hipp
92b726d731
update available params for cogview4
2025-04-10 10:50:13 +10:00
Mary Hipp
8837932bad
create hook for managing entity type enabledness for given base model and update usage
2025-04-10 10:50:13 +10:00
Mary Hipp
9846229e52
build graph for cogview4
2025-04-10 10:50:13 +10:00
maryhipp
305c5761d0
add generation modes for cogview linear
2025-04-10 10:50:13 +10:00
Ryan Dick
46316e43f0
typegen
2025-04-10 10:50:13 +10:00
Ryan Dick
d86cd66994
Add CogView4 VAE approximation for progress images.
2025-04-10 10:50:13 +10:00
Ryan Dick
13850271ab
Add inpainting to CogView4DenoiseInvocation.
2025-04-10 10:50:13 +10:00
Ryan Dick
7e894ffe83
Consolidate InpaintExtension implementations for SD3 and FLUX.
2025-04-10 10:50:13 +10:00
Ryan Dick
0939030324
Support cfg_scale list in CogView4Denoise.
2025-04-10 10:50:13 +10:00
Ryan Dick
30f19dc37a
Update CogView4Denoise to support image-to-image.
2025-04-10 10:50:13 +10:00
Ryan Dick
ace5e748f4
Simplify CogView4 timesteps schedule generation in preparation for timestep schedule slipping.
2025-04-10 10:50:13 +10:00
Ryan Dick
4fae8ad163
Add CogView4ImageToLatentsInvocation.
2025-04-10 10:50:13 +10:00
Ryan Dick
5e75bc570a
Fix bug in CogView4 noise schedule handling that was resulting in low-quality images.
2025-04-10 10:50:13 +10:00
Ryan Dick
3166b5d2ea
Switch to sequential CFG for CogView4 (for now, until I sort out the padding).
2025-04-10 10:50:13 +10:00
Ryan Dick
321c2d358c
Add CogView4 model loader. And various other fixes to get a CogView4 workflow running (though quality is still below expectations).
2025-04-10 10:50:13 +10:00
Ryan Dick
0338983895
Update CogView4 starter model entry with approximate bundle size.
2025-04-10 10:50:13 +10:00
Ryan Dick
f4e00ab261
Add CogView4 to frontend.
2025-04-10 10:50:13 +10:00
Ryan Dick
e1133bc53f
Fix typo in BaseModelTypo.CogView4.
2025-04-10 10:50:13 +10:00
Ryan Dick
e1ccbd5c29
typegen
2025-04-10 10:50:13 +10:00
Ryan Dick
cf76a0b575
Add CogView4ModelLoaderInvocation. (Not wired up with frontend yet.)
2025-04-10 10:50:13 +10:00
Ryan Dick
67bfd63c73
Require the cogview4 height/width are multiples of 32. This requirement is documented here: https://huggingface.co/THUDM/CogView4-6B . I haven't tracked down the underlying source of this requirement.
2025-04-10 10:50:13 +10:00
Ryan Dick
cdad8a4fd1
Add CogView4LatentsToImageInvocation.
2025-04-10 10:50:13 +10:00
Ryan Dick
5d9797945b
Completed first pass of CogView4Denoise.
2025-04-10 10:50:13 +10:00