Update nodes.py
This commit is contained in:
@@ -426,7 +426,8 @@ class WanVideoModelLoader:
|
||||
new_key = key.replace("model.diffusion_model.", "", 1)
|
||||
new_sd[new_key] = value
|
||||
sd = new_sd
|
||||
|
||||
if not "patch_embedding.weight" in sd:
|
||||
raise ValueError("Invalid WanVideo model selected")
|
||||
dim = sd["patch_embedding.weight"].shape[0]
|
||||
in_channels = sd["patch_embedding.weight"].shape[1]
|
||||
print("in_channels: ", in_channels)
|
||||
|
||||
Reference in New Issue
Block a user