amotile / stable-diffusion-studio

An animation focused workflow frontend for Stable Diffusion
MIT License
477 stars 31 forks source link

Access from local machine to remote AUTOMATIC1111 #22

Open autumnmotor opened 1 year ago

autumnmotor commented 1 year ago

I currently have a M1MacMini (16GB), but it is very difficult to run "SD" on this machine from a performance point of view. So I mainly use SD on the cloud service paperspace (https://www.paperspace.com/). This takes a long time to rebuild the machine each time, but the SD itself is very fast and I like it.

I want to connect stable-diffusion-studio to my SD on a machine on this cloud. It seems that the current implementation only fixes the connection to "http://localhost:7860". But in "automatic1111.ts" of stable-diffusion-backend used by stable-diffusion-studio,

const url="http://localhost:7860" Change this to const url = process.argv.length>2 ? process.argv[2] : "http://localhost:7860"

If you add a public URL issued on the cloud (such as "https://********.gradio.app") to the program argument,

npm start https://********.gradio.app

Even on a weak local machine, stable-diffusion-studio (or SD) wo that is assisted by high-speed machine power on the cloud can be used.

Are you willing to adopt these ideas?

Translated by Google. Thank you for reading my poor English.