Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to Automatic1111's implementation as back end? #9

Open
mikebind opened this issue Sep 23, 2022 · 8 comments
Open

Connect to Automatic1111's implementation as back end? #9

mikebind opened this issue Sep 23, 2022 · 8 comments

Comments

@mikebind
Copy link

I've been successfully running stable diffusion locally using Automatic1111's webui (https://github.com/AUTOMATIC1111/stable-diffusion-webui) and wanted to try your front end (which looks cool). So, I already have the weights downloaded and have tinkered with things like textual inversion which generate additional embedding models. When I try to run UnstableFusion, I am asked for a huggingface token, which I imagine means you are going to download the model weights again. Is there a way to just point your code at the weights I already have? Or, better yet, is there a way to treat Automatic's implementation as a backend hosted on localhost? There is all kinds of innovation which has been implemented there (increasing/decreasing attention, prompt switching partway through generation, etc) which it would be great to be able to take advantage of while still using your nice innovations on the front end.

@TheSeanLavery
Copy link

Would really like this too. There is so much happening with SD, I don't want to have like 10 projects, each requiring a huge model file.

@ahrm
Copy link
Owner

ahrm commented Sep 23, 2022

Well our project uses the default SD installation that you would have if you run almost any other notebook. It is webui that is doing its own thing.

@TheSeanLavery
Copy link

I'm trying to run this without using my Hugging face info.

Is there a simple way I can do so?

I'm using some non standard trained weights of SD.

@ahrm
Copy link
Owner

ahrm commented Sep 23, 2022

You could run a your own server locally which handles /generate, /inpaint, and /reimagine post requests with the appropriate response. (See diffusionserver.py for an example). It is not going to be straightforward though.

@ndemar
Copy link

ndemar commented Sep 23, 2022

We would like to run this locally. Our internal hardware has the overhead and goes 90% idle while waiting for a queue.

@codefaux
Copy link
Contributor

For the record, Windows users can create NTFS Junctions (like a symlink) to use one model file in multiple locations, using the mklink command from an elevated command prompt.

I'm using it to run for separate Stable Diffusion interfaces which don't use the official downloader, and I only use one copy of the SD model, GAN networks etc. It takes up nearly no extra space since it's a symlink.

@ZeroCool22
Copy link

ZeroCool22 commented Sep 23, 2022

For the record, Windows users can create NTFS Junctions (like a symlink) to use one model file in multiple locations, using the mklink command from an elevated command prompt.

I'm using it to run for separate Stable Diffusion interfaces which don't use the official downloader, and I only use one copy of the SD model, GAN networks etc. It takes up nearly no extra space since it's a symlink.

A very convenient Symlink Creator with GUI: https://github.com/amd989/Symlinker

687474703a2f2f616c656a616e64726f2e6d642f7075626c6973682f53796d6c696e6b65722f73637265656e73686f742e6a7067

Using it since a long time, works great.

@y0himba
Copy link

y0himba commented Sep 28, 2022

For the record, Windows users can create NTFS Junctions (like a symlink) to use one model file in multiple locations, using the mklink command from an elevated command prompt.
I'm using it to run for separate Stable Diffusion interfaces which don't use the official downloader, and I only use one copy of the SD model, GAN networks etc. It takes up nearly no extra space since it's a symlink.

A very convenient Symlink Creator with GUI: https://github.com/amd989/Symlinker

687474703a2f2f616c656a616e64726f2e6d642f7075626c6973682f53796d6c696e6b65722f73637265656e73686f742e6a7067

Using it since a long time, works great.

Can you define 'Link Folder', what to name the link, then 'Destination folder' and type of link? I'd like to use the models this way since I use multiple UIs for different features. I'm trying to understand what each field means so I can create Symlinks.

Can I link to files on other physical drives? Sorry, I'm old and a newb at the same time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants