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.
- {samgis_core-1.1.0 → samgis_core-1.1.1}/PKG-INFO +1 -1
- {samgis_core-1.1.0 → samgis_core-1.1.1}/pyproject.toml +2 -2
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/prediction_api/sam_onnx.py +7 -1
- {samgis_core-1.1.0 → samgis_core-1.1.1}/README.md +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/__init__.py +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/__version__.py +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/prediction_api/__init__.py +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/utilities/__init__.py +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/utilities/constants.py +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/utilities/fastapi_logger.py +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/utilities/serialize.py +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/utilities/type_hints.py +0 -0
- {samgis_core-1.1.0 → samgis_core-1.1.1}/samgis_core/utilities/utilities.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "samgis_core"
|
3
|
-
version = "1.1.
|
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.
|
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
|
360
|
+
embedding_dict: embedding images dict
|
355
361
|
|
356
362
|
Returns:
|
357
363
|
raster prediction mask, prediction number
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|