scepter icon indicating copy to clipboard operation
scepter copied to clipboard

Module scepter renamed to ComfyUI-Scepter but...

Open ffdown opened this issue 10 months ago • 7 comments

Skip X:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Scepter module for custom nodes due to the lack of NODE_CLASS_MAPPINGS. 0.0 seconds (IMPORT FAILED): X:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Scepter

ffdown avatar Mar 01 '25 09:03 ffdown

Please make sure init.py is complete. Image

yaosheng216 avatar Mar 03 '25 01:03 yaosheng216

I have the same error. Python 3.10.15 as you recommended in another section @yaosheng216. ComfyUI is installed completely from scratch via conda, taking into account all dependencies.

During the installation of scepter dependencies via pip install-e . I received the following warning, maybe this will help me find a solution: DEPRECATION: Legacy editable install of scepter==1.4.0 from file:///E:/SD/ComfyUI/custom_nodes/scepter (setup.py develop) is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457

deniaud avatar Mar 04 '25 06:03 deniaud

@yaosheng216 Is the latest version of PyTorch supported? I noticed that in recommended.txt you specify the version of torch==2.4.1. Maybe this is the problem?

deniaud avatar Mar 04 '25 06:03 deniaud

Skip X:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Scepter module for custom nodes due to the lack of NODE_CLASS_MAPPINGS. 0.0 seconds (IMPORT FAILED): X:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Scepter

Please make sure init.py is complete. Image

The reason for the error is that ComfyUI tries to load default init.py which is located in the root folder of scepter, although it needs to load init.py from the scepter/scepter/workflow folder

deniaud avatar Mar 04 '25 07:03 deniaud

@whitepapercg Hi, please refer to the following to link. For ComfyUI configuration reasons, you need to move the scepter/scepter/workflow to the ComfyUI/custom_nodes/ComfyUI-Scepter folder and then start the ComfyUI. https://github.com/modelscope/scepter?tab=readme-ov-file#%EF%B8%8F%EF%B8%8F-comfyui-workflow

yaosheng216 avatar Mar 04 '25 08:03 yaosheng216

@whitepapercg Hi, please refer to the following to link. For ComfyUI configuration reasons, you need to move the scepter/scepter/workflow to the ComfyUI/custom_nodes/ComfyUI-Scepter folder and then start the ComfyUI. https://github.com/modelscope/scepter?tab=readme-ov-file#%EF%B8%8F%EF%B8%8F-comfyui-workflow

Hi, thank you! Managed to run after replacing all Chinese characters in config files (my system does not support Chinese). Are there any recommended repainting_scale values for local-editing? Judging by your examples with local-editing, the value should be 0.

For all, if u have this error: [Error]: Load yaml from custom_nodes/ComfyUI-Scepter/config/mantra.yaml error. Message: 'charmap' codec can't decode byte 0x98 in position 16349: character maps to

Solution: You need to remove characters that are not supported by your system from the config files "mantra" and "tuner_model"

deniaud avatar Mar 04 '25 09:03 deniaud

@whitepapercg You can refer this workflow to set repainting_scale value. https://openart.ai/workflows/whale_waterlogged_60/scepter-ace-local-editing-universal-editing/VqBDhqDt2LJnXYQj6DDT

yaosheng216 avatar Mar 05 '25 01:03 yaosheng216