chflame163 / ComfyUI_LayerStyle

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
MIT License
676 stars 33 forks source link

Thresholded incomplete Cholesky decomposition failed due to insufficient positive-definiteness of matrix A with parameters: #62

Closed meetedlike closed 2 months ago

meetedlike commented 2 months ago

Thresholded incomplete Cholesky decomposition failed due to insufficient positive-definiteness of matrix A with parameters: discard_threshold = 1.000000e-04 shift = 0.000000e+00 Try decreasing discard_threshold or start with a larger shift

😺dzNodes: LayerStyle -> SegmentAnythingUltra Processed 10 image(s).

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> Warning: ImageBlendAdvance mask mismatch, dropped!

😺dzNodes: LayerStyle -> ImageBlendAdvance Processed 10 image(s).

😺dzNodes: LayerStyle -> ImageCombineAlpha Processed 10 image(s).

meetedlike commented 2 months ago

If the image is large or when processing video frames, it will prompt the above issue, and then comfyui will handle the interruption

chflame163 commented 2 months ago

If the layer_image and layer_mask input sizes are inconsistent, the layer_mask input will be ignored. that for ImageBlendAdvance node.

If the image is large or when processing video frames, it will prompt the above issue, and then comfyui will handle the interruption

How large of images did you deal with? I tested 4k video frames is works fine.

meetedlike commented 2 months ago

The process is to remove the background from a 40 second video. If the video is any longer, it will interrupt the comfyui due to errors

1 2 3 4 5
chflame163 commented 2 months ago

Try change to other detail_method

meetedlike commented 2 months ago

I have tried both the first and second ones, but the same error occurred. The third one cannot be used. My own analysis feels that the maximum value was not considered enough when designing the program. I hope the author can make changes and test it when they have time, as they often process videos of about 1 minute ![Uploading 6.png…]()

chflame163 commented 2 months ago

Can you upload the video here? I will test it.

meetedlike commented 2 months ago

Sure, how can I send it to you, email or directly upload it here? Here are two tests for you to try image

chflame163 commented 2 months ago

Please send to chflame@163.com

meetedlike commented 2 months ago

Okay, I have sent you two test videos to your email

chflame163 commented 2 months ago

I used RmBgUltra V2 node to process video file result_2.mp4 , and set select_every_nth to 4 , that works fine.

微信图片_20240410115243
😺dzNodes: LayerStyle -> RmBgUltra V2 Processed 300 image(s).
Prompt executed in 599.27 seconds

https://github.com/chflame163/ComfyUI_LayerStyle/assets/130118553/8f6127c1-e933-4d92-ab29-d5fb434266ac