Commit Graph
348 Commits
Author SHA1 Message Date
Dr.Lt.Data 3c25e6f52e fix: MakeTileSEGS - invalid calculation 2024-01-07 15:20:44 +09:00
Dr.Lt.Data c6a5a0f98a feat: MakeTileSEGS - filter_in_segs_opt, filter_out_segs_opt
improve: detailer - set different seed for each SEGS
2024-01-07 13:12:28 +09:00
Dr.Lt.Data f6ec3a8164 feat: ImpactMakeTileSEGS, RemoveImageFromSEGS
improve: SEGSPreview - add min_alpha

improve: grow default guide_size and max_size

refactor: move several nodes from impact_pack.py -> util_nodes.py
2024-01-06 16:59:48 +09:00
Dr.Lt.Data 4aec82be08 fix: SAMLoader - Confirmed that VRAM is releasing properly in auto mode. 2024-01-04 01:21:28 +09:00
Dr.Lt.Data 265738e71f fix: cnet segs application cannot be stacked 2024-01-02 23:47:29 +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 5ff4b3f0bc fix: install.py - install GitPython before install subpack 2024-01-01 10:06:46 +09:00
JonasandJonas Krauss c4839a8b91 add check for type of cropped image to support controlnet segs workflow (#407)
Co-authored-by: Jonas Krauss <jonas.krauss@stockpulse.de>
2023-12-31 01:07:19 +09:00
Dr.Lt.Data ddaedfe836 feat: ImpactWildcardEncode - support BREAK syntax 2023-12-30 00:58:08 +09:00
kamnxtandDr.Lt.Data 36fbaab563 Improve wildcards and fix a bug (#319)
* Improve wildcards and fix a bug

This commit fixes two issues with wildcards:

- Using a single count value no longer worked due to .strip() being
  called on a None value from matching the upper range,
  when using a wildcard like {2$$a|b|c},
  while {2-2$$a|b|c} worked fine. Added a check to fix that.

- Choosing options was implemented in an odd way. The code would choose
  up to `count` values, then put them in a `set` to prevent duplicates.
  Then retry up to 10 times to get values in case the correct count
  wasn't reached. This had a few issues: {2$$a|a|b} would always choose
  "b a", always in this order! However, {2$$1::a|a|b}, which should be
  identical, gives either "a a" or "b a"!

- When the number of items to choose was more than the count of items to
  choose, the items would be returned in the original order, meaning for
  example {3-6$$a|b|c|d} returns "a b c d" way more often than it
  should. This is changed to shuffle the order when choosing all the
  items.

- As NumPy already had a way to choose N items without replacement and
  with weights, the code has been changed to use a NumPy Generator. This
  means previous seeds are no longer compatible, but also means we don't
  re-seed the built-in Python `random` generator.

- I have also added a "ImpactWildcardUnprocessed" node, in order to have
  a multiline text input node that doesn't do ComfyUI's built in
  wildcard replacement, so it's possible to put a prompt in a separate
  node from the WildcardProcessor (or have a few ones to connect
  manually). Due to the way things are processed both on the JS side and
  the backend side, sadly concatenating text for use in wildcards
  doesn't work yet.

* fix: random_gen.shuffle is side-effect function

* version marker

---------

Co-authored-by: Dr.Lt.Data <dr.lt.data@gmail.com>
2023-12-29 23:41:04 +09:00
narukaze132 c5cdfa2f40 Added ImpactLatentInfo (#402) 2023-12-29 07:40:13 +09:00
Dr.Lt.Data 9d22e7e55c fix: mask_to_segs - side effect of combined+bbox fill 2023-12-28 22:14:48 +09:00
Dr.Lt.Data 4667ba1a8a fix: mask_to_segs - bbox_fill doesn't work when combined mode 2023-12-28 22:07:12 +09:00
Dr.Lt.Data 7c96cdb771 feat: SEGSOrderedFilterDetailerHook, SEGSRangeFilterDetailerHook, SEGSLabelFilterDetailerHook
refactor: hooks, hook_nodes, defs
2023-12-27 19:50:56 +09:00
Dr.Lt.Data 7f70bf0eee fix: return 3d mask as possible
- MaskComposite requires 3d mask
2023-12-26 23:47:42 +09:00
Dr.Lt.Data da9d04d9a2 feat: Detailer wildcards - [CONCAT] support 2023-12-26 20:32:53 +09:00
Dr.Lt.Data a9440d63ec refactor: class name 2023-12-26 00:38:47 +09:00
Dr.Lt.Data f942627b12 fix: SEGSPreview - crash 2023-12-25 23:10:37 +09:00
Dr.Lt.Data 2555beb5cd feat: Detailer For AnimateDiff - support batch mask 2023-12-25 23:06:36 +09:00
Dr.Lt.Data c4ef168cc7 improve: display proper error message for detectors 2023-12-25 00:40:04 +09:00
Dr.Lt.Data 4d39c93122 Merge remote-tracking branch 'origin/Main' into Main 2023-12-24 10:17:54 +09:00
Dr.Lt.Data bcab35a3b1 fix: non pipe FaceDetailer - invalid cropped_enhanced_alpha 2023-12-24 10:17:45 +09:00
narukaze132 0742390991 Fixed LoRA model/clip strength in wildcards (#396) 2023-12-24 09:44:02 +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 fe5a8cbf8a improve: better error message
refactor: rename IterativeLatentUpscaler
2023-12-23 13:53:45 +09:00
Dr.Lt.Data 75799f5834 improve: FaceDetailer allows image batch input 2023-12-23 13:16:12 +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 483594f6be Included code patch for Unsampler of ComfyUI_Noise in the current codebase. 2023-12-22 22:27:53 +09:00
Dr.Lt.Data 14c26fce8d fix: sam editor crash by 0246 extension 2023-12-22 22:12: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 f88a4cfb06 fix: legacy code scale_tensor
https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/385
2023-12-20 09:06:59 +09:00
Dr.Lt.Data e118f7b6af optimize: import pipeline ondemand
fix: force cpu device for `tensor_paste`
- prevent device mismatch error
2023-12-19 22:58:41 +09:00
Dr.Lt.Data f3c44a568f fix: device mixing error when --gpu-only, --fp8... is used 2023-12-19 16:55:30 +09:00
Dr.Lt.Data 4ab4f59dc0 improve: resize latent2rgb decoded image to pixelspace size 2023-12-19 14:26:42 +09:00
Dr.Lt.Data 3a9c326a6b improve: PreviewBridgeLatent allows vae_opt input
fix: doesn't work in PreviewBridgeLatent
fix: PreviewBridge, PreviewBridgeLatent doesn't work under specific situation
2023-12-19 14:06:14 +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
Dr.Lt.Data 757d07c789 improve: add vae output to 'IterativeUpscaler (latent)' 2023-12-16 01:42:57 +09:00
Dr.Lt.Data a820a88fb0 fix: prevent put alpha to seg_image 2023-12-16 01:10:32 +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 aa47f5c7a1 improve: MaskDetailer - robust patch 2023-12-14 22:54:41 +09:00
Dr.Lt.Data 6e11efd7fe fix: restore ImpactFloat 2023-12-14 09:36:10 +09:00
Dr.Lt.Data 33c68fdd8e feat: Set Default Image for SEGS 2023-12-12 18:39:47 +09:00
Dr.Lt.Data b8a4febd51 fix: Concat Conditionings crash 2023-12-11 19:18:46 +09:00
Dr.Lt.Data 9d3f786e5e fix: Concat Conditionings 2023-12-11 12:16:28 +09:00