{"record":{"id":"92ec0ff74c67b828","repo":"Comfy-Org/ComfyUI","slug":"unknown-layer-block-name","errorCode":null,"errorMessage":"unknown layer: {block_name}","messagePattern":"unknown layer: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy/ldm/lightricks/vae/causal_video_autoencoder.py","lineNumber":476,"sourceCode":"                block = DepthToSpaceUpsample(\n                    dims=dims,\n                    in_channels=input_channel,\n                    stride=(1, 2, 2),\n                    out_channels_reduction_factor=block_params.get(\"multiplier\", 1),\n                    spatial_padding_mode=spatial_padding_mode,\n                )\n            elif block_name == \"compress_all\":\n                output_channel = output_channel // block_params.get(\"multiplier\", 1)\n                block = DepthToSpaceUpsample(\n                    dims=dims,\n                    in_channels=input_channel,\n                    stride=(2, 2, 2),\n                    residual=block_params.get(\"residual\", False),\n                    out_channels_reduction_factor=block_params.get(\"multiplier\", 1),\n                    spatial_padding_mode=spatial_padding_mode,\n                )\n            else:\n                raise ValueError(f\"unknown layer: {block_name}\")\n\n            self.up_blocks.append(block)\n\n        if norm_layer == \"group_norm\":\n            self.conv_norm_out = nn.GroupNorm(\n                num_channels=output_channel, num_groups=norm_num_groups, eps=1e-6\n            )\n        elif norm_layer == \"pixel_norm\":\n            self.conv_norm_out = PixelNorm()\n        elif norm_layer == \"layer_norm\":\n            self.conv_norm_out = LayerNorm(output_channel, eps=1e-6)\n\n        self.conv_act = nn.SiLU()\n        self.conv_out = make_conv_nd(\n            dims,\n            output_channel,\n            out_channels,\n            3,","sourceCodeStart":458,"sourceCodeEnd":494,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy/ldm/lightricks/vae/causal_video_autoencoder.py#L458-L494","documentation":"Raised by the causal video autoencoder Decoder when an up_blocks config entry's name is not recognized by its builder chain (res_block, upsample, decompress_time, decompress_space, compress_all-related names, etc.). It is the Decoder counterpart of error 191: the block registry is closed.","triggerScenarios":"Constructing Decoder with an up_blocks list containing an unknown name, e.g. {\"name\": \"upsample2d\"} or {\"name\": \"decompress\"}; usually sourced from the checkpoint config.","commonSituations":"Version skew: a newer LTX-family checkpoint config uses a block this ComfyUI build does not implement; hand-written decoder configs; typos.","solutions":["Fix the name to one supported by the builder (check the elif chain in causal_video_autoencoder.py around the raise)","Update ComfyUI to a version matching the checkpoint","Drop the unsupported block entry from the config"],"exampleFix":"# before\nup_blocks = [{\"block\": [{\"name\": \"upscale\"}]}]\n\n# after\nup_blocks = [{\"block\": [{\"name\": \"upsample\"}]}]","handlingStrategy":"validation","validationCode":"KNOWN_UP = {\"res_block\", \"upsample\", \"decompress_time\", \"decompress_space\", \"compress_all\"}\nfor lvl in config[\"up_blocks\"]:\n    for blk in lvl[\"block\"]:\n        if blk[\"name\"] not in KNOWN_UP:\n            raise ValueError(f\"unsupported up block {blk['name']!r}; supported: {sorted(KNOWN_UP)}\")","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Validate up_blocks names against the Decoder builder before construction","Match ComfyUI version to the checkpoint generation"],"tags":["config","decoder","video-vae","ltx"],"backgroundTag":null,"analyzedSha":"1c6d8d45b3693bfbb32385b410d813a7fd6be216","analyzedAt":"2026-08-14T19:37:18.893Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}