Commit Graph
48 Commits
Author SHA1 Message Date
だにえる a7840b4fbf feat: tensor_paste supports RGBA images with alpha channel blending (#962)
This enhancement adds support for properly handling RGBA images in the tensor_paste function.

The previous implementation caused errors when pasting images with alpha channels.
Now the function can handle all combinations of RGB and RGBA images:
- RGB to RGB (unchanged)
- RGBA to RGBA (with proper alpha compositing)
- RGB to RGBA
- RGBA to RGB

Fix for the error: "RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 3"
2025-04-25 18:35:03 +09:00
Alex Butler 0e0722ec08 Add tiled vae encoding/decoding toggle to detailer nodes (#883)
* detailers: support optional tiled vae encoding & decoding

* Remove start encoding/decoding logging
2025-01-19 03:16:56 +09:00
Dr.Lt.Data 44adbbe282 feat: ImpactMakeMaskList, ImpactMakeMaskBatch, MasksToMaskList, MaskListToMaskBatch, ImpactFlattenMask 2024-09-07 00:48:25 +09:00
Dr.Lt.Data 94f30ef317 fix: resize_mask - robust processing 2024-08-15 16:16:53 +09:00
Dr.Lt.Data 258eb30428 feat: PreviewBridgeLatent - various latent
- SD3, StableCascade, Playground, SD-X4
fix: PreviewBridgeLatent - latent2rgb
- quality issue
2024-06-16 13:22:34 +09:00
Dr.Lt.Data d47c85be07 refactor: remove legacy codes
add: print error message for outdated ComfyUI
2024-04-28 11:23:10 +09:00
Hamish Friedlander 8656245caa Fix conditioning masks not being cropped in SEGSDetailer (#539) 2024-04-06 00:55:25 +09:00
Dr.Lt.Data e1570e7679 fix: robust tensor_paste
https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/512
2024-03-13 09:41:56 +09:00
Dr.Lt.Data dd6d0de968 fix: compatibility patch with recent ComfyUI.
https://github.com/ltdrdata/ComfyUI/commit/3b2e579926d5cf8231de0e68e79096d1ee8091f2
2024-02-19 20:20:25 +09:00
Dr.Lt.Data 747afc4980 fix: ControlNetApply (SEGS) - control_image for animatediff_nodes doesn't work properly
feat: Detailer for AD - support cnet_images output
2024-02-04 03:00:43 +09:00
Dr.Lt.Data ec2040bd78 feat: ControlNetApplySEGS - supports AnimateDiff
refactor: invalid var names
2024-02-03 13:28:09 +09:00
Dr.Lt.Data c486e65f0f fix: feathering crash if too small crop_region
https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/451
2024-01-25 21:16:12 +09:00
Dr.Lt.Data b15c583917 improve: MakeTileSEGS - irregular mask feature 2024-01-13 20:05:07 +09:00
Dr.Lt.Data 1f0b2fb79c improve: SAMLoader - consider smart memory management 2024-01-12 22:28:35 +09:00
Dr.Lt.Data 77b0cd21b6 refactor: use cm_global instead of sys.CM_api
feat: register extension information
2024-01-02 17:08:05 +09:00
Dr.Lt.Data 2555beb5cd feat: Detailer For AnimateDiff - support batch mask 2023-12-25 23:06:36 +09:00
Dr.Lt.Data 1e6e0f92bf improve: support for installing custom nodes based on the ComfyUI-Manager dependency. 2023-12-23 16:47:22 +09:00
Dr.Lt.Data d1aaa4a097 feat: Gaussian Blur Mask, Dilate Mask (SEGS), Gaussian Blur Mask (SEGS)
refactor: feather/gaussian blur
fix: Mask To SEGS - invalid conversion when mask is donut shape
fix: SEGS Paste/SEGS Preview - proper alpha handling
2023-12-23 11:43:38 +09:00
Dr.Lt.Data e089110464 fix: feather issue
https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/387
2023-12-21 00:21:12 +09:00
Dr.Lt.Data d511080f04 fix: rollback upscale method to LANCZOS based on PIL 2023-12-20 22:34:52 +09:00
Dr.Lt.Data 3a28fe18c6 improve: better ImpactInversedSwitch 2023-12-20 21:40:45 +09:00
Dr.Lt.Data b02d288635 improve: better handling of ControlBridge
- now support `Reroute (rghtree)`
2023-12-20 21:16:13 +09:00
Dr.Lt.Data 2f5ff69b9e improve: better handling of ControlBridge 2023-12-20 21:12:06 +09:00
Dr.Lt.Data 686c6e3ca7 feat: PreviewBridgeLatent 2023-12-19 12:21:34 +09:00
Dr.Lt.Data 70196caa30 fix 1: When there are multiple faces, modify the MediaPipe FaceMesh to SEGS to detect multiple faces.
https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/375

fix 2: even number of feather crash on tensor_feather_mask (again)

- Instead of simply forcing the thickness to be even, double it and make corrections.

https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/373
2023-12-18 02:48:13 +09:00
Dr.Lt.Data b3360478bc fix: even number of feather crash on tensor_feather_mask
https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/373
2023-12-16 22:23:30 +09:00
Han Jaeseung 6626cb6781 Remove PIL conversions to support float and uint16 (#371)
* removed intermediate pil conversions

* segs picker bug fix

* segs picker bug fix
2023-12-16 00:44:48 +09:00
Dr.Lt.Data 5d4cf09824 fix: robust mask handling
- prevent crash of 4d mask
2023-12-11 00:04:55 +09:00
Dr.Lt.Data 33b8e7ba93 fix: to_latent_image compatible issue with TAE 2023-12-09 18:40:57 +09:00
Dr.Lt.Data 0c7d65791e improve: SEGSPaste - add base_alpha parameter 2023-11-20 11:33:48 +09:00
Dr.Lt.Data 6145e0b2b2 feat: disable_gpu_opencv option added 2023-11-15 19:08:03 +09:00
Dr.Lt.Data 1e7b87b00d optimize: use gpu for dilation/erosion
fix: mask cache didn't work on regional sampler
fix: erosion didn't work on ultralytics detectors
2023-11-05 12:11:52 +09:00
Dr.Lt.Data add887f13c enhance: prevent overriding model path 2023-11-04 18:38:05 +09:00
Dr.Lt.Data 94d7141ec4 hotfix: compatibility patch for ComfyUI's latest update about mask batch 2023-09-26 19:50:34 +09:00
Dr.Lt.Data e846855cbd improve: dilation - erosion support for negative value 2023-09-13 17:09:54 +09:00
Dr.Lt.Data 64114edd1d improve: add dilation to MediaPipeFaceMeshToSEGS 2023-09-10 20:12:40 +09:00
Dr.Lt.Data 7f6ecfe72a feat: MediaPipeFaceMeshToSEGS 2023-09-10 11:51:31 +09:00
Dr.Lt.Data 19ba1b3604 feat: RemoveNoiseMask
fix: Issue with SEGDetailer and SEGSPaste handling cropped_image in PIL instead of numpy.
2023-08-27 22:55:17 +09:00
Dr.Lt.Data f09159a96e bufix: Mask operation bugfix
https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/120
2023-08-24 16:18:19 +09:00
Dr.Lt.Data 2255fba8a1 feat: ImpactSwitch 2023-08-23 22:08:57 +09:00
Dr.Lt.Data c8e0e4c840 Update utils.py 2023-08-09 07:26:17 +09:00
Lt.Dr.Data 25761cc955 feat: Bitwise(MASK + MASK) 2023-08-07 00:09:51 +09:00
Lt.Dr.Data 1819ad34dd bugfix: to_binary_mask 2023-08-06 11:57:54 +09:00
Dr.Lt.Data 63fad7b2cb V3.0: subpack features 2023-07-23 22:39:25 +09:00
lcolokandDr.Lt.Data 95cc4ed719 Enhance mask_to_segs to Handle Batch Masks for Improved Facial Reconstruction Workflow (#38)
* Enhance mask_to_segs to Handle Batch Masks

* start to build SAMDetectorSegmented

* Add Segmented SAMDetector and SEGS & MASKS ForEach nodes

* Bug fix: Shape tuple dimension length problem

* Enhance mask_to_segs to Handle Batch Masks

* pr/38 bugfix

* code cleansing

* pr/38 bugfix #2

apply_mask_to_each_seg crash fix
'input is 2d mask not 3d masks'

* change masks:'MASK' to masks:'MASKS'

* MasksToMaskList sample added
robust patch for empty SEGS

---------

Co-authored-by: Dr.Lt.Data <dr.lt.data@gmail.com>
2023-07-16 10:27:21 +09:00
Dr.Lt.Data 1ec55f5b54 improve: add support wildcard for FaceDetailer
improve: add max_size for Detailers
- breaking changes
improve: placeholder for detailer wildcard
bugfix: side-effect when cropping region are overlapped between SEGS
bugfix: crash when bitwise operation with empty mask
2023-07-02 11:32:08 +09:00
Dr.Lt.Data ad7d93cc6d Add SEGSDetailer, SEGSPaste, SEGSPreview 2023-06-15 16:24:26 +09:00
Dr.Lt.Data f9e002e023 add ImpactWildCards
refactoring directory structure
2023-06-15 10:53:24 +09:00