Coder Social home page Coder Social logo

asdff's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asdff's Issues

Checks to see if CUDA is in use, to then use torch instead of numpy.

bboxes = pred[0].boxes.xyxy.cpu().numpy()

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.

How to use asdff with SDXL?

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.

Face gets darker and I don't think the hands are being detected.

So the face oddly gets darker when using the pipeline and I don't notice hands getting fixed like in a11. How do I adjust it so the face isn't so dark.any way to focus on what we are selecting? Like face only, hands only, etc. Are there any models to change how the eyes are generated? Thanks!

With After Detailer
Without After Detailer

Metaclass Conflict with Diffusers 0.23.1

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

AdCnPipeline with inpainting

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?

How do you load textual inversion checkpoints on this?

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:

  1. I generate an image with StableDiffusionPipeline
  2. Send the image to adetailer with prompt that uses textual inversion token
  3. It outputs a refined image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.