TdxhLoraLoader
A LoRA loader you can switch off without rewiring
- model
- clip
- MODEL
- CLIP
TdxhLoraLoader is the stock ComfyUI LoRA loader with two quality-of-life additions: an on/off bool_int switch and a what_to_follow mode that decides how many strength sliders you have to deal with.
A quick refresher on the mechanism, because it matters here: a LoRA is a small adapter (10–200 MB) that patches the checkpoint's weights rather than replacing them, which is why you can stack several and why you adjust their influence with a weight. Stock ComfyUI gives you a strength_model and a strength_clip slider, and the default 1.0 is often too strong - 0.5–0.8 is the usual working range. This node wraps that exact behavior: when bool_int is 1 it calls the core LoraLoader with your settings, and when bool_int is 0 it returns model and clip completely untouched - no patch, no load, no side effects.
The what_to_follow dropdown is the twist:
- only_strength_both - one
strength_bothslider drives both model and CLIP strength. Fewer knobs, fine for 90% of LoRAs where you want them moving together. - strength_model_and_strength_clip - two independent sliders, exactly like stock, for when you want to tune one side (the
strength_clippath especially, since LoRAs often encode style or concept in the text side).
Inputs are bool_int, model, clip, lora_name (dropdown from your models/loras folder), strength_model, strength_clip, strength_both, and what_to_follow. Outputs are MODEL and CLIP, which you wire into your KSampler chain just like stock.
Why you'd reach for it: A/B testing. Keep a style LoRA permanently parked in the graph, flip bool_int between runs, and compare generations with and without it - no dragging the node out of the pipeline, no disconnecting wires, and no forgetting to reconnect them. Combined with the pack's toggle nodes, you can build a whole set of "modular" LoRAs that switch on and off from a master control. It collapses the loader-and-settings UI into one node, which is the pack's entire thesis.
Installing it
Part of tdxh_node_comfyui. ComfyUI Manager → search tdxh_node_comfyui → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/youyegit/tdxh_node_comfyui
Restart and it's under TDXH → tdxh_model. No models to download (your LoRAs already live in models/loras). Hobbyist pack, GPL-3.0, and the README warns nodes may change between versions - the code is short, so reading it takes five minutes if you want certainty.
When to skip it
If you never toggle LoRAs on and off, the core LoraLoader is identical. If you regularly stack several LoRAs, you'll probably prefer a multi-LoRA loader like rgthree's Power Lora Loader, which is the community standard for that. This node is the lean, switchable single-LoRA case.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| bool_int | INT | 10–1 | — |
| model | MODEL | — | |
| clip | CLIP | — | |
| lora_name | COMBO | 0 options: | |
| strength_model | FLOAT | 0.50-10–10 | — |
| strength_clip | FLOAT | 0.50-10–10 | — |
| strength_both | FLOAT | 0.50-10–10 | — |
| what_to_follow | COMBO | 2 options: only_strength_both, strength_model_and_strength_clip |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |
| CLIP | CLIP | — |