Giter Site home page Giter Site logo

attention-couple-comfyui's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @laksjdjf
  • ๐Ÿ‘€ Iโ€™m interested in machine learning
  • ๐ŸŒฑ Iโ€™m currently learning generative ai
  • ๐Ÿ“ซ How to reach me: you can find me in ๐Ÿ—พ

attention-couple-comfyui's People

Contributors

laksjdjf avatar

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

Watchers

 avatar  avatar

attention-couple-comfyui's Issues

Example workflow results in exception

When running the example workflow with the base SD 1.5 checkpoint there is an exception.

  File "/Users/jrabek/work/ComfyUI/comfy/ldm/modules/attention.py", line 463, in _forward
    n = attn2_replace_patch[block_attn2](n, context_attn2, value_attn2, extra_options)
  File "/Users/jrabek/work/ComfyUI/custom_nodes/attention-couple-ComfyUI/attention_couple.py", line 109, in patch
    q_uncond, q_cond = q.chunk(2) # uncond, condใฎๅˆ†ๅ‰ฒ

ValueError: not enough values to unpack (expected 2, got 1)

Note that I did have to change device="cuda" to the following for it to work on a Mac M1

from comfy.model_management import (    
    get_torch_device_name,
    get_torch_device
)
 
  ...

       device = get_torch_device_name(get_torch_device())

masking

hey @laksjdjf when working on the mask for the IPAdapter I had the same idea of doing a dedicated node ๐Ÿ˜„ Glad you had the same idea and actually did it!

did you see how I resize the mask on the IPAdapter? https://github.com/cubiq/ComfyUI_IPAdapter_plus/blob/main/IPAdapterPlus.py#L279

I'm not 100% sure it covers all the cases but I believe it's more flexible and allows any mask size. Maybe can be improved with a for/else statement.

Keep up the great work, you are a true hero ๐Ÿ˜„

PS: do you want me to write the English doc for this?

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.