Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Onediff load error #1

Open
kakachiex2 opened this issue Jan 7, 2024 · 5 comments
Open

Onediff load error #1

kakachiex2 opened this issue Jan 7, 2024 · 5 comments

Comments

@kakachiex2
Copy link

I get this error wen instaled onediff

FileNotFoundError: [Errno 2] No such file or directory: 'K:\ComfyUI\ComfyUI\custom_nodes\onediff\init.py'

Cannot import K:\ComfyUI\ComfyUI\custom_nodes\onediff module for custom nodes: [Errno 2] No such file or directory: 'K:\ComfyUI\ComfyUI\custom_nodes\onediff\init.py'
Traceback (most recent call last):
File "K:\ComfyUI\ComfyUI\nodes.py", line 1800, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "K:\ComfyUI\ComfyUI\custom_nodes\onediff_comfy_nodes_init
.py", line 2, in
from ._config import USE_UNET_INT8
File "K:\ComfyUI\ComfyUI\custom_nodes\onediff_comfy_nodes_config.py", line 15, in
import register_comfy # load plugins
^^^^^^^^^^^^^^^^^^^^^
File "K:\ComfyUI\ComfyUI\custom_nodes\onediff_comfy_nodes\infer_compiler_registry\register_comfy_init
.py", line 1, in
from onediff.infer_compiler import register
ModuleNotFoundError: No module named 'onediff.infer_compiler'

Cannot import K:\ComfyUI\ComfyUI\custom_nodes\onediff_comfy_nodes module for custom nodes: No module named 'onediff.infer_compiler'

@kakachiex2
Copy link
Author

I follow the process and this is what I have in the nodes folder it is correct:
Screenshot 2024-01-06 235601

@kakachiex2
Copy link
Author

Were do I install the first onediff process

@sd2530615
Copy link

same error ,did you fixe it yet?

@leegang
Copy link

leegang commented Aug 1, 2024

同样的错误。

@leegang
Copy link

leegang commented Aug 1, 2024

知道原因了, 你可能是用 comfyUI CLI 安装的。

git clone https://github.com/siliconflow/onediff.git
cd onediff && pip install -e .
ln -s $(pwd)/onediff_comfy_nodes path/to/ComfyUI/custom_nodes/
# or
# cp -r onediff_comfy_nodes path/to/ComfyUI/custom_nodes/

用第二种方法就可以了。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants