mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-05-07 01:06:42 -03:00
Compare commits
4 Commits
copilot/fi
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb5ef3ead3 | ||
|
|
61e0bd5de4 | ||
|
|
08c19f47fe | ||
|
|
ed4f801c51 |
20
.gitignore
vendored
20
.gitignore
vendored
@@ -1,10 +1,8 @@
|
||||
# Python cache files
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
@@ -21,3 +19,19 @@ wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# Virtual environments
|
||||
venv/
|
||||
ENV/
|
||||
env/
|
||||
|
||||
# IDE
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
@@ -506,7 +506,7 @@ class TSC_KSampler:
|
||||
rng_source, cfg_denoiser, add_seed_noise, m_seed, m_weight = script["noise"]
|
||||
smZ_rng_source.rng_rand_source(rng_source) # this function monkey patches comfy.sample.prepare_noise
|
||||
if cfg_denoiser:
|
||||
smZ_cfg_denoiser.register_hooks()
|
||||
comfy.samplers.KSampler = smZ_cfg_denoiser.SDKSampler
|
||||
if add_seed_noise:
|
||||
comfy.sample.prepare_noise = cg_mixed_seed_noise.get_mixed_noise_function(comfy.sample.prepare_noise, m_seed, m_weight)
|
||||
else:
|
||||
@@ -3958,6 +3958,12 @@ class TSC_ImageOverlay:
|
||||
overlay_image = comfy.utils.common_upscale(samples, overlay_image_size[0], overlay_image_size[1], resize_method, False)
|
||||
overlay_image = overlay_image.movedim(1, -1)
|
||||
|
||||
# Handle batch dimension - use first image if overlay_image is a batch
|
||||
if len(overlay_image.shape) == 4:
|
||||
if overlay_image.shape[0] > 1:
|
||||
print(f"{warning('Image Overlay Warning:')} Multiple overlay images detected ({overlay_image.shape[0]}), using only the first image.")
|
||||
overlay_image = overlay_image[0]
|
||||
|
||||
overlay_image = tensor2pil(overlay_image)
|
||||
|
||||
# Add Alpha channel to overlay
|
||||
|
||||
Reference in New Issue
Block a user