INNER CODE UNIT · Python

remaining

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

    remaining = len(options) - len(shown)
    if remaining > 0:
        formatted += f" (and {remaining} more)"
    return formatted


def _check_model_reference(object_info, node_id, class_type, field, value, model_type):
    """
    Validate one model-name input of a loader node.

    Returns a problem description string, or None if the reference is fine
    (or cannot be judged from /object_info).
    """
    volume_dir = MODEL_TYPE_VOLUME_DIRS.get(
        model_type, f"/runpod-volume/models/{model_type}/"
    )

    if value == MODEL_LIST_PLACEHOLDER:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…