glucauze / sd-webui-faceswaplab

Extended faceswap extension for StableDiffusion web-ui with multiple faceswaps, inpainting, checkpoints, ....
https://glucauze.github.io/sd-webui-faceswaplab/
GNU Affero General Public License v3.0
715 stars 92 forks source link

Delay on install.py #75

Closed dhwz closed 11 months ago

dhwz commented 11 months ago

Hi @glucauze

I've found the root cause of the delay on install.py it's caused by loading the shared module.

https://github.com/glucauze/sd-webui-faceswaplab/blob/806086b5334e5bb86a9f634e833207858b31afd7/install.py#L11

Can we drop this cmdline arg check?

If I remove the Lines 11 to 13 delay drops from 4-5secs to 0.2secs

glucauze commented 11 months ago

Could be done, i'll check that when i have time. This would require refactoring the code a bit. Thanks for your feedback