storyicon / comfyui_segment_anything

Based on GroundingDino and SAM, use semantic strings to segment any element in an image. The comfyui version of sd-webui-segment-anything.
Apache License 2.0
676 stars 78 forks source link

(IMPORT FAILED) segment anything #49

Open jameslanman opened 7 months ago

jameslanman commented 7 months ago

I wanted to document an issue with installing SAM in ComfyUI. Using the node manager, the import fails. I attempted the basic restarts, refreshes, etc. Attempted an update of ComfyUI - still no dice. Is the issue regarding running on CPU?

M1 Max 32 GB of memory Ventura

bkutasi commented 7 months ago

Same. I get the following error:

RuntimeError: Failed to import transformers.models.bert.modeling_bert because of the following error (look up to see its traceback):
'FieldInfo' object has no attribute 'required'