chflame163 / ComfyUI_LayerStyle

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

Slow running time for GetColorToneV2 for first time. #226

Open abhinavzspace opened 3 weeks ago

abhinavzspace commented 3 weeks ago

GetColorToneV2 seems to be very slow in serverless environment. Every time running for a fresh installation it seems to take a lot of time (around 15-30secs).

Screenshot 2024-08-22 at 1 04 58 PM

As you can see, I am just using mask and not even removing background.

Thanks

chflame163 commented 3 weeks ago

I would like to know the size of the input image?

abhinavzspace commented 3 weeks ago

charlotte_00001_ Around these sizes, not big. I create the mask around the face to get the skin tone.

chflame163 commented 3 weeks ago

I tested this image and it only took 0.23 seconds, Do you run so slowly in all times? 微信图片_20240822193803

abhinavzspace commented 3 weeks ago

It runs slow while running for the first time in new installation. Are you sure its not downloading anything automatically for the first run on the system, and afterwords just picks it up?

chflame163 commented 3 weeks ago

It runs slow while running for the first time in new installation. Are you sure its not downloading anything automatically for the first run on the system, and afterwords just picks it up?

Maybe,it has built-in segmentation background model, which may need to be downloaded for the first run

abhinavzspace commented 3 weeks ago

Thank you! Will look into it.