INNER CODE UNIT · Python

init

kiri-art/docker-diffusers-api · api/app.py:93

def init():
    global model  # needed for bananna optimizations
    global always_normalize_model_id

    asyncio.run(
        send(
            "init",
            "start",
            {
                "device": device_name,
                "hostname": os.getenv("HOSTNAME"),
                "model_id": MODEL_ID,
                "diffusers": __version__,
            },
        )
    )

    if MODEL_ID == "ALL" or RUNTIME_DOWNLOADS:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…