Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

3.3 KB
Raw Blame
"""Optional ComfyUI custom-node entry point; the engine also runs standalone."""
WEB_DIRECTORY = './web'


async def comfy_entrypoint():
    from .freevideo_engine.comfy_environment import control_process
    from .freevideo_engine.gpu_pool import pool_enabled
    if control_process() and pool_enabled():
        from server import PromptServer
        from .freevideo_engine import comfy_bridge
        from .freevideo_engine.comfy_pool import register_pool
        await register_pool(PromptServer.instance, root=comfy_bridge.installation_root(),
                            source=comfy_bridge.source_root())
    from .freevideo_engine.comfy_progress import register as progress_routes
    progress_routes()
    try:
        from .freevideo_engine.comfy_chain import register as chain_routes
        chain_routes()
    except Exception as error:
        import logging
        logging.warning('[FreeVideo] Chain routes not registered: %s', error)
    from .freevideo_engine.comfy_upload import register
    register()
    from .freevideo_engine.comfy_setup import register as setup_routes
    setup_routes()
    from .freevideo_engine.prompt_vlm.service import register as prompt_routes
    prompt_routes()
    try:
        from .freevideo_engine.image_gen.service import register as image_routes
        image_routes()
    except Exception as error:
        import logging
        logging.warning('[FreeVideo] Image generation routes not registered: %s', error)
    try:
        from .freevideo_engine.dubbing.service import register as dubbing_routes
        dubbing_routes()
    except Exception as error:
        import logging
        logging.warning('[FreeVideo] Dubbing routes not registered: %s', error)
    from .freevideo_engine.comfy_launcher_api import register as launcher_routes
    launcher_routes()
    from .freevideo_engine.comfy_updates import register as update_routes
    update_routes()
    from .freevideo_engine.comfy_library import register as library_routes
    library_routes()
    from .freevideo_engine.comfy_editor import register as editor_routes
    editor_routes()
    from .freevideo_engine.editor_export import register as editor_export_routes
    editor_export_routes()
    from .freevideo_engine.comfy_capabilities import register as capabilities_routes
    capabilities_routes()
    from .freevideo_engine.subtitle_ears import register as subtitle_ears_routes
    subtitle_ears_routes()
    from .freevideo_engine.editor_music import register as editor_music_routes
    editor_music_routes()
    from .freevideo_engine.subtitle_files import register as subtitle_file_routes
    subtitle_file_routes()
    from .freevideo_engine.comfy_share import register as share_routes
    share_routes()
    from .freevideo_engine.swap_lora import register as swap_lora_routes
    swap_lora_routes()
    from .freevideo_engine.comfy_metadata import register as workflow_backfill
    workflow_backfill()
    try:
        from .freevideo_engine.agent.routes import register as agent_routes
        agent_routes()
    except Exception as error:
        import logging
        logging.warning('[FreeVideo] Agent routes not registered: %s', error)
    from .freevideo_engine.comfy_nodes import FreeVideoExtension, register_prompt_cleanup
    register_prompt_cleanup()
    from .freevideo_engine.comfy_nodes import schedule_startup_prefetch
    schedule_startup_prefetch()
    return FreeVideoExtension()