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
757 stars 84 forks source link

Error occurred when executing GroundingDinoModelLoader (segment anything): #78

Open CrazyIpMaster opened 4 months ago

CrazyIpMaster commented 4 months ago

Hello author, how to solve the following problem?

Error occurred when executing GroundingDinoModelLoader (segment anything):

File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\custom_nodes\comfyui_segment_anything\node.py", line 286, in main dino_model = load_groundingdino_model(model_name) File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\custom_nodes\comfyui_segment_anything\node.py", line 117, in load_groundingdino_model get_local_filepath( File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\custom_nodes\comfyui_segment_anything\node.py", line 111, in get_local_filepath download_url_to_file(url, destination) File "", line 28, in download_url_to_file_wrapper_inner File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\python\lib\site-packages\torch\hub.py", line 620, in download_url_to_file u = urlopen(req) File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\python\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\python\lib\urllib\request.py", line 519, in open response = self._open(req, data) File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\python\lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\python\lib\urllib\request.py", line 496, in _call_chain result = func(args) File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\python\lib\urllib\request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, File "D:\ComfyUI-aki\ComfyUI-aki-v1.1\python\lib\urllib\request.py", line 1351, in do_open raise URLError(err)