Skip to content

Error when using the Layer Diffuse (SDXL) option #1719

Description

@freelyn

What happened?

When I try to generate an image using Layer Diffuse (SDXL), I get this error:

Exception Details

Error message
{
  "prompt_id": "6621195b-28d7-49a5-a866-e4a95c18ef96",
  "node_id": "LayerDiffuseDecode",
  "node_type": "Inference_Core_LayeredDiffusionDecodeRGBA",
  "executed": [
    "NegativeCLIP_Base",
    "PositiveCLIP_Base",
    "Loras_Base",
    "LayerDiffuseApply_Base",
    "EmptyLatentImage",
    "VAEDecode_1",
    "CLIP_Skip_Base",
    "CheckpointLoader_Base",
    "Sampler"
  ],
  "exception_message": "\u0027JoinImageWithAlpha\u0027 object has no attribute \u0027join_image_with_alpha\u0027\n",
  "exception_type": "AttributeError",
  "traceback": [
    "  File \u0022D:\\Program Files\\StabilityMatrix\\Data\\Packages\\ComfyUI\\execution.py\u0022, line 545, in execute\n    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)\n                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
    "  File \u0022D:\\Program Files\\StabilityMatrix\\Data\\Packages\\ComfyUI\\execution.py\u0022, line 344, in get_output_data\n    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
    "  File \u0022D:\\Program Files\\StabilityMatrix\\Data\\Packages\\ComfyUI\\execution.py\u0022, line 318, in _async_map_node_over_list\n    await process_inputs(input_dict, i)\n",
    "  File \u0022D:\\Program Files\\StabilityMatrix\\Data\\Packages\\ComfyUI\\execution.py\u0022, line 306, in process_inputs\n    result = f(**inputs)\n             ^^^^^^^^^^^\n",
    "  File \u0022D:\\Program Files\\StabilityMatrix\\Data\\Packages\\ComfyUI\\custom_nodes\\ComfyUI-Inference-Core-Nodes\\src\\inference_core_nodes\\layer_diffuse\\layered_diffusion.py\u0022, line 200, in decode\n    return JoinImageWithAlpha().join_image_with_alpha(image, alpha)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"
  ],
  "current_inputs": {
    "samples": [
      "{\u0027samples\u0027: tensor([[[[ 0.4873, -3.1766, -3.2595,  ..., -3.4066, -3.6165, -0.9937],\n          [ 0.3494, -2.8399, -4.2589,  ..., -3.0939, -3.2803, -3.7262],\n          [ 0.2351, -2.5118, -2.7873,  ..., -3.1208, -3.4974, -2.3951],\n          ...,\n          [-0.1825, -3.1532, -3.3114,  ..., -3.3945, -3.7119, -2.1431],\n          [ 0.7719, -2.4098, -2.3472,  ..., -2.5784, -2.2333, -2.7056],\n          [ 2.7631,  0.5698,  0.9100,  ...,  1.2236, -0.9272,  2.2076]],\n\n         [[ 0.2077,  2.7147,  1.7040,  ...,  1.7644,  2.4107,  5.4007],\n          [ 2.8244,  5.7270,  3.4140,  ...,  4.5915,  4.9302,  1.9848],\n          [ 3.1956,  6.1816,  4.7460,  ...,  4.8746,  5.6209,  6.1719],\n          ...,\n          [ 4.0994,  6.5723,  5.1450,  ...,  4.9443,  5.2795,  5.3180],\n          [ 9.6382,  8.3854,  8.0888,  ...,  7.4203,  7.4186,  5.3428],\n          [ 7.1010,  5.9382,  5.6023,  ...,  5.1988,  1.6881,  6.9309]],\n\n         [[-4.2837, -0.1149,  0.8458,  ...,  1.2740,  1.0915, -1.4683],\n          [-5.1273,  4.5579,  1.7723,  ...,  5.8420,  4.9845,  0.7088],\n          [-5.1250,  4.4405,  5.8401,  ...,  6.0028,  4.8702, -0.7954],\n          ...,\n          [-4.8364,  4.8297,  5.7365,  ...,  5.7840,  5.0592, -1.3880],\n          [-6.7743,  3.9206,  4.4359,  ...,  4.6125,  3.8575, -1.5224],\n          [ 3.1536,  2.8318,  2.9230,  ...,  3.1451,  5.1465,  2.9496]],\n\n         [[ 0.3379, -5.9251, -5.4416,  ..., -5.3508, -5.4175, -5.7946],\n          [-1.6622, -4.2976, -6.1841,  ..., -3.7529, -3.8038, -6.3267],\n          [-1.5746, -4.2507, -3.5191,  ..., -3.5414, -4.1572, -7.4483],\n          ...,\n          [-2.2253, -4.2251, -3.9220,  ..., -3.9695, -3.9789, -6.9961],\n          [-2.4473, -4.4898, -3.8672,  ..., -4.1602, -4.0603, -6.5595],\n          [-1.2748, -1.6410, -1.7208,  ..., -1.9906, -1.8797, -1.6321]]]])}"
    ],
    "images": [
      "tensor([[[[0.4844, 0.5054, 0.5076],\n          [0.5032, 0.5276, 0.5295],\n          [0.5154, 0.5371, 0.5349],\n          ...,\n          [0.5649, 0.5859, 0.5645],\n          [0.5703, 0.5889, 0.5693],\n          [0.5708, 0.5889, 0.5718]],\n\n         [[0.5068, 0.5325, 0.5386],\n          [0.5142, 0.5383, 0.5396],\n          [0.5342, 0.5552, 0.5522],\n          ...,\n          [0.5635, 0.5869, 0.5640],\n          [0.5669, 0.5859, 0.5645],\n          [0.5679, 0.5908, 0.5713]],\n\n         [[0.5256, 0.5469, 0.5527],\n          [0.5312, 0.5542, 0.5549],\n          [0.5342, 0.5532, 0.5527],\n          ...,\n          [0.5640, 0.5859, 0.5630],\n          [0.5664, 0.5854, 0.5640],\n          [0.5664, 0.5889, 0.5703]],\n\n         ...,\n\n         [[0.5549, 0.5825, 0.5757],\n          [0.5491, 0.5791, 0.5649],\n          [0.5459, 0.5752, 0.5640],\n          ...,\n          [0.5654, 0.5889, 0.5693],\n          [0.5659, 0.5864, 0.5698],\n          [0.5630, 0.5869, 0.5723]],\n\n         [[0.5515, 0.5835, 0.5786],\n          [0.5479, 0.5786, 0.5688],\n          [0.5439, 0.5747, 0.5674],\n          ...,\n          [0.5659, 0.5869, 0.5698],\n          [0.5654, 0.5859, 0.5693],\n          [0.5613, 0.5840, 0.5688]],\n\n         [[0.5586, 0.5864, 0.5747],\n          [0.5527, 0.5811, 0.5723],\n          [0.5486, 0.5771, 0.5718],\n          ...,\n          [0.5698, 0.5938, 0.5737],\n          [0.5688, 0.5923, 0.5742],\n          [0.5713, 0.5918, 0.5732]]]])"
    ],
    "sd_version": [
      "SDXL"
    ],
    "sub_batch_size": [
      16
    ]
  },
  "current_outputs": [
    "NegativeCLIP_Base",
    "PositiveCLIP_Base",
    "Loras_Base",
    "LayerDiffuseApply_Base",
    "LayerDiffuseApply_Refiner",
    "EmptyLatentImage",
    "VAEDecode_1",
    "CLIP_Skip_Base",
    "SaveImage",
    "LayerDiffuseDecode",
    "CheckpointLoader_Base",
    "Sampler"
  ],
  "timestamp": 1787108101465
}

Version

v2.16.2

What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcrashBugs involving the app crashing to desktop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions