diff --git a/darwin/client.py b/darwin/client.py index 2f8819257..f0a66b588 100644 --- a/darwin/client.py +++ b/darwin/client.py @@ -1503,7 +1503,9 @@ def get_team_properties( team_slug=team_slug or self.default_team, ) - def create_property(self, team_slug: Optional[str], params: Union[FullProperty, JSONDict]) -> FullProperty: + def create_property( + self, team_slug: Optional[str], params: Union[FullProperty, JSONDict] + ) -> FullProperty: darwin_config = DarwinConfig.from_old(self.config) future_client = ClientCore(darwin_config) @@ -1513,7 +1515,9 @@ def create_property(self, team_slug: Optional[str], params: Union[FullProperty, params=params, ) - def update_property(self, team_slug: Optional[str], params: Union[FullProperty, JSONDict]) -> FullProperty: + def update_property( + self, team_slug: Optional[str], params: Union[FullProperty, JSONDict] + ) -> FullProperty: darwin_config = DarwinConfig.from_old(self.config) future_client = ClientCore(darwin_config) @@ -1521,4 +1525,4 @@ def update_property(self, team_slug: Optional[str], params: Union[FullProperty, client=future_client, team_slug=team_slug or self.default_team, params=params, - ) \ No newline at end of file + ) diff --git a/darwin/torch/dataset.py b/darwin/torch/dataset.py index 84231ab55..b98592e0c 100644 --- a/darwin/torch/dataset.py +++ b/darwin/torch/dataset.py @@ -342,6 +342,7 @@ def get_target(self, index: int) -> Dict[str, Any]: annotation.data[path_key], height=target["height"], width=target["width"], + rounding=False, ) # Compute the bbox of the polygon x_coords = [s[0::2] for s in sequences] diff --git a/darwin/utils/utils.py b/darwin/utils/utils.py index 951d6fbcd..dccd60682 100644 --- a/darwin/utils/utils.py +++ b/darwin/utils/utils.py @@ -1027,7 +1027,9 @@ def _parse_annotators(annotators: List[Dict[str, Any]]) -> List[dt.AnnotationAut ] -def _parse_properties(properties: List[Dict[str, Any]]) -> Optional[List[SelectedProperty]]: +def _parse_properties( + properties: List[Dict[str, Any]] +) -> Optional[List[SelectedProperty]]: selected_properties = [] for property in properties: selected_properties.append(