Nodes/Parametric Studio/CV VRAM Guard
ComfyUI Node

CV VRAM Guard

Decide whether a heavy CV op should run on cuda or cpu based on VRAM usage.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
CV VRAM Guard
    • device_str
    • warning
    ◄vram_used_mb0►
    ◄threshold_mb500►
    ◄device▾►
    ◄vram_total_mb0►
    CategoryParametric/Image

    Inputs (4)

    NameTypeDefaultDescription
    vram_used_mbFLOAT00–1000000000Vram used mb. From 0 to 1e+09. Default 0.0.
    threshold_mbINT5000–1000000Threshold mb. From 0 to 1e+06. Default 500.
    deviceCOMBODevice. One of 3 choices.
    vram_total_mboptFLOAT00–1000000000Vram total mb. From 0 to 1e+09. Default 0.0.

    Outputs (2)

    NameTypeDescription
    device_strSTRING—
    warningSTRING—