Extensions/OdinSam ModelLoad
ComfyUI Extension

OdinSam ModelLoad

Load a diffusion model, CLIP, and VAE in one node by calling the official loaders.

By odinGitGmail·Created a day ago·Updated a day ago· 0
odinGitGmail/ComfyUI-Odinsam-ModelLoad
Nodes—
On cloudLocal install
Stars0
Updateda day ago
Readme
<div align="center"> <h1>OdinSam ModelLoad</h1> <p> <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg"></a> <a href="pyproject.toml"><img alt="Version" src="https://img.shields.io/badge/version-0.1.0-blue.svg"></a> <a href="https://github.com/comfyanonymous/ComfyUI"><img alt="ComfyUI" src="https://img.shields.io/badge/ComfyUI-Custom%20Node-00b894.svg"></a> <a href="https://www.python.org/"><img alt="Python" src="https://img.shields.io/badge/Python-%3E%3D3.9-3776AB.svg"></a> <a href="https://registry.comfy.org"><img alt="Registry" src="https://img.shields.io/badge/Registry-odinsam--modelload-6c5ce7.svg"></a> </p> <p> <a href="README.md">English</a> · <a href="README.zh-CN.md">中文</a> </p> <p> ComfyUI <b>model loader</b>: one node for the diffusion model, CLIP, and VAE. Widgets and loading call the official <code>UNETLoader</code>, <code>CLIPLoader</code>, and <code>VAELoader</code>. </p> <p> <b>Node:</b> <code>ModelLoad</code> / 模型加载 (OdinSam)<br> <b>Category:</b> <code>OdinSam/ModelLoad</code> · <b>Registry:</b> <code>odinsam-modelload</code> </p> <p> <img src="docs/images/node.png" alt="ModelLoad node" width="420"> </p> </div>

Features

| Feature | Notes | |---------|--------| | One node | Replaces a separate UNET loader, CLIP loader, and VAE loader | | Official lists | File names, weight dtypes, CLIP types, and VAE names come from those loaders | | Always loads three | Each run loads the diffusion model, CLIP, and VAE | | Widgets | UNet名称, 数据类型, CLIP名称, 类型, 设备, vae名称 | | Advanced widgets | 数据类型 and 设备 stay official advanced widgets (隐藏高级选项) | | Outputs | MODEL / CLIP / VAE, named 模型, CLIP, VAE | | OdinSamKit | Optional Chinese widget labels |

Widgets

| Widget | Official source | Notes | |--------|-----------------|-------| | UNet名称 | UNETLoader | Files in diffusion_models | | 数据类型 | UNETLoader | Advanced. Same dtype list as the official loader | | CLIP名称 | CLIPLoader | Files in text_encoders | | 类型 | CLIPLoader | Same type list, including flux2 | | 设备 | CLIPLoader | Advanced. default or cpu. cpu loads CLIP on CPU | | vae名称 | VAELoader | Includes official built-ins such as taesd and pixel_space |

There are no input sockets.

| Socket | Type | Connect to | |--------|------|------------| | 模型 | MODEL | KSampler model | | CLIP | CLIP | CLIP Text Encode | | VAE | VAE | VAE Decode, or any node that takes a VAE |

OdinSamKit

Business logic does not require KIT. Without it the node still runs. Widget names stay unet_name, weight_dtype, clip_name, type, device, vae_name. Output names stay 模型, CLIP, VAE.

| Item | Requirement | |------|-------------| | Minimum KIT version | OdinSamKit ≥ 0.2.0 | | Check | Browser console: window.OdinSamKit.version | | Relationship | Weak / optional enhancement |

Embedded config includes labels only. You do not need to bump the minimum for every kit patch.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/odinGitGmail/ComfyUI-Odinsam-ModelLoad.git ModelLoad
# optional UI kit
git clone <OdinSamKit-repo> OdinSamKit

Or copy ModelLoad (and optional OdinSamKit) into custom_nodes, then restart ComfyUI.

Or install via Comfy Registry / Manager: odinsam-modelload.

Node: 模型加载 (OdinSam) under OdinSam/ModelLoad.

Minimal wiring

模型加载 (OdinSam)
  模型 → KSampler model
  CLIP → CLIP Text Encode
  VAE  → VAE Decode

Pick the same files you would pick on the three official loaders. For a Flux 2 graph, that is the diffusion model, a CLIP whose type is flux2, and the matching VAE.

License

MIT