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
763 stars 103 forks source link

Is this extension possible for using with API ? alwayson_scripts #11

Closed duoqbao closed 1 year ago

duoqbao commented 1 year ago

I checked out script-info by get from '/sdapi/v1/script-info'. I try to post to '/sdapi/v1/txt2image this with

alwayson_scripts: {
    faceswaplab: {
      args: args,
    },
  },

In processing FaceSwapLab not work.

glucauze commented 1 year ago

There's a dedicated API : https://github.com/glucauze/sd-webui-faceswaplab/blob/main/client_api/faceswaplab_api_example.py. I'm not sure that the basic API works well because of the large number of parameters. I'll look at it later.