Задать вопрос
@Makdon

Непонимание ошибки yolo8?

Недавно я начал пробовать обучить модель yolo8 для своих целей но к сожелению не могу понять суть ошибки.

c:\Users\M&M's\Documents\Po pythony\Ai\Vid>"C:/Users/M&M's/AppData/Local/Programs/Python/Python313/python.exe" "c:/Users/M&M's/Documents/Po pythony/Ai/Vid/Goomno.py"
Ошибка загрузки: PytorchStreamReader failed reading zip archive: failed finding central directory
Traceback (most recent call last):
File "c:\Users\M&M's\Documents\Po pythony\Ai\Vid\Goomno.py", line 70, in
torch.load("yolov8n.pt")
~~~~~~~~~~^^^^^^^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\serialization.py", line 1491, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\serialization.py", line 771, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\M&M's\Documents\Po pythony\Ai\Vid\Goomno.py", line 75, in
YOLO("yolov8n.pt").export(format="onnx")
~~~~^^^^^^^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\ultralytics\models\yolo\model.py", line 81, in __init__
super().__init__(model=model, task=task, verbose=verbose)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\ultralytics\engine\model.py", line 151, in __init__
self._load(model, task=task)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\ultralytics\engine\model.py", line 295, in _load
self.model, self.ckpt = attempt_load_one_weight(weights)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\ultralytics\nn\tasks.py",
line 1549, in attempt_load_one_weight
ckpt, weight = torch_safe_load(weight) # load ckpt
~~~~~~~~~~~~~~~^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\ultralytics\nn\tasks.py",
line 1447, in torch_safe_load
ckpt = torch_load(file, map_location="cpu")
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\ultralytics\utils\patches.py", line 118, in torch_load
return torch.load(*args, **kwargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\serialization.py", line 1491, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\M&M's\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\serialization.py", line 771, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
  • Вопрос задан
  • 31 просмотр
Подписаться 1 Простой 2 комментария
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы