neverbiasu / ComfyUI-SAM2

A ComfyUI extension for Segment-Anything 2
72 stars 13 forks source link

No module named 'sam2.build_sam' #20

Open yincangshiwei opened 2 months ago

yincangshiwei commented 2 months ago

Updating ComfyUI version to V2.50.3 resulted in a startup error for Sam2. image

rocing commented 1 month ago

same

neverbiasu commented 1 month ago

I'll check this soon.

Summerbbk commented 1 month ago

same problem

subtera745 commented 1 month ago

I wonder if it's related to this? https://github.com/facebookresearch/sam2/issues/172

EmmanuelMr18 commented 2 weeks ago

Same problem here.

After debugging, I was able to find that this an error that sometimes happens and sometimes not. I have the same custom nodes installed, and occasionally when starting comfyUI works, and others just don't

Philmar1986 commented 2 weeks ago

same problem. It worked yesterday, but today, it does not work.

vojtajina commented 11 hours ago

I believe the issue is python is trying to load different sam2 module. Likely there is a conflict with another ComfyUI package, for instance ComfyUI_LayerStyle also has sam2 but without build_sam.

vojtajina commented 11 hours ago

Here are some workarounds I can think of: