Commit Graph

4670 Commits

Author SHA1 Message Date
Alexander Brown 0b1b234d90 Add unit tests for _prune_orphaned_assets
Tests cover:

- Orphaned seed assets pruned when file removed

- Seed assets with valid files survive

- Hashed assets not pruned even without file

- Multi-root pruning

- SQL LIKE escape handling for %, _, spaces

Amp-Thread-ID: https://ampcode.com/threads/T-019c0c7a-5c8a-7548-b6c3-823e9829ce74
Co-authored-by: Amp <amp@ampcode.com>
2026-01-29 18:05:40 -08:00
Alexander Brown eb2b38458c Add unit tests for pruning 2026-01-29 18:02:20 -08:00
DrJKL 03ddcaa3fa Refactor _prune_orphaned_assets for readability
Amp-Thread-ID: https://ampcode.com/threads/T-019c0917-0dc3-75ab-870d-a32b3fdc1927
Co-authored-by: Amp <amp@ampcode.com>
2026-01-29 17:45:27 -08:00
DrJKL e7bebcc8d0 Simplify _prune_orphaned_assets: merge functions, use list comprehensions
Amp-Thread-ID: https://ampcode.com/threads/T-019c0917-0dc3-75ab-870d-a32b3fdc1927
Co-authored-by: Amp <amp@ampcode.com>
2026-01-29 17:45:27 -08:00
DrJKL b2f6532b30 Not sure about this one, but try removing assets from old sessions. 2026-01-29 17:45:27 -08:00
Jedrzej Kosinski 612893018c Use windows-latest runner for test-assets 2026-01-29 17:37:16 -08:00
Jedrzej Kosinski c0e26b93cc Added test-assets.yml to github workflows, added a requirements.txt to test-assets (blake3 can eventually be removed from there when it becomes a core dependency) 2026-01-29 17:33:21 -08:00
Jedrzej Kosinski 11da0e6c46 Satisfy ruff 2026-01-29 17:00:52 -08:00
Jedrzej Kosinski 1e622d3923 Fixed issues in manager.py that had to do with creating a result after closing the db session 2026-01-29 16:58:48 -08:00
Jedrzej Kosinski eb78ea0cff Added @ROUTES.post("/api/assets/seed") for now to help with tests 2026-01-29 16:57:37 -08:00
Jedrzej Kosinski 6840ad0bbe Added tests, rewritten from the ones present in the asset-management branch 2026-01-29 16:56:39 -08:00
DrJKL 2f0db0e680 Order the tags by when they were added (Ends up being directory depth order) 2026-01-28 22:17:52 -08:00
DrJKL 69f6c37868 Leave the preview_url blank, don't serialize it as `null` 2026-01-28 21:49:14 -08:00
Jedrzej Kosinski f484d66eb0
Merge branch 'master' into assets-redo-part2 2026-01-28 19:15:32 -08:00
Jedrzej Kosinski 25f83d7401 Fixed resolve_asset_content_for_download accessing asset outside of session with statement 2026-01-28 18:57:54 -08:00
comfyanonymous c9b633d84f
Add missing spacial downscale ratios. (#12146) 2026-01-28 20:52:51 -05:00
Jedrzej Kosinski 2aafb71388 Add node for custom node authors in routes.py 2026-01-28 17:01:29 -08:00
Jedrzej Kosinski 902e84d7ad Remove tags from body of @ROUTES.put(f"/api/assets/{{id:{UUID_RE}}}"), add note about blake3 requirement to test out 2026-01-28 16:04:19 -08:00
Jedrzej Kosinski d5e6e2a81f Fixed inconsistent spacing in routes.py 2026-01-28 15:39:08 -08:00
Jedrzej Kosinski e735a8fd85 Satisfy ruff 2026-01-28 15:34:19 -08:00
Jedrzej Kosinski 32ce7a70a7 Removed 501 early returns on endpoints intended to be released, removed @ROUTES.put(f"/api/assets/{{id:{UUID_RE}}}/preview") and @ROUTES.post("/api/assets/scan/seed") and their related schema_in objects 2026-01-28 15:31:06 -08:00
Jedrzej Kosinski cf950e47ab Merge branch 'master' into assets-redo-part2 2026-01-28 15:05:24 -08:00
ComfyUI Wiki 1711020904
chore: update workflow templates to v0.8.27 (#12141) 2026-01-28 12:48:02 -05:00
Dr.Lt.Data d9b8567547
bump manager version to 4.1b1 (#12140) 2026-01-28 12:47:37 -05:00
Alexander Piskun 6c5f906bf2
feat(api-nodes): add Grok Imagine nodes (#12136) 2026-01-28 12:46:57 -05:00
comfyanonymous 4f5bd39b1c
Update Python 3.14 compatibility notes in README (#12127) 2026-01-27 19:58:48 -05:00
Jedrzej Kosinski 724145fb55
Merge branch 'master' into assets-redo-part2 2026-01-27 16:40:19 -08:00
Jedrzej Kosinski 32d4888d99 Fix import for currently unused upload_asset_from_temp_path function 2026-01-27 16:28:05 -08:00
guill dcff27fe3f
Add support for dev-only nodes. (#12106)
When a node is declared as dev-only, it doesn't show in the default UI
unless the dev mode is enabled in the settings. The intention is to
allow nodes related to unit testing to be included in ComfyUI
distributions without confusing the average user.
2026-01-27 13:03:29 -08:00
Jedrzej Kosinski b16390c2fd Made some routes returmn 501's while functionality is worked on 2026-01-26 21:02:05 -08:00
Jedrzej Kosinski 4866bbfd8c Comment out import for commented out code 2026-01-26 20:30:20 -08:00
Jedrzej Kosinski e17542b5c7 Comment out @ROUTES.post("/api/assets/scan/seed") 2026-01-26 20:25:57 -08:00
Jedrzej Kosinski 0bb6d3a3e9 Merge branch 'master' into assets-redo-part2 2026-01-26 20:17:32 -08:00
comfyanonymous 09725967cf ComfyUI version v0.11.0 2026-01-26 23:08:01 -05:00
ComfyUI Wiki 5f62440fbb
chore: update workflow templates to v0.8.24 (#12103) 2026-01-26 22:47:33 -05:00
Jedrzej Kosinski 6a450a8070 Revert seed_assets to only do models root, remove blake3 requirement for now, make posting assets endpoint inaccessible with a 501 2026-01-26 19:28:00 -08:00
ComfyUI Wiki ac91c340f4
Update workflow templates to v0.8.23 (#12102) 2026-01-26 21:39:39 -05:00
comfyanonymous 2db3b0ff90
Update amd portable for rocm 7.2 (#12101)
* Update amd portable for rocm 7.2

* Update Python patch version in release workflow
2026-01-26 19:49:31 -05:00
rattus 6516ab335d
wan-vae: Switch off feature cache for single frame (#12090)
The code throughout is None safe to just skip the feature cache saving
step if none. Set it none in single frame use so qwen doesn't burn VRAM
on the unused cache.
2026-01-26 19:40:19 -05:00
Jukka Seppänen ad53e78f11
Fix Noise_EmptyNoise when using nested latents (#12089) 2026-01-26 19:25:00 -05:00
Jedrzej Kosinski 702cfcde3a Merge branch 'master' into assets-redo-part2 2026-01-26 14:38:18 -08:00
Alexander Piskun 29011ba87e
[API Nodes] add Magnific nodes (#11986)
* feat(api-nodes): add Magnific nodes

* aggressive downscaling should not be performed

* disable upscaler nodes

---------

Co-authored-by: Jedrzej Kosinski <kosinkadink1@gmail.com>
2026-01-26 14:10:09 -08:00
Alexander Piskun cd4985e2f3
chore(api-nodes): remove ByteDanceImageEditNode node (seededit) (#12069)
Co-authored-by: Jedrzej Kosinski <kosinkadink1@gmail.com>
2026-01-26 13:58:33 -08:00
Tavi Halperin bfe31d0b9d
IC-LoRA: support small grid (#12074) 2026-01-26 15:33:19 -05:00
comfyanonymous 2129e7d278
Fix mistral 3 tokenizer code failing on latest transformers version and other breakage. (#12095)
* Fix mistral 3 tokenizer code failing on latest transformers version.

* Add requests to the requirements
2026-01-26 11:39:00 -05:00
comfyanonymous 7ee77ff038
Add name to LoraLoaderModelOnly. (#12078) 2026-01-25 21:01:55 -05:00
comfyanonymous 26c5bbb875
Move nodes from previous PR into their own file. (#12066) 2026-01-24 23:02:32 -05:00
Kohaku-Blueleaf a97c98068f
[Weight-adapter/Trainer] Bypass forward mode in Weight adapter system (#11958)
* Add API of bypass forward module

* bypass implementation

* add bypass fwd into nodes list/trainer
2026-01-24 22:56:22 -05:00
comfyanonymous 635406e283
Only enable fp16 on z image models that actually support it. (#12065) 2026-01-24 22:32:28 -05:00
pythongosssss ed6002cb60
add support for kwargs inputs to allow arbitrary inputs from frontend (#12063)
used to output selected combo index

Co-authored-by: Jedrzej Kosinski <kosinkadink1@gmail.com>
2026-01-24 17:30:40 -08:00