datamint 2.45.0__tar.gz → 2.46.0a1__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.45.0 → datamint-2.46.0a1}/PKG-INFO +2 -2
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/tracking/fluent.py +49 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/pyproject.toml +2 -2
- {datamint-2.45.0 → datamint-2.46.0a1}/README.md +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/__main__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/_repr_utils.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/base_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/client.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/dto/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/dto/annotation_dto.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/dto/inference_prompts.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/dto/save_results_options.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/annotations_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/annotationsets_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/datasetsinfo_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/deploy_model_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/inference_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/model_types.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/models_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/pod_logs_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/projects_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/resources_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/users_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/endpoints/validation_studies_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/api/entity_base_api.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/datamint_config.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/datamint_download.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/datamint_example.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/datamint_import.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/datamint_inference.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/datamint_init.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/datamint_train.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/client_cmd_tools/datamint_upload.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/configs.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/annotation_processor.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/base.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/factory.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/image_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/multiframe_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/sliced_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/sliced_video_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/split_result.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/video_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/dataset/volume_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/default_project.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotation_worklist.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/annotation_spec.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/base_geometry.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/base_segmentation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/box_annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/category_annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/geometry.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/image_classification.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/image_segmentation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/label_annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/line_annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/numeric_annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/point_annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/region_annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/text_annotation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/types.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/annotations/volume_segmentation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/base_entity.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/buildlog.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/cache_manager.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/channel.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/datasetinfo.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/deployjob.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/inferencejob.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/pod.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/project.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/project_resource_split.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/resource.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/resources/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/resources/dicom_resource.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/resources/image_resource.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/resources/nifti_resource.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/resources/video_resource.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/resources/volume_resource.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/sliced_resource.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/sliced_resource_base.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/sliced_video_resource.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/user.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/entities/validation_study.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/evaluate/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/evaluate/evaluator.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/evaluate/metrics/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/evaluate/metrics/classification.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/evaluate/metrics/detection.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/evaluate/metrics/segmentation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/examples/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/examples/_common.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/examples/_download.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/examples/bccd_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/examples/busi_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/examples/example_projects.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/examples/fracatlas_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/examples/synapse_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/exceptions.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/importers/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/importers/_common.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/importers/_detect.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/importers/coco.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/importers/pascal_voc.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/importers/yolo.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/benchmark.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/datamodule.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/base_trainer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/classification_trainer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/detection_trainer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/base.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/classification_module.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/detection_modules/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/detection_modules/yolox_module.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/segmentation_module.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/segmentation_modules/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/segmentation_modules/deeplabv3plus.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/segmentation_modules/smp_module.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/segmentation_modules/transunet.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/segmentation_modules/unetpp.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/lightning_modules/segmentation_modules/unetrpp.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/seg2d_trainer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/seg3d_trainer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/segmentation_trainer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/deeplabv3plus.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/efficientnetv2.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/_nnunet_trainer_bridge.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/data_export.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/data_import.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/inference_model.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/trainer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/transunet.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/unetpp.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/unetrpp.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/yolox.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/vol_seg_trainer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/logging.yaml +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/artifact/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/artifact/datamint_artifacts_repo.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/data/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/data/datamint_dataset.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/env_utils.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/env_vars.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/annotation_specs.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/datamint_flavor.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/model.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/model_loader.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/model_parser.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/prediction_modes.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/prediction_router.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/task_type.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/flavors/validation.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/lightning/callbacks/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/lightning/callbacks/modelcheckpoint.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/models/Dockerfile.template +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/models/__init__.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/models/datamint_model_store.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/models/docker_build.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/models/local_inference.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/models/serve.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/models/tags.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/store_utils.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/tracking/datamint_store.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/tracking/default_experiment.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/tracking/offline_buffer.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/types.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/annotation_agreement.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/collection_utils.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/date_utils.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/env.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/logging_utils.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/nifti_utils.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/torchmetrics.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/uncertainty.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/urls.py +0 -0
- {datamint-2.45.0 → datamint-2.46.0a1}/datamint/utils/visualization.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datamint
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.46.0a1
|
|
4
4
|
Summary: A library for interacting with the Datamint API, designed for efficient data management, processing and Deep Learning workflows.
|
|
5
5
|
Keywords: medical-imaging,dicom,nifti,pytorch,mlflow,lightning,datasets,annotation
|
|
6
6
|
Author: SonanceAI
|
|
@@ -39,7 +39,7 @@ Requires-Dist: lazy-loader (>=0.3.0)
|
|
|
39
39
|
Requires-Dist: lightning[extra] (>=2.5.6)
|
|
40
40
|
Requires-Dist: matplotlib
|
|
41
41
|
Requires-Dist: medimgkit (>=0.17.0)
|
|
42
|
-
Requires-Dist: mlflow
|
|
42
|
+
Requires-Dist: mlflow (==3.17.2)
|
|
43
43
|
Requires-Dist: nest-asyncio (>=1.0.0,<2.0.0)
|
|
44
44
|
Requires-Dist: nibabel (>=4.0.0)
|
|
45
45
|
Requires-Dist: nnunetv2 (>=2.4,<3.0) ; extra == "nnunet"
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
import os
|
|
3
3
|
import threading
|
|
4
|
+
import uuid
|
|
4
5
|
from typing import TYPE_CHECKING
|
|
5
6
|
|
|
7
|
+
import mlflow
|
|
8
|
+
|
|
6
9
|
from datamint import Api
|
|
7
10
|
from datamint.exceptions import ItemNotFoundError
|
|
8
11
|
from datamint.mlflow.env_utils import ensure_mlflow_configured
|
|
@@ -17,6 +20,10 @@ _LOGGER = logging.getLogger(__name__)
|
|
|
17
20
|
_ACTIVE_PROJECT_ID: str | None = None
|
|
18
21
|
_ACTIVE_PROJECT_NAME: str | None = None
|
|
19
22
|
|
|
23
|
+
#: MLflow workspace that holds a Datamint project: ``proj-<canonical uuid>``.
|
|
24
|
+
#: Both client and server canonicalise the id through ``uuid.UUID``.
|
|
25
|
+
PROJECT_WORKSPACE_PREFIX = 'proj-'
|
|
26
|
+
|
|
20
27
|
|
|
21
28
|
def get_active_project_id() -> str | None:
|
|
22
29
|
"""
|
|
@@ -77,6 +84,30 @@ def _get_project_by_name_or_id(project_name_or_id: str) -> 'Project':
|
|
|
77
84
|
return project
|
|
78
85
|
|
|
79
86
|
|
|
87
|
+
def bind_project_workspace(project_id: str) -> str:
|
|
88
|
+
"""Bind the MLflow workspace that holds *project_id*, returning its name.
|
|
89
|
+
|
|
90
|
+
The id is canonicalised through :class:`uuid.UUID` to match the server's
|
|
91
|
+
``proj-<uuid>`` naming.
|
|
92
|
+
|
|
93
|
+
Raises:
|
|
94
|
+
ValueError: If *project_id* is not a UUID.
|
|
95
|
+
"""
|
|
96
|
+
try:
|
|
97
|
+
workspace = f'{PROJECT_WORKSPACE_PREFIX}{uuid.UUID(str(project_id))}'
|
|
98
|
+
except ValueError as exc:
|
|
99
|
+
raise ValueError(f'Datamint project id {project_id!r} is not a UUID.') from exc
|
|
100
|
+
mlflow.set_workspace(workspace)
|
|
101
|
+
_LOGGER.debug('Bound MLflow workspace %s', workspace)
|
|
102
|
+
return workspace
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def release_project_workspace() -> None:
|
|
106
|
+
"""Release the bound MLflow workspace so no project context leaks further."""
|
|
107
|
+
mlflow.set_workspace(None)
|
|
108
|
+
_LOGGER.debug('Released the MLflow workspace binding')
|
|
109
|
+
|
|
110
|
+
|
|
80
111
|
def set_project(project: 'Project | str'):
|
|
81
112
|
"""
|
|
82
113
|
Set the active project for the current session.
|
|
@@ -84,8 +115,18 @@ def set_project(project: 'Project | str'):
|
|
|
84
115
|
The project's name also becomes the default MLflow experiment name for
|
|
85
116
|
any run started without an explicit experiment (see `DatamintExperimentProvider`).
|
|
86
117
|
|
|
118
|
+
The matching MLflow workspace (``proj-<project uuid>``) is bound as well, so
|
|
119
|
+
every tracking, registry and artifact call is scoped to the project instead
|
|
120
|
+
of the reserved ``default`` workspace.
|
|
121
|
+
|
|
87
122
|
Args:
|
|
88
123
|
project: The Project instance or project name/ID to set as active.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
The resolved Project instance.
|
|
127
|
+
|
|
128
|
+
Raises:
|
|
129
|
+
ValueError: If the resolved project's id is not a UUID.
|
|
89
130
|
"""
|
|
90
131
|
global _ACTIVE_PROJECT_ID, _ACTIVE_PROJECT_NAME
|
|
91
132
|
|
|
@@ -96,6 +137,10 @@ def set_project(project: 'Project | str'):
|
|
|
96
137
|
if isinstance(project, str):
|
|
97
138
|
project = _get_project_by_name_or_id(project)
|
|
98
139
|
|
|
140
|
+
# Validate and bind before mutating state: an invalid id must not leave
|
|
141
|
+
# the process pointing at a project whose workspace cannot be addressed.
|
|
142
|
+
bind_project_workspace(project.id)
|
|
143
|
+
|
|
99
144
|
_ACTIVE_PROJECT_ID = project.id
|
|
100
145
|
_ACTIVE_PROJECT_NAME = project.name
|
|
101
146
|
_reset_default_experiment_cache()
|
|
@@ -118,6 +163,10 @@ def _reset_active_project():
|
|
|
118
163
|
|
|
119
164
|
os.environ.pop(EnvVars.DATAMINT_PROJECT_ID.value, None)
|
|
120
165
|
|
|
166
|
+
# Drop the workspace too, otherwise the previous project's workspace stays
|
|
167
|
+
# bound for the rest of the process: a cross-tenant read waiting to happen.
|
|
168
|
+
release_project_workspace()
|
|
169
|
+
|
|
121
170
|
|
|
122
171
|
def _reset_default_experiment_cache():
|
|
123
172
|
"""Invalidate the cached default-experiment id so a project switch takes effect
|
|
@@ -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.
|
|
4
|
+
version = "2.46.0a1"
|
|
5
5
|
dynamic = ["dependencies"]
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
7
|
readme = "README.md"
|
|
@@ -58,7 +58,7 @@ platformdirs = "^4.0.0"
|
|
|
58
58
|
pandas = ">=2.0.0"
|
|
59
59
|
matplotlib = "*"
|
|
60
60
|
lightning = { extras = ['extra'], version = ">=2.5.6" }
|
|
61
|
-
mlflow
|
|
61
|
+
mlflow = "==3.17.2"
|
|
62
62
|
Flask = { version = "<4" }
|
|
63
63
|
Flask-Cors = { version = "<7" }
|
|
64
64
|
albumentations = ">=2.0.0"
|
|
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
|
|
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.45.0 → datamint-2.46.0a1}/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.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/deeplabv3plus.py
RENAMED
|
File without changes
|
{datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/efficientnetv2.py
RENAMED
|
File without changes
|
{datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/data_export.py
RENAMED
|
File without changes
|
{datamint-2.45.0 → datamint-2.46.0a1}/datamint/lightning/trainers/specialized/nnunet/data_import.py
RENAMED
|
File without changes
|
|
File without changes
|
{datamint-2.45.0 → datamint-2.46.0a1}/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
|
{datamint-2.45.0 → datamint-2.46.0a1}/datamint/mlflow/lightning/callbacks/modelcheckpoint.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
|