-
-
Notifications
You must be signed in to change notification settings - Fork 372
Description
Expected Behavior
When importing Civitai Metadata for models with "Replace All" or "Only the basic text inputs" selected, if that model had trigger words specified locally but the source URL does not have them, I expect the local trigger word metadata to be replaced with an empty string.
Actual Behavior
Trigger words are not removed if they were locally overriden and the source string is empty.
Steps to Reproduce
Manually enter some nonsense into the trigger words section of a lora that does not have trigger words on Civitai, then run a 'replace all' metadata scan.
Debug Logs
2026-02-11 20:16:30.223 [Init] === SwarmUI v0.9.8.0 Starting at 2026-02-11 20:16:30 ===
2026-02-11 20:16:30.226 [Init] Parsing command line...
2026-02-11 20:16:30.232 [Init] Loading settings file...
2026-02-11 20:16:30.252 [Init] Re-saving settings file...
2026-02-11 20:16:30.271 [Init] Applying command line settings...
2026-02-11 20:16:30.281 [Init] SwarmUI was installed 2026-01-01 (41 days ago) with version 0.9.7.4
2026-02-11 20:16:30.281 [Init] Swarm base path is: D:\Stable Diffusion\video\SwarmUI
2026-02-11 20:16:30.281 [Init] Running on OS: Microsoft Windows 10.0.26200
2026-02-11 20:16:30.304 [Init] Prepping extension: SwarmUI.Builtin_ImageBatchToolExtension.ImageBatchToolExtension...
2026-02-11 20:16:30.305 [Init] Prepping extension: SwarmUI.Builtin_GridGeneratorExtension.GridGeneratorExtension...
2026-02-11 20:16:30.306 [Init] Prepping extension: SwarmUI.Builtin_DynamicThresholding.DynamicThresholdingExtension...
2026-02-11 20:16:30.306 [Init] Prepping extension: SwarmUI.Builtin_ComfyUIBackend.ComfyUIBackendExtension...
2026-02-11 20:16:30.306 [Init] Prepping extension: SwarmUI.Builtin_AutoWebUIExtension.AutoWebUIBackendExtension...
2026-02-11 20:16:30.330 [Init] Prepping extension: SwarmExtensions.FrameSaver.FrameSaver...
2026-02-11 20:16:30.331 [Init] Prepping extension: BlankExtensions.LongVideoExtendAndLoop.LongVideoExtendAndLoop...
2026-02-11 20:16:30.331 [Init] Prepping extension: SwarmExtensions.NegPip.NegPipforSwarmUI...
2026-02-11 20:16:30.332 [Init] Prepping extension: SeedVR2Upscaler.SeedVR2UpscalerExtension...
2026-02-11 20:16:30.334 [Warning] Extension 'LongVideoExtendAndLoop' did not come from git. Cannot populate metadata.
2026-02-11 20:16:30.349 [Info] SeedVR2 Upscaler Extension loading...
2026-02-11 20:16:30.350 [Init] Prepping options...
2026-02-11 20:16:30.385 [Init] CPU Cores: 16 | RAM: 95.65 GiB total, 46.46 GiB available, 224.82 GiB total page file, 89.86 GiB available page file
2026-02-11 20:16:30.392 [Init] GPU 0: NVIDIA GeForce RTX 4090 | Temp 35C | Util 0% GPU, 8% Memory | VRAM 23.99 GiB total, 21.76 GiB free, 1.81 GiB used
2026-02-11 20:16:30.393 [Init] Will use GPU accelerations specific to NVIDIA GeForce RTX 40xx series and newer.
2026-02-11 20:16:30.441 [Info] SeedVR2 Upscaler Extension loaded successfully.
2026-02-11 20:16:30.463 [Init] Loading models list...
2026-02-11 20:16:30.785 [Init] Current git commit is [e31143d: constrain a tmpdir], marked as date 2026-02-09 20:05:07 (2 days ago)
2026-02-11 20:16:30.808 [Init] Swarm is up to date! You have version 0.9.8.0, and 0.9.8-Beta is the latest.
2026-02-11 20:16:30.916 [Init] Loading backends...
2026-02-11 20:16:30.917 [Init] Loading backends from file...
2026-02-11 20:16:30.920 [Init] Initializing backend #0 - ComfyUI Self-Starting...
2026-02-11 20:16:30.921 [Init] Prepping API...
2026-02-11 20:16:30.922 [Init] Prepping webserver...
2026-02-11 20:16:30.924 [Init] Backend request handler loop ready...
2026-02-11 20:16:31.010 [Init] Scan for web extensions...
2026-02-11 20:16:31.012 [Init] Readying extensions for launch...
2026-02-11 20:16:31.012 [Init] Launching server...
2026-02-11 20:16:31.013 [Init] Starting webserver on http://localhost:7801
2026-02-11 20:16:31.038 [Warning] Your folder path for SwarmUI contains a space. While Swarm itself can handle this fine, sometimes upstream dependencies misbehave around spaces. It is recommended you keep file paths very simple.
2026-02-11 20:16:31.039 [Init] SwarmUI v0.9.8.0 - Local is now running.
2026-02-11 20:16:31.542 [Init] Launch web browser...
2026-02-11 20:16:31.938 [Info] Creating new session 'local' for ::1
2026-02-11 20:16:32.371 [Init] Self-Start ComfyUI-0 on port 7821 is loading...
2026-02-11 20:16:43.913 [Init] Self-Start ComfyUI-0 on port 7821 started.
Other
This might seem like a pointless thing to fix, but the previous bug causing "trigger words" to be populated with all tokens from the training set has filled a ton of my loras with incorrect metadata and there seems to be no way to remove it except to do it manually :(