Skip to content

Commit ae65433

Browse files
This only works on radiance. (Comfy-Org#11277)
1 parent fdebe18 commit ae65433

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

comfy/model_detection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ def detect_unet_config(state_dict, key_prefix, metadata=None):
259259
dit_config["nerf_tile_size"] = 512
260260
dit_config["nerf_final_head_type"] = "conv" if f"{key_prefix}nerf_final_layer_conv.norm.scale" in state_dict_keys else "linear"
261261
dit_config["nerf_embedder_dtype"] = torch.float32
262-
if "__x0__" in state_dict_keys: # x0 pred
263-
dit_config["use_x0"] = True
264-
else:
265-
dit_config["use_x0"] = False
262+
if "__x0__" in state_dict_keys: # x0 pred
263+
dit_config["use_x0"] = True
264+
else:
265+
dit_config["use_x0"] = False
266266
else:
267267
dit_config["guidance_embed"] = "{}guidance_in.in_layer.weight".format(key_prefix) in state_dict_keys
268268
dit_config["yak_mlp"] = '{}double_blocks.0.img_mlp.gate_proj.weight'.format(key_prefix) in state_dict_keys

0 commit comments

Comments
 (0)