Open xiantuan opened 8 months ago
Can you share your workflow and inputs? Thanks!
ComfyUI a38b9b3 2024-03-05 02:24:08 ComfyUI-layerdiffusion d7e0bbe
I also encountered the same error, please let me know if you have any solutions, thanks again
I also encountered the same error, please let me know if you have any solutions, thanks again
I suspect it was caused by me updating to the latest Comfyui version. Is this possible?
I also encountered the same error, please let me know if you have any solutions, thanks again我也遇到了同样的错误,请问有解决办法吗,再次感谢
I suspect it was caused by me updating to the latest Comfyui version. Is this possible?我怀疑是我更新到最新的 Comfyui 版本造成的。这可能吗?
Error occurred when executing KSampler:
tuple index out of range
File "/home/h3c/comfyui/ComfyUI/execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/home/h3c/comfyui/ComfyUI/execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/home/h3c/comfyui/ComfyUI/execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "/home/h3c/comfyui/ComfyUI/nodes.py", line 1299, in sample return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise) File "/home/h3c/comfyui/ComfyUI/nodes.py", line 1269, in common_ksampler samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, File "/home/h3c/comfyui/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/sampling.py", line 242, in motion_sample return orig_comfy_sample(model, noise, *args, *kwargs) File "/home/h3c/comfyui/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/sample_error_enhancer.py", line 9, in informative_sample return original_sample(args, kwargs) # This code helps interpret error messages that occur within exceptions but does not have any impact on other operations. File "/home/h3c/comfyui/ComfyUI/comfy/sample.py", line 93, in sample real_model, positive_copy, negative_copy, noise_mask, models = prepare_sampling(model, noise.shape, positive, negative, noise_mask) File "/home/h3c/comfyui/ComfyUI/comfy/sample.py", line 86, in prepare_sampling comfy.model_management.load_models_gpu([model] + models, model.memory_required([noise_shape[0] * 2] + list(noise_shape[1:])) + inference_memory) File "/home/h3c/comfyui/ComfyUI/comfy/model_management.py", line 410, in load_models_gpu cur_loaded_model = loaded_model.model_load(lowvram_model_memory) File "/home/h3c/comfyui/ComfyUI/comfy/model_management.py", line 293, in model_load raise e File "/home/h3c/comfyui/ComfyUI/comfy/model_management.py", line 289, in model_load self.real_model = self.model.patch_model(device_to=patch_model_to) #TODO: do something with loras and offloading to CPU File "/home/h3c/comfyui/ComfyUI/comfy/model_patcher.py", line 194, in patch_model out_weight = self.calculate_weight(self.patches[key], temp_weight, key).to(weight.dtype) File "/home/h3c/comfyui/ComfyUI/custom_nodes/ComfyUI-layerdiffusion-main/layered_diffusion.py", line 28, in calculate_weight weight = func(self, patches, weight, key) File "/home/h3c/comfyui/ComfyUI/comfy/model_patcher.py", line 282, in calculate_weight if v[2] is not None:
ComfyUI a38b9b3 2024-03-05 02:24:08 ComfyUI-layerdiffusion d7e0bbe
I tested your workflow. It seem to work fine in latest version of ComfyUI. In theory the decoded result should have 4 channels. I am going to add an assert message to that check so that we can know more.
layerdiffuse-test.json ComfyUI a38b9b3 2024-03-05 02:24:08 ComfyUI-layerdiffusion d7e0bbe
I tested your workflow. It seem to work fine in latest version of ComfyUI. In theory the decoded result should have 4 channels. I am going to add an assert message to that check so that we can know more.
I switched to comfyui - the cpu is fine Probably a torch-directml problem @xuyh1024
put your vae_transparent_decoder.safetensors in \model\layer_model\ ,not in \model\vae and restart comfyui
Hello everyone,
not really understanding how that thing works. So i've been following two tutorials on Youtube: https://www.youtube.com/watch?v=aPQ8gvTNCKM https://www.youtube.com/watch?v=tXO6SJ-6Eb8
I have pasted the needed files in the following folders:
Clip
Vae
Unet
Hers is the source of those files: https://openart.ai/workflows/maitruclam/comfyui-workflow-for-flux-simple/iuRdGnfzmTbOOzONIiVV
Comfy launch fine with : run_nvidia_gpu.bat
But once i click on Queue Prompt few errors popup:
or occurred when executing CheckpointLoaderSimple:
ERROR: Could not detect model type of: C:\Program Files\AI\ComfyUI_windows_portable\ComfyUI\models\checkpoints\flux1-schnell.safetensors
File "C:\Program Files\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\AI\ComfyUI_windows_portable\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 "C:\Program Files\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 518, in load_checkpoint out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\AI\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 513, in load_checkpoint_guess_config raise RuntimeError("ERROR: Could not detect model type of: {}".format(ckpt_path))
What am i missing? Thanks for your help.
I've founded how to make it work, replacing the files in the checkpoint folder (XXX:.......ComfyUI_windows_portable\ComfyUI\models\checkpoints).
I've founded.ckpt files on this website: https://stable-diffusion-art.com/models/
Now i have a new issue. The final result doesn't show what's describe in the prompt :)
Here are the the settings:
OS WIN10 python main.py --directml --lowvram ComfyUI caddef8 2024-03-04 22:03:59 ComfyUI-layerdiffusion 7c6f137
Error occurred when executing LayeredDiffusionDecode:
tuple index out of range
File "G:\AI\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "G:\AI\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 "G:\AI\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "G:\AI\ComfyUI\custom_nodes\ComfyUI-layerdiffusion\layered_diffusion.py", line 120, in decode pixel_with_alpha = self.vae_transparent_decoder.decode_pixel(pixel, latent) File "E:\ProgramData\Anaconda3\envs\AIGC\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args, **kwargs) File "G:\AI\ComfyUI\custom_nodes\ComfyUI-layerdiffusion\lib_layerdiffusion\models.py", line 300, in decode_pixel assert y.shape[1] == 4