Skip to content

Commit

Permalink
Merge branch 'main' into demo-day-2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcornel authored Sep 3, 2024
2 parents 3b75e3f + d265217 commit ec1d92b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ feeling for use cases for the package.

## Installation
Using an environment manager such as
[Anaconda](https://www.anaconda.com/products/individual) or
[miniforge](https://github.com/conda-forge/miniforge) or
[venv](https://docs.python.org/3/library/venv.html) to create a new
Python environment before installing the Intel® Geti™ SDK and its requirements is
highly recommended.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ def __get_label_mapping(self, project: Project) -> Dict[str, str]:
label_name = label.name
project_label_name_to_label[label_name] = label

source_label_names = self.annotation_reader.get_all_label_names()
source_label_names = set(self.annotation_reader.get_all_label_names())
source_label_name_to_project_label_id: Dict[str, str] = {}
for source_label_name in source_label_names:
# We include the project label names in the mapping, as we want to ensure that
# we can match the labels from the source to the project labels.
for source_label_name in source_label_names.union(
project_label_name_to_label.keys()
):
if source_label_name in project_label_name_to_label:
label_id = project_label_name_to_label[source_label_name].id
elif (
Expand Down

0 comments on commit ec1d92b

Please sign in to comment.