Comments (7)
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.
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.
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.
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.
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.
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.
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)
- LayeredDiffusionCondJointApply error HOT 1
- Error occurred when executing LayeredDiffusionCondApply HOT 4
- [Bug]: Using the latest diffusers 0.27.2, your plugin will cause a lot of deprecation warnings. HOT 1
- Can generate no problem first que prompt, but after que again, it will have error HOT 3
- [Bug]: Fail to import node after comfyui update HOT 2
- [Bug]: The Picture Generated through foreground_to_blend is blur and dark
- bug
- Is there a tutorial for how to use the layerdiffuse json file in python? HOT 1
- [Bug]: !!! Exception during processing!!! 1024
- Please modify the deprecated API to the recommended version
- How can I use layer diffusion with pose controlnet?
- [Bug]: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! HOT 1
- Can I use my fine-tuned SDXL model with generating imgs from text prompts with transparent backgrounds using layerdiffuse? HOT 1
- [Bug]: Conflict with for_testing/attention_experiments
- No module named 'diffusers.models.unet_2d_blocks' HOT 1
- "Excuse me, what did I do wrong? I don't want this picture.
- [2024-3-9] Generate BG+Blended Given FG" workflow cannot run properly HOT 1
- No module named 'diffusers.models.unet_2d_blocks' Successfully installed diffusers-0.29.0
- When used with the ipadapter, the image cannot be extracted
- LayerDiffusion LayeredDiffusionDecodeRGBA error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comfyui-layerdiffuse.