huchenlei / sd-forge-ic-light

A1111/SD Forge extension for IC-Light
Apache License 2.0
190 stars 5 forks source link

Performance Optimization: Background Removal seriously affects image generation speed #20

Open hben35096 opened 3 months ago

hben35096 commented 3 months ago

Hello, I encountered a problem when using: Without Background Removal, the image generation time is 2.8 seconds;

After enabling the "Background Removal" option, the image generation time is 24 seconds, and it consistently takes 23-24 seconds for each generation.

PixPin_2024-06-04_01-02-16

Is it possible to use the results in the cache after generating a transparent image, like in ComfyUI? A new transparent image will only be regenerated if a new image is uploaded.

hben35096 commented 3 months ago

Perhaps we can do it this way: there could be an option that, when enabled, allows the transparent image generated by Background Removal to be displayed in the image generation window. I can download it and then upload it again. This way, we won't have to add the 21-second background removal process every time an image is generated.

huchenlei commented 3 months ago

The image with grey background can also be used as input if you don't check the background removal checkbox.

hben35096 commented 3 months ago

The image with grey background can also be used as input if you don't check the background removal checkbox.

thank you for your reply 3F3DC2AC