zhaobenny / bz-cogs

Interesting cogs for Red Bot
MIT License
23 stars 14 forks source link

[aimage] Remote setup #47

Closed QuentinJ54 closed 1 month ago

QuentinJ54 commented 1 month ago

Good morning,

I have my bot which is on Docker and my Stable Diffusion which is on a remote computer, how can I make the link between the two? I added the "--api -listen" parameters, however with these it deactivates the API /sdapi/v1/txt2img.

zhaobenny commented 1 month ago

--api --listen shouldn't deactivate the API on the Automatic1111 instance..?

Is the Redbot instance and Automatic1111 instance on the same host? If not, you'll need to some additional networking.

QuentinJ54 commented 1 month ago

it activates the API but the /sdapi/v1/txt2img part is missing

zhaobenny commented 1 month ago

http://127.0.0.1:7860/docs#/default/text2imgapi_sdapi_v1_txt2img_post

you don't have this? are you on the latest version of Automatic1111?

QuentinJ54 commented 1 month ago

When I put the parameter --api it is present but if I add --listend it is no longer available.. It is possible that this function is not available for remote equipment?

zhaobenny commented 1 month ago

the A1111 doc for --listen is https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings#:~:text=Running%20within%20Local%20Area%20Network

If the cog works without it, I guess you dont need it?

QuentinJ54 commented 1 month ago

my bot is located on another machine so it is necessary for me to make Stable Diffusion accessible remotely for contact using the --listend option

zhaobenny commented 1 month ago

Make sure you are setting your command line arguments properly for A1111?

Else, try asking in the Automatic1111 repo for better assistance

QuentinJ54 commented 1 month ago

Okay, thank you for your time and help