Nodes/comfyui-fvmtools/K2 Project Import
ComfyUI Node

K2 Project Import

Imports a K2Lab / K2 Region Studio project JSON and turns it into normal K2 graph objects: regions, regional LoRAs, emphases, tuning and projector. Accepts the published schema (version 1) with 'regions', 'loras', 'emphases', 'spatial', 'projector'. Region boxes may be given as {x0,y0,x1,y1} or {x,y,width,height}. LoRA entries are matched against the local models/loras inventory by file name; a missing file is reported instead of silently dropped.

By ping1979ping·Created 5 months ago·Updated 21 days ago· 0
K2 Project Import
    • regions
    • loras
    • emphasis
    • tuning
    • projector
    • global_prompt
    • negative_prompt
    • width
    • height
    • info
    project_json{}
    width1024
    height1024
    strict_lora_namestrue
    CategoryFVM Tools/K2

    Inputs (4)

    NameTypeDefaultDescription
    project_jsonSTRING{}K2Lab / K2 Region Studio project JSON.
    widthINT102464–16384Canvas the stored pixel boxes refer to.
    heightINT102464–16384Canvas height the stored boxes refer to.
    strict_lora_namesoptBOOLEANtrueOn: a LoRA file that is not installed raises an error. Off: it is skipped and listed in the info output.

    Outputs (10)

    NameTypeDescription
    regionsK2_REGION
    lorasK2_LORA
    emphasisK2_EMPHASIS
    tuningK2_TUNING
    projectorK2_PROJECTOR
    global_promptSTRING
    negative_promptSTRING
    widthINT
    heightINT
    infoSTRING