We have a ball_model.pt file that we are trying to upload to Roboflow to use for label assist for annotations labeling a ball in an image.
print(roboflow.__version__)
> 1.1.63
rf = Roboflow(api_key=KEY)
workspace = rf.workspace(WORKSPACE)
workspace.deploy_model(
model_type="yolov8",
model_path="pytorch_models/",
model_name="ball_model",
project_ids=["our-project-id"],
filename="ball_model.pt"
)
and continuing to get this error
File ~/.pyenv/versions/3.11.0/lib/python3.11/site-packages/roboflow/core/workspace.py:594, in Workspace.deploy_model(self, model_type, model_path, project_ids, model_name, filename)
591 raise ValueError("At least one project ID must be provided")
593 # Validate if provided project URLs belong to user's projects
--> 594 user_projects = set(project.split("/")[-1] for project in self.projects())
595 for project_id in project_ids:
596 if project_id not in user_projects:
File ~/.pyenv/versions/3.11.0/lib/python3.11/site-packages/roboflow/core/workspace.py:65, in Workspace.projects(self)
63 projects_array = []
64 for a_project in self.project_list:
---> 65 proj = Project(self.__api_key, a_project, self.model_format)
66 projects_array.append(proj.id)
68 return projects_array
File ~/.pyenv/versions/3.11.0/lib/python3.11/site-packages/roboflow/core/project.py:63, in Project.__init__(self, api_key, a_project, model_format)
61 if api_key:
62 self.__api_key = api_key
---> 63 self.annotation = a_project["annotation"]
64 self.classes = a_project["classes"]
65 self.colors = a_project["colors"]
KeyError: 'annotation'
Our project with this ID does exist in this workspace
Our project has a dataset
Our project has a version
Our project has a roboflow Instant model that we cannot seem to delete?
Is this a common issue? How can we troubleshoot further why we cannot upload our .pt
model?