Bing-su / adetailer

Auto detecting, masking and inpainting with detection model.
GNU Affero General Public License v3.0
4.15k stars 317 forks source link

Can I use adetailers magic directly from the command line? #467

Closed derRaab closed 9 months ago

derRaab commented 9 months ago

Question

Hi! I'm a total python, stable diffusion, docker and runpod serverless noob, but during the last two month I managed to implement automatic lora training and image generation using the stable diffusion scripts from https://github.com/kohya-ss/sd-scripts .

After some research and suggestions I think I need to use adetailer to fix hands and faces, but this seems to be meant as a web-ui plugin only? I found https://github.com/Bing-su/adetailer/wiki/API and this also suggests dependencies to web-ui?

So my question is: Is it even possible to let adetailer do it's magic directly form the command line? Or do you suggest something different?

derRaab commented 9 months ago

After digging deeper I'm quite certain it is better to fire up a webui setup and use it's API. https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API

ai1361720220000 commented 6 months ago

Question

Hi! I'm a total python, stable diffusion, docker and runpod serverless noob, but during the last two month I managed to implement automatic lora training and image generation using the stable diffusion scripts from https://github.com/kohya-ss/sd-scripts .

After some research and suggestions I think I need to use adetailer to fix hands and faces, but this seems to be meant as a web-ui plugin only? I found https://github.com/Bing-su/adetailer/wiki/API and this also suggests dependencies to web-ui?

So my question is: Is it even possible to let adetailer do it's magic directly form the command line? Or do you suggest something different?

Have you succeed in running adetailer using python? I meet the same issue and need to fix the face in python script during postprocess.