LykosAI / StabilityMatrix

Multi-Platform Package Manager for Stable Diffusion
https://lykos.ai
GNU Affero General Public License v3.0
4.85k stars 314 forks source link

Preprocessors Fail To Download #632

Open 4pointoh opened 6 months ago

4pointoh commented 6 months ago

Hello, I've done 3 fresh installs of Stability Matrix but cannot seem to get the Preprocessors to function. For example, if I select the "Anime Face SemSeg Preprocessor" I get the following error. Most other preprocessors (except for a few) also give a similar error to this around the file not being found.

I figured maybe I need to download these myself, so I went and downloaded this one which is available here: https://github.com/siyeong0/Anime-Face-Segmentation

However upon putting it in the path mentioned in the error, it still does not work. I believe this is because something is looking for a file of the name UNet.pth.96c2a509b3eb1b2083b5384bbc30808dc205f370c513ee930e644edc0ea4688d.incomplete however the actual file is just UNet.pth.

Is there anywhere I can stick this UNet.pth to bypass this error? It seems like it may have been corrupted and failed to downloaded, however like I said, I re-installed Stability Matrix 3 times and have been very careful to ensure all downloads get completed.

{
  "prompt_id": "69711554-9411-4765-873b-a0cf5fa14291",
  "node_id": "Preprocessor",
  "node_type": "Inference_Core_AIO_Preprocessor",
  "executed": [],
  "exception_message": "[Errno 2] No such file or directory: \u0027E:\\\\Stability\\\\Data\\\\Packages\\\\ComfyUI\\\\custom_nodes\\\\ComfyUI-Inference-Core-Nodes\\\\src\\\\inference_core_nodes\\\\controlnet_preprocessors\\\\ckpts\\\\bdsqlsz\\\\qinglong_controlnet-lllite\\\\.huggingface\\\\download\\\\Annotators\\\\UNet.pth.96c2a509b3eb1b2083b5384bbc30808dc205f370c513ee930e644edc0ea4688d.incomplete\u0027",
  "exception_type": "FileNotFoundError",
  "traceback": [
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\execution.py\u0022, line 151, in recursive_execute\n    output_data, output_ui = get_output_data(obj, input_data_all)\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\execution.py\u0022, line 81, in get_output_data\n    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\execution.py\u0022, line 74, in map_node_over_list\n    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\custom_nodes\\ComfyUI-Inference-Core-Nodes\\src\\inference_core_nodes\\controlnet_preprocessors\\__init__.py\u0022, line 113, in execute\n    return getattr(aux_class(), aux_class.FUNCTION)(**params)\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\custom_nodes\\ComfyUI-Inference-Core-Nodes\\src\\inference_core_nodes\\controlnet_preprocessors\\node_wrappers\\anime_face_segment.py\u0022, line 30, in execute\n    model = AnimeFaceSegmentor.from_pretrained().to(model_management.get_torch_device())\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\custom_nodes\\ComfyUI-Inference-Core-Nodes\\src\\inference_core_nodes\\controlnet_preprocessors\\src\\controlnet_aux\\anime_face_segment\\__init__.py\u0022, line 21, in from_pretrained\n    model_path = custom_hf_download(pretrained_model_or_path, filename, subfolder=\u0022Annotators\u0022)\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\custom_nodes\\ComfyUI-Inference-Core-Nodes\\src\\inference_core_nodes\\controlnet_preprocessors\\src\\controlnet_aux\\util.py\u0022, line 264, in custom_hf_download\n    model_path = hf_hub_download(repo_id=pretrained_model_or_path,\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\venv\\lib\\site-packages\\huggingface_hub\\utils\\_validators.py\u0022, line 114, in _inner_fn\n    return fn(*args, **kwargs)\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\venv\\lib\\site-packages\\huggingface_hub\\file_download.py\u0022, line 1202, in hf_hub_download\n    return _hf_hub_download_to_local_dir(\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\venv\\lib\\site-packages\\huggingface_hub\\file_download.py\u0022, line 1487, in _hf_hub_download_to_local_dir\n    _download_to_tmp_and_move(\n",
    "  File \u0022E:\\Stability\\Data\\Packages\\ComfyUI\\venv\\lib\\site-packages\\huggingface_hub\\file_download.py\u0022, line 1872, in _download_to_tmp_and_move\n    with incomplete_path.open(\u0022ab\u0022) as f:\n",
    "  File \u0022pathlib.py\u0022, line 1119, in open\n"
  ],
  "current_inputs": {
    "image": [
      "tensor([[[[0.4118, 0.3412, 0.2980],\n          [0.4157, 0.3451, 0.2824],\n          [0.4118, 0.3412, 0.2784],\n          ...,\n          [0.2941, 0.2157, 0.1686],\n          [0.3020, 0.2157, 0.1725],\n          [0.3020, 0.2196, 0.1843]],\n\n         [[0.4157, 0.3373, 0.2863],\n          [0.4078, 0.3412, 0.2824],\n          [0.4118, 0.3451, 0.2863],\n          ...,\n          [0.2941, 0.2196, 0.1686],\n          [0.2941, 0.2078, 0.1608],\n          [0.3020, 0.2196, 0.1647]],\n\n         [[0.4118, 0.3412, 0.2824],\n          [0.4118, 0.3412, 0.2863],\n          [0.4157, 0.3490, 0.2863],\n          ...,\n          [0.2902, 0.2196, 0.1686],\n          [0.2902, 0.2118, 0.1608],\n          [0.2980, 0.2196, 0.1647]],\n\n         ...,\n\n         [[0.5804, 0.5373, 0.4824],\n          [0.5765, 0.5333, 0.4863],\n          [0.5765, 0.5333, 0.4824],\n          ...,\n          [0.6392, 0.6000, 0.5569],\n          [0.6392, 0.5961, 0.5569],\n          [0.6431, 0.5961, 0.5608]],\n\n         [[0.5804, 0.5373, 0.4863],\n          [0.5765, 0.5373, 0.4902],\n          [0.5804, 0.5373, 0.4863],\n          ...,\n          [0.6392, 0.6000, 0.5529],\n          [0.6392, 0.5961, 0.5529],\n          [0.6392, 0.5922, 0.5608]],\n\n         [[0.5804, 0.5333, 0.5020],\n          [0.5804, 0.5373, 0.4863],\n          [0.5843, 0.5373, 0.4863],\n          ...,\n          [0.6392, 0.5922, 0.5569],\n          [0.6431, 0.5922, 0.5569],\n          [0.6314, 0.5961, 0.5647]]]])"
    ],
    "preprocessor": [
      "AnimeFace_SemSegPreprocessor"
    ],
    "resolution": [
      1064
    ]
  },
  "current_outputs": {
    "Preprocessor_LoadImage": [
      [
        "tensor([[[[0.4118, 0.3412, 0.2980],\n          [0.4157, 0.3451, 0.2824],\n          [0.4118, 0.3412, 0.2784],\n          ...,\n          [0.2941, 0.2157, 0.1686],\n          [0.3020, 0.2157, 0.1725],\n          [0.3020, 0.2196, 0.1843]],\n\n         [[0.4157, 0.3373, 0.2863],\n          [0.4078, 0.3412, 0.2824],\n          [0.4118, 0.3451, 0.2863],\n          ...,\n          [0.2941, 0.2196, 0.1686],\n          [0.2941, 0.2078, 0.1608],\n          [0.3020, 0.2196, 0.1647]],\n\n         [[0.4118, 0.3412, 0.2824],\n          [0.4118, 0.3412, 0.2863],\n          [0.4157, 0.3490, 0.2863],\n          ...,\n          [0.2902, 0.2196, 0.1686],\n          [0.2902, 0.2118, 0.1608],\n          [0.2980, 0.2196, 0.1647]],\n\n         ...,\n\n         [[0.5804, 0.5373, 0.4824],\n          [0.5765, 0.5333, 0.4863],\n          [0.5765, 0.5333, 0.4824],\n          ...,\n          [0.6392, 0.6000, 0.5569],\n          [0.6392, 0.5961, 0.5569],\n          [0.6431, 0.5961, 0.5608]],\n\n         [[0.5804, 0.5373, 0.4863],\n          [0.5765, 0.5373, 0.4902],\n          [0.5804, 0.5373, 0.4863],\n          ...,\n          [0.6392, 0.6000, 0.5529],\n          [0.6392, 0.5961, 0.5529],\n          [0.6392, 0.5922, 0.5608]],\n\n         [[0.5804, 0.5333, 0.5020],\n          [0.5804, 0.5373, 0.4863],\n          [0.5843, 0.5373, 0.4863],\n          ...,\n          [0.6392, 0.5922, 0.5569],\n          [0.6431, 0.5922, 0.5569],\n          [0.6314, 0.5961, 0.5647]]]])"
      ],
      [
        "tensor([[[0., 0., 0.,  ..., 0., 0., 0.],\n         [0., 0., 0.,  ..., 0., 0., 0.],\n         [0., 0., 0.,  ..., 0., 0., 0.],\n         ...,\n         [0., 0., 0.,  ..., 0., 0., 0.],\n         [0., 0., 0.,  ..., 0., 0., 0.],\n         [0., 0., 0.,  ..., 0., 0., 0.]]])"
      ]
    ]
  }
}
github-actions[bot] commented 5 months ago

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.

4pointoh commented 5 months ago

still happens

HellboundGlory commented 4 months ago

Can confirm I too am having the same issue on the latest update