comfyui: VAE 4D-to-5D latent expansion for video VAEs
The Qwen-Image 2.1 VAE is a video VAE (5D convs, time_conv, depth-3). ComfyUI detects it as WanVAE (latent_dim=3), but EmptyLatentImage produces a 4D latent. The decode function's memory_used_decode lambda accesses shape[4] which is out of range for 4D. Fix: expand 4D latents to 5D in the decode function when latent_dim==3. Added to the patch script for persistence across container recreations.
This commit is contained in:
@@ -36,3 +36,4 @@ RUN chmod +x /opt/ComfyUI/comfyui-start.sh
|
||||
|
||||
CMD ["/opt/ComfyUI/comfyui-start.sh"]
|
||||
EXPOSE 8188
|
||||
# v2: VAE 4D-to-5D latent expansion for video VAEs (qwen_image21)
|
||||
|
||||
Reference in New Issue
Block a user