Open bihailantian655 opened 5 months ago
The same question? The same worries. Is there a solution?
I have the same question, which folder should I put the model in?
I have the same question, which folder should I put the model in? unfortunately you can't models (re)downloading to /home/%user%/.cache/ each time you launch it
有人解决吗
改下代码,写本地路径 processor = CLIPSegProcessor.from_pretrained('path_to_clipseg_model’) model = CLIPSegForImageSegmentation.from_pretrained('path_to_clipseg_model’)
Loading 1 new model 100%|██████████| 24/24 [00:14<00:00, 1.63it/s] pytorch_model.bin: 2%|▏ | 12.6M/603M [04:18<3:22:01, 48.7kB/s] !!! Exception during processing !!! Traceback (most recent call last): File "H:\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "H:\ComfyUI\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "H:\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "H:\ComfyUI\ComfyUI\custom_nodes\clipseg.py", line 121, in segment_image model = CLIPSegForImageSegmentation.from_pretrained("CIDAS/clipseg-rd64-refined") File "H:\ComfyUI\python_embeded\lib\site-packages\transformers\modeling_utils.py", line 2222, in from_pretrained resolved_archive_file = cached_file( File "H:\ComfyUI\python_embeded\lib\site-packages\transformers\utils\hub.py", line 409, in cached_file resolved_file = hf_hub_download( File "H:\ComfyUI\python_embeded\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(args, **kwargs) File "H:\ComfyUI\python_embeded\lib\site-packages\huggingface_hub\file_download.py", line 1457, in hf_hub_download http_get( File "H:\ComfyUI\python_embeded\lib\site-packages\huggingface_hub\file_download.py", line 552, in http_get raise EnvironmentError( OSError: Consistency check failed: file should be of size 603143713 but has size 12608704 (pytorch_model.bin). We are sorry for the inconvenience. Please retry download and pass
force_download=True, resume_download=False
as argument. If the issue persists, please let us know by opening an issue on https://github.com/huggingface/huggingface_hub.i found the model in huggingface
https://huggingface.co/CIDAS/clipseg-rd64-refined/tree/main
but which directory should i put it in