Git Product home page Git Product logo

Comments (7)

ana55e avatar ana55e commented on July 29, 2024 1

hi the fix is as follows: the empty latent image batch_size should be equal to sub_batch_size in layer diffuse deocde( RGBA)......here in your case.....you should change the empty latent image batch_size to 16 or change sub_batch_size in layer diffuse deocde( RGBA) to 1

from comfyui-layerdiffuse.

huchenlei avatar huchenlei commented on July 29, 2024

I don't think sub batch size is the issue. This tensor mismatch issue mostly comes from input image size don't match generation target size.

from comfyui-layerdiffuse.

Xiahussheng avatar Xiahussheng commented on July 29, 2024

hi the fix is as follows: the empty latent image batch_size should be equal to sub_batch_size in layer diffuse deocde( RGBA)......here in your case.....you should change the empty latent image batch_size to 16 or change sub_batch_size in layer diffuse deocde( RGBA) to 1


I changed sub_batch_size in layer diffuse deocde( RGBA) to 1,it didn't work, still have the same error .

from comfyui-layerdiffuse.

Xiahussheng avatar Xiahussheng commented on July 29, 2024

I don't think sub batch size is the issue. This tensor mismatch issue mostly comes from input image size don't match generation target size.


The size I filled in Empty Latent Image is the same as the size of the image I uploaded. And from the generation results, the image with gray background is normally generated, but the generation of transparent background is an error.

from comfyui-layerdiffuse.

huchenlei avatar huchenlei commented on July 29, 2024

Can you try to use https://github.com/layerdiffusion/sd-forge-layerdiffuse for the same task? I would like to know whether this issue is ComfyUI-only.

from comfyui-layerdiffuse.

YaseGar avatar YaseGar commented on July 29, 2024

i also got following error when try to run the example workflow:

ERROR:root:Traceback (most recent call last):
File "ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "ComfyUI\custom_nodes\ComfyUI-layerdiffusion\layered_diffusion.py", line 170, in decode
image, mask = super().decode(samples, images, sub_batch_size)
File "ComfyUI\custom_nodes\ComfyUI-layerdiffusion\layered_diffusion.py", line 127, in decode
self.vae_transparent_decoder = TransparentVAEDecoder(
File "ComfyUI\custom_nodes\ComfyUI-layerdiffusion\lib_layerdiffusion\models.py", line 241, in init
model = UNet1024(in_channels=3, out_channels=4)
File "python_embeded\lib\site-packages\diffusers\configuration_utils.py", line 636, in inner_init
init(self, *args, **init_kwargs)
File "ComfyUI\custom_nodes\ComfyUI-layerdiffusion\lib_layerdiffusion\models.py", line 130, in init
self.mid_block = UNetMidBlock2D(
TypeError: UNetMidBlock2D.init() got an unexpected keyword argument 'attn_groups'

from comfyui-layerdiffuse.

Xiahussheng avatar Xiahussheng commented on July 29, 2024

Can you try to use https://github.com/layerdiffusion/sd-forge-layerdiffuse for the same task? I would like to know whether this issue is ComfyUI-only.

yes , I've used it in webui forge and it works fine, but not in comfyui

from comfyui-layerdiffuse.

Related Issues (20)

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.