Skip to content
Python
7.3 KB
Raw Blame
{
  "$schema": "../../schema/app.schema.json",
  "id": "relight",
  "name": "Relight",
  "section": "image",
  "pack": "image-qwen-edit",
  "status": "ready",
  "higgsfield_feature": "Relight",
  "summary": "Relights a photo with a preset light or your own direction, softness, brightness and color, keeping the scene intact.",
  "workflow": "workflow.api.json",
  "source": {
    "template": "image_qwen_image_edit_2509_relight.json",
    "comfyui": "0.42.0",
    "notes": "Unchanged official template (Qwen Image Edit 2509 fp8 + Relight LoRA + 4-step Lightning LoRA). The Relight trigger is prepended by the workflow."
  },
  "inputs": [
    {
      "id": "image",
      "type": "image",
      "label": "Photo",
      "required": true,
      "limits": {
        "max_mb": 20
      },
      "bind": [
        {
          "node": "11",
          "field": "image"
        }
      ]
    },
    {
      "id": "light",
      "type": "select",
      "label": "Light",
      "default": "golden hour sunlight through a low window, warm color temperature, long soft shadows",
      "options": [
        {
          "value": "a single light source",
          "label": "Single light (use the controls)"
        },
        {
          "value": "golden hour sunlight through a low window, warm color temperature, long soft shadows",
          "label": "Golden hour"
        },
        {
          "value": "twilight blue-hour light with warm practical lamps, soft light and blurred shadows",
          "label": "Blue hour"
        },
        {
          "value": "neon night lighting, magenta and cyan rim light, dark moody background",
          "label": "Neon night"
        },
        {
          "value": "soft studio light from a large softbox on the left, gentle fill, clean shadows",
          "label": "Studio softbox"
        },
        {
          "value": "dramatic chiaroscuro, a single hard key light from the side, deep shadows",
          "label": "Dramatic key light"
        },
        {
          "value": "overcast daylight, soft and even, no hard shadows",
          "label": "Overcast"
        },
        {
          "value": "warm candlelight, flickering amber glow, deep shadows",
          "label": "Candlelight"
        }
      ],
      "bind": [
        {
          "node": "15",
          "field": "value",
          "template": " relight the image using {light}{direction}{quality}{brightness}{color}. {details}"
        }
      ]
    },
    {
      "id": "direction",
      "type": "select",
      "label": "Direction",
      "default": "",
      "options": [
        {
          "value": "",
          "label": "Any"
        },
        {
          "value": ", the light coming from above",
          "label": "Above"
        },
        {
          "value": ", the light coming from the front",
          "label": "Front"
        },
        {
          "value": ", the light coming from the left",
          "label": "Left"
        },
        {
          "value": ", the light coming from the right",
          "label": "Right"
        },
        {
          "value": ", the light coming from behind the subject",
          "label": "Behind"
        },
        {
          "value": ", the light coming from below",
          "label": "Below"
        }
      ],
      "bind": [],
      "help": "Where the light comes from, as seen in the photo."
    },
    {
      "id": "quality",
      "type": "select",
      "label": "Softness",
      "default": "",
      "options": [
        {
          "value": "",
          "label": "Any"
        },
        {
          "value": ", soft light with blurred shadow edges",
          "label": "Soft"
        },
        {
          "value": ", hard light with crisp shadow edges",
          "label": "Hard"
        }
      ],
      "bind": []
    },
    {
      "id": "brightness",
      "type": "select",
      "label": "Brightness",
      "default": "",
      "options": [
        {
          "value": "",
          "label": "Any"
        },
        {
          "value": ", dim and low-key",
          "label": "Dim"
        },
        {
          "value": ", bright and high-key",
          "label": "Bright"
        }
      ],
      "bind": []
    },
    {
      "id": "color",
      "type": "select",
      "label": "Light color",
      "default": "",
      "options": [
        {
          "value": "",
          "label": "Any"
        },
        {
          "value": ", neutral white colored light",
          "label": "White"
        },
        {
          "value": ", warm tungsten colored light",
          "label": "Warm"
        },
        {
          "value": ", cool blue-white colored light",
          "label": "Cool"
        },
        {
          "value": ", red colored light",
          "label": "Red"
        },
        {
          "value": ", orange colored light",
          "label": "Orange"
        },
        {
          "value": ", yellow colored light",
          "label": "Yellow"
        },
        {
          "value": ", green colored light",
          "label": "Green"
        },
        {
          "value": ", cyan colored light",
          "label": "Cyan"
        },
        {
          "value": ", blue colored light",
          "label": "Blue"
        },
        {
          "value": ", purple colored light",
          "label": "Purple"
        },
        {
          "value": ", pink colored light",
          "label": "Pink"
        }
      ],
      "bind": []
    },
    {
      "id": "details",
      "type": "textarea",
      "label": "Anything else about the light (optional)",
      "default": "",
      "help": "e.g. light coming from the right, a red glow from a sign"
    },
    {
      "id": "seed",
      "type": "seed",
      "label": "Seed",
      "default": -1,
      "help": "-1 picks a random seed",
      "bind": [
        {
          "node": "10:3",
          "field": "seed"
        }
      ]
    }
  ],
  "outputs": [
    {
      "node": "12",
      "type": "image",
      "label": "Relit photo"
    }
  ],
  "models": [
    {
      "repo": "Comfy-Org/Qwen-Image-Edit_ComfyUI",
      "file": "split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors",
      "dir": "diffusion_models",
      "gb": 20.43,
      "phase": "denoise",
      "license": "Apache-2.0"
    },
    {
      "repo": "Comfy-Org/Qwen-Image_ComfyUI",
      "file": "split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
      "dir": "text_encoders",
      "gb": 9.38,
      "phase": "encode",
      "license": "Apache-2.0"
    },
    {
      "repo": "Comfy-Org/Qwen-Image_ComfyUI",
      "file": "split_files/vae/qwen_image_vae.safetensors",
      "dir": "vae",
      "gb": 0.25,
      "phase": "decode",
      "license": "Apache-2.0"
    },
    {
      "repo": "lightx2v/Qwen-Image-Lightning",
      "file": "Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
      "dir": "loras",
      "gb": 0.85,
      "phase": "denoise",
      "license": "Apache-2.0"
    },
    {
      "repo": "Comfy-Org/Qwen-Image-Edit_ComfyUI",
      "file": "split_files/loras/Qwen-Image-Edit-2509-Relight.safetensors",
      "dir": "loras",
      "gb": 0.24,
      "phase": "denoise",
      "license": "Apache-2.0"
    }
  ],
  "credits": [
    "Qwen-Image-Edit-2509 by Alibaba Qwen (Apache-2.0)",
    "Relight LoRA by dx8152 (Apache-2.0)",
    "Lightning LoRA by lightx2v",
    "Workflow: ComfyUI official template"
  ],
  "test": {
    "image": "test/portrait.png"
  }
}