bing-su / asdff Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
Line 71 in 8ac7245
I've noticed that there numpy used in places. Could we have a torch check to see if device is cuda, and to use torch instead of numpy when a gpu is available? This will greatly speed things up instead of using the cpu in these instances.
PyTorch supports both CPU and GPU acceleration, so an if statement probably wouldn't even be necessary.
After testing, the adetailer plug-in can make sdxl perform well on webui, but I want to use it in a script. Can this pipe support sdxl?Much appreciated.
Upgraded to Diffusers 0.23.1 and I get the following error. Not really sure what changed, maybe you have some insight? Much appreciated.
Traceback (most recent call last):
File "D:\diffusion-ai\main2.py", line 8, in <module>
from generation import shibiko_init, shibiko_create
File "D:\diffusion-ai\generation.py", line 10, in <module>
from asdff import AdPipeline
File "D:\diffusion-ai\.venv\lib\site-packages\asdff\__init__.py", line 2, in <
module>
from .sd import AdCnPipeline, AdPipeline
File "D:\diffusion-ai\.venv\lib\site-packages\asdff\sd.py", line 18, in <modul
e>
class AdPipeline(AdPipelineBase, StableDiffusionPipeline):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-s
trict) subclass of the metaclasses of all its bases
How to use asdff
aka ADetailer
with StableDiffusionXLPipeline
?
How to use the AdCnPipeline with inpainting?
I initialized the call as
pipe = AdCnPipeline.from_pretrained("stablediffusionapi/counterfeit-v30", torch_dtype=torch.float16, controlnet=controlnet)
but now how to activate inpainting?
In the UI, I was able to load my checkpoints and use it as main prompt. It works wonders.
Additionally, how do I design it so that it is similar to the A1111 workflow:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.