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

Error occurred when executing CLIPSeg: #6

Open
zhourunfaLi opened this issue Oct 28, 2023 · 2 comments
Open

Error occurred when executing CLIPSeg: #6

zhourunfaLi opened this issue Oct 28, 2023 · 2 comments

Comments

@zhourunfaLi
Copy link

Error occurred when executing CLIPSeg:

Failed to import transformers.models.vit.image_processing_vit because of the following error (look up to see its traceback):
A Message class can only inherit from Message

File "/content/drive/MyDrive/ComfyUI/execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/content/drive/MyDrive/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 "/content/drive/MyDrive/ComfyUI/execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/content/drive/MyDrive/ComfyUI/custom_nodes/clipseg.py", line 120, in segment_image
processor = CLIPSegProcessor.from_pretrained("CIDAS/clipseg-rd64-refined")
File "/usr/local/lib/python3.10/dist-packages/transformers/processing_utils.py", line 226, in from_pretrained
args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/transformers/processing_utils.py", line 268, in _get_arguments_from_pretrained
attribute_class = getattr(transformers_module, class_name)
File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1273, in getattr
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1272, in getattr
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1284, in _get_module
raise RuntimeError(

@zhourunfaLi
Copy link
Author

How can this problem be solved? Seek Assist

@YDBZ
Copy link

YDBZ commented Jun 14, 2024

How can this problem be solved? Seek Assist

سلام
1.ابتدا تمامی فایل های موجود در https://huggingface.co/CIDAS/clipseg-rd64-refined/tree/main را دانلود کنید
2.فایل model.safetensor را از محل https://huggingface.co/CatFlowerGames/clipseg-rd64-refined-cat/tree/main دانلود کنید
3.در محل نصب Comfyui_windows_portable یک پوشه به نام CIDAS و داخل آن پوشه ای دیگر به نام clipseg-rd64-refined را ایجاد کنید
4.تمامی فایل های دانلود شده را در این محل ذخیره کنید
comfyui_windows_portable > CIDAS > clipseg-rd64-refined
ان شاءالله مشکل حل شود

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