Comfy-Org / Comfy-Org/ComfyUI

Connecting Subgraph Input directly into Subgraph output without relying some custom node

Open
#12,049 1 comment 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Feature Idea

Default Comfy Subgraph cannot connecting Subgraph Input into Subgraph Output directly (passthrough) without having some additional custom node. Using default Reroute node from Comfy Core make each Subgraph output unrecognizable. It would be great if we can passthrough directly to streamline the workflow.

Image
Image

### Existing Solutions

Using Pipe Edit node from tinyterraNodes ([https://github.com/TinyTerra/ComfyUI_tinyterraNodes](url)) help the Subgraph input (in this case the input is `model`, `clip`, and `vae`)passthrough directly into Subgraph output, and each ouput is recognizable.

Image

### Other

```
>> inxi -bza
System:
Kernel: 6.12.66-1-lts arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/vmlinuz-linux-lts
root=UUID=a87019d4-bd4a-49da-8d3d-65cfd4eb6683 rw rootfstype=ext4
loglevel=3 quiet
Desktop: GNOME v: 49.2 tk: GTK v: 3.24.51 wm: gnome-shell
tools: gsd-screensaver-proxy dm: GDM v: 49.2 Distro: Arch Linux
Machine:
Type: Desktop Mobo: ASRock model: B550M Pro4 serial:
uuid: Firmware: UEFI vendor: American Megatrends LLC.
v: P2.30 date: 02/24/2022
CPU:
Info: quad core AMD Ryzen 3 3100 [MT MCP] arch: Zen 2 speed (MHz): avg: 3524
min/max: 550/3905
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Navi 23 [Radeon RX 6600/6600
XT/6600M] vendor: Sapphire driver: amdgpu v: kernel arch: RDNA-2
code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4
speed: 16 GT/s lanes: 16 ports: active: HDMI-A-1 empty: DP-1, DP-2, DP-3,
Writeback-1 bus-ID: 09:00.0 chip-ID: 1002:73ff class-ID: 0300
Device-2: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2.1:3
chip-ID: 046d:0825 class-ID: 0102 serial:
Display: wayland server: X.org v: 1.21.1.21 with: Xwayland v: 24.1.9
compositor: gnome-shell driver: gpu: amdgpu resolution: 2560x1440
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.3.3-arch1.3
glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 6600 XT (radeonsi
navi23 LLVM 21.1.6 DRM 3.61 6.12.66-1-lts) device-ID: 1002:73ff
memory: 7.81 GiB unified: no display-ID: :0.0
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
gpu: amd-smi,amdgpu_top x11: xprop,xrandr
Network:
Device-1: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 05:00.0
chip-ID: 8086:2725 class-ID: 0280
Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: ASRock driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
port: f000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
Drives:
Local Storage: total: 2.55 TiB used: 672.84 GiB (25.8%)
Info:
Memory: total: 64 GiB note: est. available: 62.72 GiB used: 5.82 GiB (9.3%)
Processes: 350 Power: uptime: 12h 21m states: freeze,mem,disk
suspend: deep avail: s2idle wakeups: 1 hibernate: platform avail: shutdown,
reboot, suspend, test_resume image: 25.07 GiB services: gsd-power,upowerd
Init: systemd v: 259 default: graphical tool: systemctl
Packages: 1525 pm: pacman pkgs: 1446 libs: 429 tools: gnome-software,yay
pm: flatpak pkgs: 79 Compilers: clang: 21.1.6 gcc: 15.2.1 Shell: Zsh v: 5.9
running-in: kgx inxi: 3.3.40

>> amd-smi
+------------------------------------------------------------------------------+
| AMD-SMI 26.2.0+unknown amdgpu version: Linuxver ROCm version: 7.1.1 |
| VBIOS version: 020.003.000.030.000000 |
| Platform: Linux Baremetal |
|-------------------------------------+----------------------------------------|
| BDF GPU-Name | Mem-Uti Temp UEC Power-Usage |
| GPU HIP-ID OAM-ID Partition-Mode | GFX-Uti Fan Mem-Usage |
|=====================================+========================================|
| 0000:09:00.0 AMD Radeon RX 6600 XT | 0 % 42 °C 0 7/145 W |
| 0 0 N/A N/A | 4 % 0.0 % 1696/8176 MB |
+-------------------------------------+----------------------------------------+
+------------------------------------------------------------------------------+
| Processes: |
| GPU PID Process Name GTT_MEM VRAM_MEM MEM_USAGE CU % |
|==============================================================================|
| 0 5434 python3.12 2.0 MB 196.8 MB 222.7 MB N/A |
+------------------------------------------------------------------------------+

>> python -m torch.utils.collect_env
PyTorch version: 2.10.0+rocm7.1
Is debug build: False
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: 7.1.25424

OS: Arch Linux (x86_64)
GCC version: (GCC) 15.2.1 20260103
Clang version: 21.1.6
CMake version: version 4.2.1
Libc version: glibc-2.42

Python version: 3.12.12 (main, Oct 28 2025, 12:10:49) [Clang 20.1.4 ] (64-bit runtime)
Python platform: Linux-6.12.66-1-lts-x86_64-with-glibc2.42
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to:
GPU models and configuration: AMD Radeon Graphics (gfx1032)
Nvidia driver version: Could not collect
cuDNN version: Could not collect
Is XPU available: False
HIP runtime version: 7.1.25424
MIOpen runtime version: 3.5.1
Is XNNPACK available: True
Caching allocator config: N/A

CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 43 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: AuthenticAMD
Model name: AMD Ryzen 3 3100 4-Core Processor
CPU family: 23
Model: 113
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
Stepping: 0
Frequency boost: enabled
CPU(s) scaling MHz: 62%
CPU max MHz: 3905.0000
CPU min MHz: 550.0000
BogoMIPS: 7189.29
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
Virtualization: AMD-V
L1d cache: 128 KiB (4 instances)
L1i cache: 128 KiB (4 instances)
L2 cache: 2 MiB (4 instances)
L3 cache: 16 MiB (2 instances)
NUMA node(s): 1
NUMA node0 CPU(s): 0-7
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Mitigation; untrained return thunk; SMT enabled with STIBP protection
Vulnerability Spec rstack overflow: Mitigation; Safe RET
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Mitigation; IBPB before exit to userspace

Versions of relevant libraries:
[pip3] ema-pytorch==0.7.9
[pip3] numpy==2.2.6
[pip3] numpy-quaternion==2024.0.12
[pip3] onnx==1.19.1
[pip3] onnx-weekly==1.21.0.dev20260112
[pip3] onnx2torch-py313==1.6.0
[pip3] onnxruntime==1.23.2
[pip3] onnxruntime-gpu==1.23.2
[pip3] open_clip_torch==3.2.0
[pip3] optree==0.18.0
[pip3] pytorch-extension==0.2
[pip3] pytorch-wpe==0.0.1
[pip3] rotary-embedding-torch==0.6.5
[pip3] torch==2.10.0+rocm7.1
[pip3] torch-complex==0.4.4
[pip3] torch-stoi==0.2.3
[pip3] torchaudio==2.10.0+rocm7.1
[pip3] torchcrepe==0.0.24
[pip3] torchdiffeq==0.2.5
[pip3] torchfcpe==0.0.4
[pip3] torchsde==0.2.6
[pip3] torchvision==0.25.0+rocm7.1
[pip3] triton-rocm==3.6.0
[pip3] vector-quantize-pytorch==1.27.19
[conda] Could not collect
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.