samgis_core 1.1.0__tar.gz → 1.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: samgis_core
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: SamGIS CORE
5
5
  License: MIT
6
6
  Author: alessandro trinca tornidor
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "samgis_core"
3
- version = "1.1.0"
3
+ version = "1.1.1"
4
4
  description = "SamGIS CORE"
5
5
  authors = ["alessandro trinca tornidor <alessandro@trinca.tornidor.com>"]
6
6
  license = "MIT license"
@@ -8,7 +8,7 @@ readme = "README.md"
8
8
 
9
9
  [metadata]
10
10
  name = "samgis_core"
11
- version = "1.0.8"
11
+ version = "1.1.1"
12
12
 
13
13
  [tool.poetry.dependencies]
14
14
  numpy = "1.25.2"
@@ -197,6 +197,12 @@ class SegmentAnythingONNX:
197
197
  def encode(self, cv_image: ndarray) -> EmbeddingImage:
198
198
  """
199
199
  Calculate embedding and metadata for a single image.
200
+
201
+ Args:
202
+ cv_image: input image to embed
203
+
204
+ Returns:
205
+ embedding image dict useful to store and cache image embeddings
200
206
  """
201
207
  original_size = cv_image.shape[:2]
202
208
 
@@ -351,7 +357,7 @@ def get_raster_inference_with_embedding_from_dict(
351
357
  models_instance: SegmentAnythingONNX instance model
352
358
  model_name: model name string
353
359
  embedding_key: embedding id
354
- embedding_dict: embedding dict object
360
+ embedding_dict: embedding images dict
355
361
 
356
362
  Returns:
357
363
  raster prediction mask, prediction number
File without changes