-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Public Backend API #654
Public Backend API #654
Conversation
Looks like you've accidentally pushed the packaged CoreML backend in 47118a0 |
Should be fixed now. |
Basic image generation is working. Here's a list of features that need to be tested/updated:
|
I just tried to test this tool, I have "automatic1111" server running on 127.0.0.1:7860 (working via web-interface), but on the "Dream" panel in Blender I see only "Huggingface Diffusers" backend and no available models… (I'm on Debian Linux) |
This PR doesn’t add an Automatic1111 backend, it just makes it possible for one to be created in the future. Contributions for new backends would be welcome once this is merged! |
So you dont plan to use ckpt/safetensors files, but rather allow for other backend? Is there performance loss with those types? Or just too much refactoring? I've read a few posts & was curious. I had dreamtexture installed on last pc but have yet to dive back in on new setup, im glad you're still progressing & its looking great, blender is by far my favorite app. It'd be nice to use our model files from automatic1111, but regardless Dreamtextures stands on its own without it. I am fine with the two being separate, its simple enough to jump back & forth between them with stuff. But you're showing such great & deeper integrations its very tempting! I imagine blender official will get in on the ai stuff too, its all still fast moving but at some point you might get some official specialized blender api stuff to work with too. Im keeping an eye out for when they start talking more ai. |
* Basic SDXL support * Add support for the refiner model * Upgrade diffusers revision * Use auto pipeline for SDXL and any other t2i models * Use auto pipeline for ControlNet * Use auto pipeline for image to image * Support depth_to_image task with new model loading * Use auto pipeline for inpaint
@macronomicus Diffusers added a new |
I'll take a crack at adding |
* variant download * fix half precision and sdxl offloading * load from correct downloaded variant * update importing and fix imported model loading * legacy fp16 revision loading * reimplement cached model invalidation * fix controlnet downloading and variant loading * load from checkpoint * fix checkpoint loading after killing backend * ControlNet import and linking * half precision saving and show import progress * cache multiple models and controlnet * scheduler loading and more schedulers * fix unhashable checkpoint
Co-authored-by: NullSenseStudio <[email protected]>
Co-authored-by: NullSenseStudio <[email protected]>
Co-authored-by: NullSenseStudio <[email protected]>
Co-authored-by: NullSenseStudio <[email protected]>
Co-authored-by: NullSenseStudio <[email protected]>
Took a bit more than I thought to fix VAE tiling. It's a bit of a mess with how it's juggling the image between torch and numpy, but it's functional for now. I'll get that in better order soon since I have some changes planned for VAE tiling. Outpainting sort of works, but the outpainted regions remain black. Seems to be caused by changes made to the inpaint pipeline. You can color a portion of an image then mark that area for inpainting, and it will still resemble that color after inpainting now. |
Could the |
That was it! |
Has nobody implemented an A1111 backend yet? I can't find any mentions of it existing but considering it's been a year now since the backend API and A1111 is the most popular way to use stable diffusion, I'd assume someone would have implemented it by now. If not, I can try to implement it myself but I thought I might ask here before wasting my time. |
@TimWolfram As far as I know, no one has built an A1111 backend yet. But I'd be happy to answer any questions you have if you build one. |
Closes #604
The API is slightly different than it that issue. You can see an example of a backend in
diffusers_backend.py
, which is the default Dream Textures backend.A backend could be as simple as a single file Blender add-on, so I'm considering adding a folder to this repo to contain scripts for additional backends that would be maintained by different community members. This could contain backends for sources like Automatic1111, DreamStudio, InvokeAI, StableHorde, etc.