sipherxyz / comfyui-art-venture

95 stars 27 forks source link

(IMPORT FAILED) ModuleNotFoundError: No module named 'segment_anything' #4

Open esqanor opened 7 months ago

esqanor commented 7 months ago

This error appears when trying to install. I'm new to comfyui, but I've tried everything I can find on the internet, nothing helps.

`Traceback (most recent call last): File "C:\SD\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1800, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture__init__.py", line 10, in from .modules.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\nodes.py", line 54, in from .inpaint import ( File "C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\inpaint__init__.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\inpaint\nodes.py", line 7, in from .sam.nodes import SAMLoader, GetSAMEmbedding, SAMEmbeddingToImage File "C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\inpaint\sam\nodes.py", line 5, in from segment_anything import SamPredictor, sam_model_registry ModuleNotFoundError: No module named 'segment_anything'

Cannot import C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture module for custom nodes: No module named 'segment_anything'`

patrickgalbraith commented 6 months ago

I had to manually install the below packages to get it to run (use the below if you're using the portable install):

.\python_embeded\python.exe -s -m pip install segment_anything
.\python_embeded\python.exe -s -m pip install omegaconf
maomao123-pcu commented 6 months ago
截屏2023-12-24 22 32 34

I have the same error as you, I have installed the dependencies but still not working,Does it have an answer?

Emirufio commented 6 months ago

I had to manually install the below packages to get it to run (use the below if you're using the portable install):

.\python_embeded\python.exe -s -m pip install segment_anything
.\python_embeded\python.exe -s -m pip install omegaconf

Hi can you explain me how to install manually those package I am a newbie Regards

jordanl61 commented 3 months ago

This worked! Thanks @patrickgalbraith