Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

No module named 'custom_nodes.facerestore_cf' (ComfyUI Desktop) #29

Open
Ryxx opened this issue Dec 22, 2024 · 0 comments
Open

No module named 'custom_nodes.facerestore_cf' (ComfyUI Desktop) #29

Ryxx opened this issue Dec 22, 2024 · 0 comments

Comments

@Ryxx
Copy link

Ryxx commented Dec 22, 2024

Hello,

I'm using ComfyUI Desktop version. By default, it installs itself in Appdata.

I noticed that if I git clone Facerestore_CF inside the following folder, it works correctly:
"C:\Users\Utilisateur\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes"

But I chose to have another location for my "user" folders (.venv, custom_nodes, input, models, output, user, uv-cache). For example, mine is in:
"L:\COMFY UI\ComfyUI\custom_nodes"

And I'm getting this error:

Traceback (most recent call last):
  File "C:\Users\Utilisateur\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\nodes.py", line 2072, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "L:\COMFY UI\ComfyUI\custom_nodes/facerestore_cf\__init__.py", line 8, in <module>
    from custom_nodes.facerestore_cf.facelib.utils.face_restoration_helper import FaceRestoreHelper
ModuleNotFoundError: No module named 'custom_nodes.facerestore_cf'

Cannot import L:\COMFY UI\ComfyUI\custom_nodes/facerestore_cf module for custom nodes: No module named 'custom_nodes.facerestore_cf'

I guess the code doesn't handle the user's custom paths.
Would be it possible to update that part, so I can put it with the rest of the custom_nodes (and avoid putting anything in Appdata)?

Thanks.

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

No branches or pull requests

1 participant