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

I'm having trouble running the StyleGAN nodes for ComfyUI! #5

Open
Lorenzoidal opened this issue Jul 10, 2024 · 3 comments
Open

I'm having trouble running the StyleGAN nodes for ComfyUI! #5

Lorenzoidal opened this issue Jul 10, 2024 · 3 comments

Comments

@Lorenzoidal
Copy link

Lorenzoidal commented Jul 10, 2024

I downloaded the nodes and installed them just fine, but when I try to run them I get the error:

"Error occurred when executing LoadStyleGAN:

No module named 'dnnlib.tflib'"

I have downloaded and installed the *.whl file here:

https://github.com/podgorskiy/dnnlib/releases/download/0.0.1/dnnlib-0.0.1-py3-none-any.whl

...But I still get the same error when I try to run those 3 nodes together, as seen in your screenshot.

Can you please help me? I would really, really appreciate it!!

Thanks,
~Loren

@spacepxl
Copy link
Owner

What model are you trying to use? Can you post the full error trace from the console?

@Lorenzoidal
Copy link
Author

Lorenzoidal commented Jul 25, 2024

Thank you for the response!

This happens no matter what StyleGAN model I try to use, whether it's trained on 2 or 3.

The nodes all install and load just fine, but when I run the queue in the standalone I get this error message in the console:

!!! Exception during processing!!! No module named 'dnnlib.tflib' Traceback (most recent call last): File "H:\ComfyUI_(07-08)\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "H:\ComfyUI_(07-08)\ComfyUI_windows_portable\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 "H:\ComfyUI_(07-08)\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "H:\ComfyUI_(07-08)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-StyleGan\nodes.py", line 43, in load_stylegan G = pickle.load(f)['G_ema'].cuda() ^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'dnnlib.tflib'

@Lorenzoidal
Copy link
Author

Sorry to bump this, but can you tell me what's going wrong, and how I might fix it? I would really love to be able to use this! 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

2 participants