YOLOv8 custom model upload error

I get the following error when trying to upload a custom model

rf = Roboflow(api_key="***")

print(rf.workspace())

project = rf.workspace("***").project("***")
version = project.version(1)

version.deploy("yolov8", "J:/RookieAI/Model/weights", "best.pt")
loading Roboflow workspace...
loading Roboflow project...
Traceback (most recent call last):
  File "E:\My_PycharmProjects\Yolov8_text\setup.py", line 12, in <module>
    version.deploy("yolov8", "J:/RookieAI/Model/weights", "best.pt")
  File "E:\My_PycharmProjects\Yolov8_text\Python_3.9_YOLOv8\lib\site-packages\roboflow\core\version.py", line 484, in deploy
    if isinstance(model["model"].names, list):
AttributeError: 'NoneType' object has no attribute 'names'

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.