chflame163 / ComfyUI_LayerStyle

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
MIT License
676 stars 33 forks source link

There was a problem running the "LayerUtility: LaMa" node #76

Closed grinlau18 closed 2 months ago

grinlau18 commented 2 months ago

Error occurred when executing LayerUtility: LaMa:

cannot import name 'LCMScheduler' from 'diffusers' (/root/miniconda3/lib/python3.10/site-packages/diffusers/init.py)

File "/root/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/root/ComfyUI/execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/root/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/lama.py", line 95, in lama cli.run(model=lama_model, device=device, image=Path(image_dir), mask=Path(mask_dir), output=Path(result_dir)) File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/cli.py", line 81, in run from .download import cli_download_model, scan_models File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/download.py", line 18, in from .model.original_sd_configs import get_config_files File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/model/init.py", line 1, in from .anytext.anytext_model import AnyText File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/model/anytext/anytext_model.py", line 5, in from ...model.anytext.anytext_pipeline import AnyTextPipeline File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/model/anytext/anytext_pipeline.py", line 10, in from ...model.utils import set_seed File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/model/utils.py", line 12, in from diffusers import (

What is the cause of the above problem when running the "LayerUtility: LaMa" node?

chflame163 commented 2 months ago

Try update the diffusers package to newer version.