From 3fd7e09d6d0c6c04c5f6b7ed7924d29dae458e29 Mon Sep 17 00:00:00 2001 From: Balthasar Huber Date: Wed, 28 Aug 2024 10:01:23 +0200 Subject: [PATCH] Feat: Multi-label support (#320) * fix doc and add multilabel * pump version * change descr as well * access safely --- roboflow/__init__.py | 2 +- roboflow/core/project.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roboflow/__init__.py b/roboflow/__init__.py index 6aa41104..ad2972ba 100644 --- a/roboflow/__init__.py +++ b/roboflow/__init__.py @@ -15,7 +15,7 @@ from roboflow.models import CLIPModel, GazeModel # noqa: F401 from roboflow.util.general import write_line -__version__ = "1.1.43" +__version__ = "1.1.44" def check_key(api_key, model, notebook, num_retries=0): diff --git a/roboflow/core/project.py b/roboflow/core/project.py index 1448d205..b7e66c0f 100644 --- a/roboflow/core/project.py +++ b/roboflow/core/project.py @@ -44,7 +44,7 @@ def __init__(self, api_key: str, a_project: dict, model_format: Optional[str] = Args: api_key (str): private roboflow api key - a_project (str): the project id + a_project (dict): the project information dictionary model_format (str): the model format of the project Example: @@ -67,6 +67,7 @@ def __init__(self, api_key: str, a_project: dict, model_format: Optional[str] = self.public = a_project["public"] self.splits = a_project["splits"] self.type = a_project["type"] + self.multilabel = a_project.get("multilabel", False) self.unannotated = a_project["unannotated"] self.updated = datetime.datetime.fromtimestamp(a_project["updated"]) self.model_format = model_format