modified: detailer - allow 5D latent model (WAN)

- assuming it's a single-frame latent, not a video latent

https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/1066
This commit is contained in:
Dr.Lt.Data
2025-07-27 15:53:40 +09:00
parent 3d90c579e8
commit 48a814315f
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import os
import logging
version_code = [8, 21, 1]
version_code = [8, 21, 2]
version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
my_path = os.path.dirname(__file__)
+5
View File
@@ -407,6 +407,11 @@ def enhance_detail(image, model, clip, vae, guide_size, guide_size_for_bbox, max
refined_image = detailer_hook.post_decode(refined_image)
# downscale
# workaround: support WAN as an i2i model
if len(refined_image.shape) == 5:
refined_image = refined_image.squeeze(0)
refined_image = utils.tensor_resize(refined_image, w, h)
# prevent mixing of device
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-impact-pack"
description = "This node pack offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler."
version = "8.21.1"
version = "8.21.2"
license = { file = "LICENSE.txt" }
dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]