datamint 2.18.2__tar.gz → 2.18.4__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.
- {datamint-2.18.2 → datamint-2.18.4}/PKG-INFO +1 -1
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/resource.py +2 -1
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/resources/dicom_resource.py +2 -2
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/resources/nifti_resource.py +3 -2
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/datamint_flavor.py +29 -19
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/model.py +1 -1
- {datamint-2.18.2 → datamint-2.18.4}/pyproject.toml +1 -1
- {datamint-2.18.2 → datamint-2.18.4}/README.md +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/__main__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/base_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/client.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/dto/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/dto/annotation_dto.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/annotations_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/annotationsets_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/channels_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/datasetsinfo_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/deploy_model_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/inference_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/models_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/projects_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/resources_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/endpoints/users_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/api/entity_base_api.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/client_cmd_tools/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/client_cmd_tools/datamint_config.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/client_cmd_tools/datamint_example.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/client_cmd_tools/datamint_inference.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/client_cmd_tools/datamint_init.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/client_cmd_tools/datamint_train.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/client_cmd_tools/datamint_upload.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/configs.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/annotation.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/annotation_processor.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/base.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/base_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/factory.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/image_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/multiframe_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/sliced_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/sliced_video_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/split_result.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/video_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/dataset/volume_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/default_project.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotation_worklist.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/annotation.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/annotation_spec.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/base_geometry.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/base_segmentation.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/box_annotation.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/geometry.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/image_classification.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/image_segmentation.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/line_annotation.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/types.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/annotations/volume_segmentation.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/base_entity.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/cache_manager.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/channel.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/datasetinfo.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/deployjob.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/inferencejob.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/project.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/project_resource_split.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/resources/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/resources/image_resource.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/resources/video_resource.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/resources/volume_resource.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/sliced_resource.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/sliced_resource_base.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/sliced_video_resource.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/entities/user.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/examples/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/examples/_common.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/examples/_download.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/examples/bccd_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/examples/busi_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/examples/example_projects.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/examples/fracatlas_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/examples/synapse_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/exceptions.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/datamodule.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/base_trainer.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/classification_trainer.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/detection_trainer.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/base.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/classification_module.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/detection_modules/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/detection_modules/yolox_module.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/segmentation_module.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/segmentation_modules/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/segmentation_modules/deeplabv3plus.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/segmentation_modules/smp_module.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/segmentation_modules/transunet.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/segmentation_modules/unetpp.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/segmentation_modules/unetrpp.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/seg2d_trainer.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/seg3d_trainer.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/segmentation_trainer.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/deeplabv3plus.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/efficientnetv2.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/_nnunet_trainer_bridge.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/data_export.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/data_import.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/inference_model.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/trainer.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/transunet.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/unetpp.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/unetrpp.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/yolox.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/vol_seg_trainer.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/logging.yaml +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/artifact/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/artifact/datamint_artifacts_repo.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/data/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/data/datamint_dataset.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/env_utils.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/env_vars.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/model_loader.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/model_parser.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/prediction_modes.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/prediction_router.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/task_type.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/flavors/validation.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/lightning/callbacks/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/lightning/callbacks/modelcheckpoint.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/models/__init__.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/models/datamint_model_store.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/store_utils.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/tracking/datamint_store.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/tracking/default_experiment.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/mlflow/tracking/fluent.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/types.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/utils/annotation_agreement.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/utils/collection_utils.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/utils/env.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/utils/logging_utils.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/utils/nifti_utils.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/utils/torchmetrics.py +0 -0
- {datamint-2.18.2 → datamint-2.18.4}/datamint/utils/visualization.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datamint
|
|
3
|
-
Version: 2.18.
|
|
3
|
+
Version: 2.18.4
|
|
4
4
|
Summary: A library for interacting with the Datamint API, designed for efficient data management, processing and Deep Learning workflows.
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -17,6 +17,7 @@ from .base_entity import BaseEntity, MISSING_FIELD
|
|
|
17
17
|
from .cache_manager import CacheManager
|
|
18
18
|
from datamint.api.base_api import BaseApi
|
|
19
19
|
from datamint.types import CacheMode
|
|
20
|
+
from medimgkit.nifti_utils import NIFTI_MIMES
|
|
20
21
|
|
|
21
22
|
if TYPE_CHECKING:
|
|
22
23
|
from datamint.api.endpoints.resources_api import ResourcesApi
|
|
@@ -153,7 +154,7 @@ class BaseResource(BaseEntity, ABC):
|
|
|
153
154
|
Returns:
|
|
154
155
|
True if the resource is a NIfTI file, False otherwise
|
|
155
156
|
"""
|
|
156
|
-
return self.mimetype in
|
|
157
|
+
return self.mimetype in NIFTI_MIMES
|
|
157
158
|
|
|
158
159
|
def is_video(self) -> bool:
|
|
159
160
|
"""Check if the resource is a video file.
|
|
@@ -11,8 +11,8 @@ class DICOMResource(VolumeResource):
|
|
|
11
11
|
resource_kind: ClassVar[str] = 'dicom'
|
|
12
12
|
resource_priority: ClassVar[int] = 50
|
|
13
13
|
storage_aliases: ClassVar[tuple[str, ...]] = ('DicomResource', 'DicomResourceHandler')
|
|
14
|
-
mimetypes: ClassVar[tuple[str, ...]] = ('application/dicom',)
|
|
15
|
-
filename_suffixes: ClassVar[tuple[str, ...]] = ('.dcm',)
|
|
14
|
+
mimetypes: ClassVar[tuple[str, ...]] = ('application/dicom', 'application/x-dicom')
|
|
15
|
+
filename_suffixes: ClassVar[tuple[str, ...]] = ('.dcm','.dicom')
|
|
16
16
|
|
|
17
17
|
@property
|
|
18
18
|
def uids(self) -> dict[str, str]:
|
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
from typing import ClassVar
|
|
4
4
|
|
|
5
5
|
from .volume_resource import VolumeResource
|
|
6
|
+
from medimgkit.nifti_utils import NIFTI_MIMES
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
class NiftiResource(VolumeResource):
|
|
@@ -11,10 +12,10 @@ class NiftiResource(VolumeResource):
|
|
|
11
12
|
resource_kind: ClassVar[str] = 'nifti'
|
|
12
13
|
resource_priority: ClassVar[int] = 50
|
|
13
14
|
storage_aliases: ClassVar[tuple[str, ...]] = ('NiftiResource', 'NiftiResourceHandler')
|
|
14
|
-
mimetypes: ClassVar[tuple[str, ...]] = (
|
|
15
|
+
mimetypes: ClassVar[tuple[str, ...]] = tuple(NIFTI_MIMES)
|
|
15
16
|
filename_suffixes: ClassVar[tuple[str, ...]] = ('.nii', '.nii.gz')
|
|
16
17
|
|
|
17
18
|
@property
|
|
18
19
|
def is_compressed(self) -> bool:
|
|
19
20
|
"""Whether the underlying NIfTI file is gzip-compressed."""
|
|
20
|
-
return self.filename.casefold().endswith('.nii.gz')
|
|
21
|
+
return self.filename.casefold().endswith('.nii.gz')
|
|
@@ -27,12 +27,15 @@ def _process_signature(signature: ModelSignature | None,
|
|
|
27
27
|
from mlflow.types import ParamSchema, ParamSpec
|
|
28
28
|
from mlflow.models.signature import _infer_signature_from_type_hints
|
|
29
29
|
|
|
30
|
-
# Define inference parameters
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
# Define inference parameters schema for BaseDatamintModel.predict()
|
|
31
|
+
# - mode (str): prediction mode to dispatch to (e.g. 'default', 'image', 'slice', etc.)
|
|
32
|
+
# - log_predictions (bool): whether to upload predictions as annotations to Datamint
|
|
33
|
+
# - model_name (str | None): name of the model used for tagging uploaded predictions
|
|
34
|
+
params_schema = ParamSchema([
|
|
35
|
+
ParamSpec("mode", "string", "default"),
|
|
36
|
+
ParamSpec("log_predictions", "boolean", False),
|
|
37
|
+
ParamSpec("model_name", "string", None),
|
|
38
|
+
])
|
|
36
39
|
|
|
37
40
|
if signature is None:
|
|
38
41
|
signature = _infer_signature_from_type_hints(
|
|
@@ -53,16 +56,26 @@ def _process_signature(signature: ModelSignature | None,
|
|
|
53
56
|
|
|
54
57
|
|
|
55
58
|
def _process_input_example(input_example: ModelInputExample | None) -> tuple[ModelInputExample | None, dict[str, Any]]:
|
|
56
|
-
|
|
57
|
-
logger.info('Processing input example is disabled for now')
|
|
58
|
-
raise NotImplementedError('Processing input example is disabled for now')
|
|
59
|
-
|
|
60
59
|
datamint_params = {
|
|
61
|
-
|
|
60
|
+
'mode': 'default',
|
|
61
|
+
'model_name': 'undefined_model_name',
|
|
62
|
+
'log_predictions': False
|
|
62
63
|
}
|
|
63
64
|
if input_example is None:
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
import datetime
|
|
66
|
+
|
|
67
|
+
input_resource = dict(
|
|
68
|
+
id='model_id',
|
|
69
|
+
storage='DicomResource',
|
|
70
|
+
filename='file.dcm',
|
|
71
|
+
location='private/location',
|
|
72
|
+
mimetype='application/dicom',
|
|
73
|
+
size=14724562,
|
|
74
|
+
status='inbox',
|
|
75
|
+
created_at=datetime.datetime.now().isoformat(),
|
|
76
|
+
created_by='user@mail.com',
|
|
77
|
+
modality='CT'
|
|
78
|
+
)
|
|
66
79
|
return [input_resource], datamint_params
|
|
67
80
|
if not isinstance(input_example, tuple):
|
|
68
81
|
return (input_example, datamint_params)
|
|
@@ -248,15 +261,12 @@ def save_model(datamint_model: BaseDatamintModel,
|
|
|
248
261
|
if hasattr(datamint_model, '_clear_linked_models_cache'):
|
|
249
262
|
datamint_model._clear_linked_models_cache()
|
|
250
263
|
|
|
251
|
-
|
|
252
|
-
signature = _process_signature(signature, datamint_model)
|
|
264
|
+
# signature = _process_signature(signature, datamint_model)
|
|
253
265
|
try:
|
|
254
266
|
input_example = _process_input_example(input_example)
|
|
255
|
-
except NotImplementedError:
|
|
256
|
-
input_example = None
|
|
257
267
|
except Exception as e:
|
|
258
|
-
logger.
|
|
259
|
-
|
|
268
|
+
logger.error(f"Failed to process input example. {e}")
|
|
269
|
+
raise
|
|
260
270
|
|
|
261
271
|
linked_models = datamint_model._get_linked_models_uri() if hasattr(datamint_model, '_get_linked_models_uri') else {}
|
|
262
272
|
resolved_task_type = task_type or getattr(datamint_model, 'task_type', None)
|
|
@@ -211,7 +211,7 @@ class BaseDatamintModel(PythonModel, ABC):
|
|
|
211
211
|
) -> PredictionResult:
|
|
212
212
|
"""Main prediction entry point.
|
|
213
213
|
|
|
214
|
-
Routes to the appropriate
|
|
214
|
+
Routes to the appropriate handlesr based on ``params['mode']``.
|
|
215
215
|
**Do not override** — implement :meth:`predict_default` (or other
|
|
216
216
|
``predict_*`` hooks) instead.
|
|
217
217
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "datamint"
|
|
3
3
|
description = "A library for interacting with the Datamint API, designed for efficient data management, processing and Deep Learning workflows."
|
|
4
|
-
version = "2.18.
|
|
4
|
+
version = "2.18.4"
|
|
5
5
|
dynamic = ["dependencies"]
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
7
|
readme = "README.md"
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/lightning_modules/__init__.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/deeplabv3plus.py
RENAMED
|
File without changes
|
{datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/efficientnetv2.py
RENAMED
|
File without changes
|
{datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/data_export.py
RENAMED
|
File without changes
|
{datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/data_import.py
RENAMED
|
File without changes
|
|
File without changes
|
{datamint-2.18.2 → datamint-2.18.4}/datamint/lightning/trainers/specialized/nnunet/trainer.py
RENAMED
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|