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

Mask by Text Clipseg error #17

Open
formulake opened this issue Dec 1, 2023 · 7 comments
Open

Mask by Text Clipseg error #17

formulake opened this issue Dec 1, 2023 · 7 comments

Comments

@formulake
Copy link

While trying to generate masks using mask to text I get the error "No module named 'clipseg.clipseg'; 'clipseg' is not a package"
Here's the full tetx:

Error occurred when executing Mask By Text:
No module named 'clipseg.clipseg'; 'clipseg' is not a package
File "F:\Tools\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "F:\Tools\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "F:\Tools\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "F:\Tools\ComfyUI\custom_nodes\masquerade-nodes-comfyui\MaskNodes.py", line 136, in get_mask
model = self.load_model()
File "F:\Tools\ComfyUI\custom_nodes\masquerade-nodes-comfyui\MaskNodes.py", line 183, in load_model
from clipseg.clipseg import CLIPDensePredT

I've tried creating the clipseg folder in my models directory and added the model files there but the same error recurs. I thought my nodes might be set up incorrectly so I used the inpaint-faces.json to run the workflow but it stalls at the same point. What am I missing?

@ttulttul
Copy link

ttulttul commented Dec 5, 2023

I am seeing this as well.

@ttulttul
Copy link

ttulttul commented Dec 5, 2023

The weird thing is that I can execute "from clipseg.clipseg import CLIPDensePredT" just fine in a fresh Python interpreter.

@rlfms
Copy link

rlfms commented Dec 8, 2023

Same issue here

@ErnieAllen
Copy link

Same

1 similar comment
@DoctorDevMan
Copy link

Same

@thesomeotherguy
Copy link

thesomeotherguy commented Jan 11, 2024

cd <your_path_to>\ComfyUI_windows_portable\python_embeded

./python.exe -m pip install clipseg

Go to \Lib\site-packages\clipseg\

create blank file named: __init__.py

source: 1, 2.

@kakachiex2
Copy link

Same problem here I did the clipseg install and add the init.py dont work same errors

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

7 participants