INNER CODE UNIT · Python

_check_image_reference

runpod-workers/worker-comfyui · handler.py:540

def _check_image_reference(object_info, node_id, value):
    """
    Validate a LoadImage 'image' input against ComfyUI's known input images.

    Returns a problem description string, or None if the reference is fine.
    """
    if value == MODEL_LIST_PLACEHOLDER:
        return (
            f"Node {node_id} (LoadImage.image): got the placeholder "
            f"'{MODEL_LIST_PLACEHOLDER}' instead of a real image filename — the client "
            f"sent a UI default that was never replaced with an actual file"
        )
    available = _loader_field_options(object_info, "LoadImage", "image")
    if available is None or value in available:
        return None
    # ComfyUI accepts annotated names like "example.png [input]" that are not
    # part of the option list — don't second-guess those.
    if value.endswith("]") and " [" in value:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…