Open Hellowiiin opened 3 months ago
same error
I got the same error after installing the plugin today. I checked the source code and found that some files were damaged or incomplete. My problem was that the face_yolov8n.pt model in the models\ultralytics\ directory was an old version. So I renamed the old version and downloaded the new version of the model that AdvancedLivePortrait needed to use and put it in this directory.
Error occurred when executing ExpressionEditor:
PytorchStreamReader failed reading zip archive: failed finding central directory
File "D:\SD_ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI\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:\SD_ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait\nodes.py", line 868, in run self.psi = g_engine.prepare_source(src_image, crop_factor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait\nodes.py", line 344, in prepare_source crop_region = self.detect_face(img_rgb, crop_factor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait\nodes.py", line 221, in detect_face bboxes = self.get_face_bboxes(image_rgb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait\nodes.py", line 216, in get_face_bboxes detect_model = self.get_detect_model() ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait\nodes.py", line 211, in get_detect_model self.detect_model = YOLO(model_path) ^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI.ext\Lib\site-packages\ultralytics\engine\model.py", line 134, in init self._load(model, task=task) File "D:\SD_ComfyUI.ext\Lib\site-packages\ultralytics\engine\model.py", line 215, in _load self.model, self.ckpt = attempt_load_one_weight(weights) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI.ext\Lib\site-packages\ultralytics\nn\tasks.py", line 709, in attempt_load_one_weight ckpt, weight = torch_safe_load(weight) # load ckpt ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI.ext\Lib\site-packages\ultralytics\nn\tasks.py", line 634, in torch_safe_load ckpt = torch.load(file, map_location="cpu") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI.ext\Lib\site-packages\torch\serialization.py", line 993, in load with _open_zipfile_reader(opened_file) as opened_zipfile: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SD_ComfyUI.ext\Lib\site-packages\torch\serialization.py", line 447, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^