sd-webui-segment-anything icon indicating copy to clipboard operation
sd-webui-segment-anything copied to clipboard

ERROR:can't use the extension

Open GoldenDog1218 opened this issue 2 years ago • 1 comments

sd version:226d840 Error loading script: api.py Traceback (most recent call last): File "Y:\stable-diffusion-webui_23-03-10\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "Y:\stable-diffusion-webui_23-03-10\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "Y:\stable-diffusion-webui_23-03-10\extensions\sd-webui-segment-anything\scripts\api.py", line 9, in from scripts.sam import init_sam_model, dilate_mask, sam_predict, sam_model_list File "Y:\stable-diffusion-webui_23-03-10\extensions\sd-webui-segment-anything\scripts\sam.py", line 17, in from segment_anything import SamPredictor, sam_model_registry ModuleNotFoundError: No module named 'segment_anything'

Error loading script: sam.py Traceback (most recent call last): File "Y:\stable-diffusion-webui_23-03-10\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "Y:\stable-diffusion-webui_23-03-10\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "Y:\stable-diffusion-webui_23-03-10\extensions\sd-webui-segment-anything\scripts\sam.py", line 17, in from segment_anything import SamPredictor, sam_model_registry ModuleNotFoundError: No module named 'segment_anything'

GoldenDog1218 avatar Apr 22 '23 02:04 GoldenDog1218

This can happen because your Python mirror does not have segment_anything. Please ‘pip install segment_anything’ manually. Remember to install to your UI environment

continue-revolution avatar Apr 22 '23 08:04 continue-revolution