Inputs Diffusers Refine Basic
Split-model inputs with a second, refinement diffusion model built in
- MODEL
- CLIP
- VAE
- MODEL REFINE
- model name
- model name refine
- sampler
- scheduler
- cfg
- steps
- latent
- width
- height
- seed
- batch size
- speed lora ratio
Some diffusion setups want a second pass with a different model - a main UNet to compose, a refinement model to add polish. AUNInputsDiffusersRefineBasic takes the split-model basic contract (standalone UNet + separate CLIP + VAE) and adds an optional second diffusion model for exactly that, while deliberately skipping the older save-prep outputs that clutter the full Inputs nodes. It's the node you reach for when your pipeline is "generate with A, refine with B" and you'd rather not run two separate loader + sampler stacks.
How it works
The loading is the same diffusion-style flow as AUNInputsDiffusersBasic: diffusion_name for the primary UNet, clip_name + clip_type for the shared CLIP, vae_name for the shared VAE. The new bit is refine_diffusion_name - an optional refinement UNet. Select 'None' and the main model is reused for refinement, so the node gracefully downgrades to a plain basic setup when you don't need two models. When you do pick a refine model, you get a second MODEL REFINE output (plus model name refine) to feed a second sampler pass.
The SpeedLoRA handling here is worth reading because it's specific: speed_lora_full_both applies the full strength to both the main and refine models, while speed_lora_ratio splits the strength - the main model gets that fraction, the refine model gets the remainder. So you can give the compositor most of the SpeedLoRA boost and the refiner the rest, or everything to both. If that sounds fiddly, that's because it is - but it's also the difference between "refiner fights the LoRA" and "refiner cooperates with it."
Inputs and outputs
Inputs: diffusion_name, refine_diffusion_name, clip_name/clip_type, vae_name, the SpeedLoRA group, sampler/scheduler/cfg/steps, aspect_ratio/width/height/aspect_mode, batch_size, seed, megapixels, multiple.
Outputs: MODEL, CLIP, VAE, MODEL REFINE, model name, model name refine, sampler, scheduler, cfg, steps, latent, width, height, seed, batch size, speed lora ratio (the actual ratio applied, handy to feed a filename or display node).
Installing it
One pack, one install:
- ComfyUI Manager: search "AUN ComfyUI Nodes", install, restart.
- Manual:
cd custom_nodes && git clone https://github.com/loz2754/AUN-ComfyUI-Nodes, then restart.
Manual installs and ModuleNotFoundError: cv2? pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt.
Common issues
clip_type mismatches are the usual first failure - the CLIP architecture has to match the CLIP file. On the SpeedLoRA side, if your refinement pass looks overcooked or the two models fight each other, that's usually the split between speed_lora_full_both and speed_lora_ratio - try dropping the refiner's share before changing anything else. And as with every Basic node here, there are no save-prep outputs; plan your filename building on the save side.
Inputs (22)
| Name | Type | Default | Description |
|---|---|---|---|
| diffusion_name | COMBO | Primary diffusion-model file (UNet only). Matches the comfy-core diffusion model list. | |
| refine_diffusion_name | COMBO | None | Optional refinement diffusion-model file. Select 'None' to reuse the main model. |
| clip_name | COMBO | CLIP file shared by the main and refine diffusion models. | |
| speed_lora | BOOLEAN | false | Enable SpeedLoRA when loading models. |
| speed_lora_model | COMBO | None | SpeedLoRA file to apply after loading the models. |
| speed_lora_strength | FLOAT | 1.000–3 | Strength multiplier when applying the SpeedLoRA weights. |
| speed_lora_full_both | BOOLEAN | false | Apply the full SpeedLoRA strength to both the main and refine models. |
| speed_lora_ratio | FLOAT | 1.000–1 | Share of the SpeedLoRA strength applied to the main model. The refine model receives the remaining share. |
| clip_type | COMBO | Ace | Clip architecture to use when loading a diffusion model. |
| vae_name | COMBO | VAE checkpoint shared by the main and refine diffusion models. | |
| sampler | COMBO | Sampling algorithm. | |
| scheduler | COMBO | Noise schedule. | |
| cfg | FLOAT | 2.0-2–100 | Classifier-Free Guidance scale. |
| steps | INT | 101–10000 | Sampling steps. |
| width | INT | 72064–8192 | Image width when aspect_ratio='custom'. |
| height | INT | 72064–8192 | Image height when aspect_ratio='custom'. |
| aspect_ratio | COMBO | Preset aspect ratio that overrides width/height. | |
| aspect_mode | COMBO | Original | Random swaps dimensions 50% of the time, Swap always flips width/height. |
| batch_size | INT | 11–64 | Latent batch size. |
| seed | INT | 0-18446744073709550000–18446744073709550000 | Base seed. |
| megapixels | FLOAT | 1.00.1–16 | Target total megapixels used when a ratio is selected. |
| multiple | INT | 88–128 | Nearest multiple to round computed resolution to. Used with ratio. |
Outputs (16)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |
| CLIP | CLIP | — |
| VAE | VAE | — |
| MODEL REFINE | MODEL | — |
| model name | STRING | — |
| model name refine | STRING | — |
| sampler | * | — |
| scheduler | * | — |
| cfg | FLOAT | — |
| steps | INT | — |
| latent | LATENT | — |
| width | INT | — |
| height | INT | — |
| seed | INT | — |
| batch size | INT | — |
| speed lora ratio | FLOAT | — |