Open yincangshiwei opened 2 months ago
same
I'll check this soon.
same problem
I wonder if it's related to this? https://github.com/facebookresearch/sam2/issues/172
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
same problem. It worked yesterday, but today, it does not work.
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
.
Here are some workarounds I can think of:
sam2
directory to something else like local_sam2
but then you have to change all the imports inside because sam2 source code references itself through sam2
rather than relative imports (not sure why)
Updating ComfyUI version to V2.50.3 resulted in a startup error for Sam2.