INNER CODE UNIT · Python

ComfyUI_Controlnet_Aux

fofr/cog-face-to-sticker · helpers/ComfyUI_Controlnet_Aux.py:38

class ComfyUI_Controlnet_Aux:
    @staticmethod
    def models():
        return MODELS

    @staticmethod
    def weights_map(base_url):
        return {
            key: {
                "url": f"{base_url}/custom_nodes/comfyui_controlnet_aux/{key}.tar",
                "dest": f"ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts/{MODELS[key]}",
            }
            for key in MODELS
        }

    # Controlnet preprocessor models are not included in the API JSON
    # We need to add them manually based on the nodes being used to
    # avoid them being downloaded automatically from elsewhere

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…