comfyui-yaser-nodes Introduction
comfyui-yaser-nodes is a collection of custom nodes for ComfyUI. It helps you do two things in an image-making workflow: choose which connected input moves to the next step, and upscale an image using a model chosen for your desired scale.
The Conditional Selection Node is useful when you want to try several prompts, images, or other inputs without rebuilding the rest of your workflow. The Iterative Upscale with Models Node gives you a place to choose an upscale factor and connect models for different scales. It uses ComfyUI’s tiled scaling to manage memory and can reduce tile size automatically if GPU memory runs short.
How comfyui-yaser-nodes Works
A ComfyUI workflow passes information between nodes through cables. Think of the Conditional Selection Node as a switch: you connect several possible inputs, then set selection_index to decide which one passes through. The count starts at 0, so an index of 0 selects the first connected input, 1 selects the second, and so on. As you connect inputs, the node adds more slots for additional choices.
The upscaling node works with an image and connected upscale models. You choose a scale factor from 1, 2, 4, or 8, and the node uses the corresponding model input. Tiled scaling processes the image in smaller pieces to use memory more efficiently. If there is not enough GPU memory, the node attempts to continue with smaller tiles.
comfyui-yaser-nodes Features
Conditional Selection Node
Search for Conditional Selection Node in ComfyUI’s node menu. Connect your first option, then use the new input slots that appear as you connect more cables. Set selection_index to the option you want at the output.
The node supports ComfyUI data types such as images, latents, and text. For example, you could connect an original image and an edited image, then change the index to compare how each one behaves in the same downstream workflow. You could also connect different prompt options and switch between them without rewiring the later nodes.
Keep track of the input order when changing the index: the number identifies a slot, not the content or name of the connected item.
Iterative Upscale with Models Node
Search for Iterative Upscale with Models Node in the node menu. Connect the image to image, and connect upscale models to the scale-specific inputs: model1x, model2x, model4x, and model8x. Then choose 1, 2, 4, or 8 from the scale-factor dropdown.
Use a model intended for the selected factor when possible. For example, connect a 4x model to model4x when planning a 4x upscale. The original readme notes one important exception: when you select 1x, you can use any model, and the output follows that model’s native scale. Do not assume the result will remain at the original image dimensions.
The node uses ComfyUI’s tiled scaling for memory efficiency and automatically reduces tile size if GPU memory is insufficient. That can help with larger images, though an upscale may still fail if the image or model requires more memory than your system has available.
comfyui-yaser-nodes Models
The extension does not list or provide named upscale models in the supplied documentation. Instead, it accepts models you have loaded in ComfyUI through its four model inputs:
| Input | Intended use |
|---|---|
model1x | Model input used when you select 1x; the output follows the connected model’s native scale. |
model2x | Model intended for a 2x upscale. |
model4x | Model intended for a 4x upscale. |
model8x | Model intended for an 8x upscale. |
Choose models that match their intended scale factor for the best results. Your upscale models should be available in ComfyUI’s models/upscale_models/ directory.
Troubleshooting comfyui-yaser-nodes
The nodes do not appear in the menu
- Restart ComfyUI completely, then search for the node names again.
- Check that the extension folder is inside ComfyUI’s
custom_nodesdirectory. - Check that the extension files are present and have not been corrupted.
- Look at the ComfyUI console for an error message that may explain why the nodes did not load.
New input slots do not appear
- Connect a cable to an existing slot on the Conditional Selection Node. New slots appear as inputs are connected.
- Check that the extension’s
webdirectory and JavaScript file are present. - Clear your browser cache and reload ComfyUI.
- If the problem continues, check that ComfyUI is serving the extension’s web files.
Upscaling fails or runs out of memory
- Check that the connected upscale model is compatible with ComfyUI and is in a supported format such as
.pthor.safetensors. - Confirm that the model is available in ComfyUI’s
models/upscale_models/directory. - Try a smaller input image if you see an out-of-memory error. The node can reduce tile size automatically, but that may not resolve every memory shortage.
- Close other applications using your GPU and try again.
Frequently asked questions
Can I use the Conditional Selection Node with text instead of images?
Yes. The original documentation says it supports ComfyUI data types including text, images, and latents.
Why does selection_index start at 0?
The node uses zero-based numbering: 0 means the first input, 1 means the second, and so forth.
Does the extension include upscale models?
No models are listed in the supplied documentation. The upscaling node is designed to use models loaded in ComfyUI and connected to its model inputs.
Will selecting 1x keep my image at its original size?
Not necessarily. According to the original readme, the output at 1x follows the connected model’s native scale.
Learn More about comfyui-yaser-nodes
- ComfyUI: Learn more about the node-based application in which this extension runs.
- comfyui-yaser-nodes repository: Review the extension’s source and documentation. For a reproducible problem, you can open a GitHub issue with your ComfyUI version, the steps that led to the issue, relevant screenshots, and any console error messages.
