Spaces:
Running on Zero
Running on Zero
chore: refresh ComfyUI deps, fix stale model sources, gate V3 input normalization
Browse filesFiles changed (8)
12 unmodified lines13141516161718149 unmodified lines16816917017217117217312 unmodified lines# 1. **Directly Run Models:** Models and checkpoints actively loaded by our pipelines (configured via `yaml/file_list.yaml`).
# 2. **Upstream Base Models:** The original foundation architectures from which our optimized ports, quantized versions, or wrappers are derived.
# Directly Run Models
- abenzerps/Qwen-Image-2.1-Uncensored-GGUF
- AiAF/Illustrious-XL-v0.1.safetensors
- alibaba-pai/Qwen-Image-2.1-Fun-Controlnet-Union
- alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union-2.1149 unmodified lines - briaai/Fibo-2.0-dev
- briaai/Fibo-2.0-edit-turbo
- chinoll/Moss-Image-Edit
- darask0/MOSS-Image-color-depth-control
- HiDream-ai/HiDream-I1-Dev
- HiDream-ai/HiDream-I1-Fast
- HiDream-ai/HiDream-I1-Full25 unmodified lines262728292930313219 unmodified lines525354555556575825 unmodified linesdef inject(assembler, chain_definition, chain_items): """ Injects MOSS-Image Color/Depth Control into the workflow: 1. Loads the darask0/MOSS-Image-color-depth-control LoRA adapter (moss-control.safetensors) 1. Loads the Comfy-Org/MOSS-Image color/depth control LoRA adapter (moss_image_color_depth_control.safetensors) which widens the video_embedder from 128 to 384 channels. 2. Loads and scales the color map and/or depth map. 3. Adds the MOSSImageControl node to encode maps into latents, concatenate them into19 unmodified lines if not color_map and not depth_map: return
lora_filename = "moss-control.safetensors" lora_filename = "moss_image_color_depth_control.safetensors" if ensure_file_downloaded: try: ensure_file_downloaded(lora_filename)23 unmodified lines24252627282930313233343536373839404142434445464716 unmodified lines64656667686970717273747510 unmodified lines86878889909192939495969723 unmodified lines if not inputs:
return kwargs
def _io_type(spec):
getter = getattr(spec, 'get_io_type', None)
if callable(getter):
try:
return getter()
except Exception:
pass
return getattr(spec, 'io_type', None)
def _matches_io_type(spec, expected):
"""True when the spec's io type is unknown or matches ``expected``."""
io = _io_type(spec)
return io is None or io == expected
# --- COMFY_AUTOGROW_V3 first: consume image1/video1/... slots ---
for spec in inputs:
if not _matches_io_type(spec, "COMFY_AUTOGROW_V3"):
continue
sub_id = getattr(spec, 'id', None)
template = getattr(spec, 'template', None)
if not sub_id or template is None:16 unmodified lines kwargs[sub_id] = collected
# --- COMFY_DYNAMICCOMBO_V3 ---
# Plain combo widgets (e.g. ImageScaleToTotalPixels' 'upscale_method') also
# expose ``.options``, so the io type gate below plus the keyed-option check
# keep them out: only a DynamicCombo carries ``DynamicCombo.Option`` objects.
for spec in inputs:
if not _matches_io_type(spec, "COMFY_DYNAMICCOMBO_V3"):
continue
sub_id = getattr(spec, 'id', None)
options = getattr(spec, 'options', None)
if not sub_id or not options or sub_id not in kwargs:10 unmodified lines else:
option_keys.append(getattr(opt, 'key', None))
# A plain COMBO (e.g. ImageScaleToTotalPixels' 'upscale_method') also
# exposes `.options`, but as bare strings with no `.key`. Only a real
# DynamicCombo carries keyed options; anything else is not ours to touch.
if not any(key is not None for key in option_keys):
continue
if value not in option_keys:
print(f"Warning: '{sub_id}' value {value!r} is not one of {option_keys} for {class_type}.")
continue1212345comfyui-frontend-package==1.58.5comfyui-workflow-templates==0.11.106comfyui-frontend-package==1.59.1comfyui-workflow-templates==0.11.109comfyui-embedded-docs==0.5.16torchtorchsde652 unmodified lines653654655656656657658659652 unmodified lines
with gr.Accordion("MOSS-Image Color/Depth Control Settings", open=False, visible=('moss_image_control' in default_enabled_chains)) as control_accordion: components[key('moss_image_control_accordion')] = control_accordion gr.Markdown("💡 **Tip:** Uses the [darask0/MOSS-Image-color-depth-control](https://huggingface.co/darask0/MOSS-Image-color-depth-control) adapter.") gr.Markdown("💡 **Tip:** Uses the [Comfy-Org/MOSS-Image](https://huggingface.co/Comfy-Org/MOSS-Image) color/depth control LoRA.") with gr.Row(): components[key('moss_image_control_color_map')] = gr.Image( type="pil", label="Color Region Map (Optional)", sources=["upload"], height=200508 unmodified lines509510511512512513514515508 unmodified linesmoss_image_control:
chains: moss_image_control
display_name: "MOSS-Image Color/Depth Control"
description: "Controls MOSS-Image generation using a color region map (object/region spatial layout) and/or a depth map (3D spatial depth, near is white) via darask0/MOSS-Image-color-depth-control adapter and MOSSImageControl node."
description: "Controls MOSS-Image generation using a color region map (object/region spatial layout) and/or a depth map (3D spatial depth, near is white) via Comfy-Org/MOSS-Image color/depth control LoRA and MOSSImageControl node."
max_count: 1
usage_guideline: "Supply color_map (RGB region ID map) and/or depth_map (near=white grayscale map) as Base64 Data URI or HTTP/HTTPS URL. Set strength (default 1.0) and timestep range (start_percent 0.0, end_percent 0.5)."
parameters_schema:702 unmodified lines703704705706707708709706707708185 unmodified lines894895896901897898903904899900901902903702 unmodified lines source: "hf"
repo_id: "Comfy-Org/Qwen-Image-2.1"
repository_file_path: "diffusion_models/qwen_image_2.1_turbo_int8_convrot.safetensors"
- filename: "qwen-image-2.1-UC-int8_convrot.safetensors"
source: "hf"
repo_id: "abenzerps/Qwen-Image-2.1-Uncensored-GGUF"
repository_file_path: "qwen-image-2.1-UC-int8_convrot.safetensors"
- filename: "NoctQ_V4_int8_convrot.safetensors"
source: "hf"
repo_id: "Noctaluna/Noct-Q-Uncensored-Qwen-Image-2.1"185 unmodified lines repository_file_path: "flux1-redux-dev.safetensors"
loras:
# MOSS-Image Color/Depth Control
- filename: "moss-control.safetensors"
- filename: "moss_image_color_depth_control.safetensors"
source: "hf"
repo_id: "darask0/MOSS-Image-color-depth-control"
repository_file_path: "moss-control.safetensors"
repo_id: "Comfy-Org/MOSS-Image"
repository_file_path: "loras/moss_image_color_depth_control.safetensors"
# MOSS-Image Edit
- filename: "moss_image_edit_lora_rank_64_bf16.safetensors"
source: "hf"63 unmodified lines646566676869707167686963 unmodified lines unet: "qwen_image_2.1_turbo_int8_convrot.safetensors"
vae: "qwen_image_2.1_vae_bf16.safetensors"
clip: "qwen3vl_8b_nvfp4.safetensors"
- display_name: "abenzerps/Qwen-Image-2.1-Uncensored"
components:
unet: "qwen-image-2.1-UC-int8_convrot.safetensors"
vae: "qwen_image_2.1_vae_bf16.safetensors"
clip: "qwen3vl_8b_nvfp4.safetensors"
- display_name: "Noctaluna/Noct-Q-Uncensored-Qwen-Image-2.1-V4"
components:
unet: "NoctQ_V4_int8_convrot.safetensors"README.md-2
chain_injectors/moss_image_control_injector.py+2-2
core/pipelines/workflow_executor.py+27
requirements.txt+2-2
ui/shared/ui_components.py+1-1
yaml/chain_features.yaml+1-1
yaml/file_list.yaml+3-7
yaml/model_list.yaml-5