deepvisiontools 0.0.2__tar.gz → 0.0.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.
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/PKG-INFO +1 -1
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/__init__.py +1 -1
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/formats/base_data.py +14 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/train/trainer.py +1 -1
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools.egg-info/PKG-INFO +1 -1
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/LICENSE.txt +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/README.md +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/pyproject.toml +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/setup.cfg +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/setup.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/config/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/config/config.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/config/errors.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/additional_augmentations.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/augmentation_class.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/batch_augmentations.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/data_reader/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/data_reader/readers.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/dataset.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/errors.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/formats/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/formats/base_formats.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/formats/errors.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/formats/formats.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/formats/utils.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/inference/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/inference/patchifier.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/inference/predictor.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/metrics/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/metrics/available_metrics.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/metrics/base_metric.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/metrics/func.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/metrics/matcher.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/metrics/utils.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/basemodel.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/mask2former/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/mask2former/mask2former.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/smp/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/smp/errors.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/smp/smp.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8/errors.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8/utils.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8/yolov8.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8seg/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8seg/errors.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8seg/utils.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8seg/yolov8seg.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/preprocessing/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/preprocessing/image.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/preprocessing/preprocessing.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/train/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/utils/__init__.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/utils/errors.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/utils/visualization.py +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools.egg-info/SOURCES.txt +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools.egg-info/dependency_links.txt +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools.egg-info/requires.txt +0 -0
- {deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: deepvisiontools
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Overlay of PyTorch to generalize trainning and inference processes for detection & instance segmentation tasks.
|
|
5
5
|
Author-email: Lucas Bernigaud Samatan <lucas.bernigaud-samatan@inrae.fr>, Jordan Bernigaud Samatan <jordan.bernigaud-samatan@inrae.fr>
|
|
6
6
|
Maintainer-email: Jordan Bernigaud Samatan <jordan.bernigaud-samatan@inrae.fr>
|
|
@@ -4,7 +4,7 @@ from deepvisiontools.data.dataset import DeepVisionDataset, DeepVisionLoader
|
|
|
4
4
|
from deepvisiontools.utils import visualization
|
|
5
5
|
from deepvisiontools.inference.predictor import Predictor
|
|
6
6
|
|
|
7
|
-
__version__ = "0.0.
|
|
7
|
+
__version__ = "0.0.4"
|
|
8
8
|
|
|
9
9
|
__all__ = (
|
|
10
10
|
Configuration,
|
|
@@ -135,6 +135,13 @@ class SemanticMaskData(BaseData):
|
|
|
135
135
|
|
|
136
136
|
def __init__(self, mask: Union[Tensor, Mask]):
|
|
137
137
|
mask = mask.long() if isinstance(mask, Mask) else Mask(mask.long())
|
|
138
|
+
assert (
|
|
139
|
+
mask.dim() == 2 or mask.dim() == 3
|
|
140
|
+
), f"SemanticMaskData : input tensor should be of dim 2 or 3 [1, H, W] (anyway casted to [H, W]), got {mask.shape}"
|
|
141
|
+
|
|
142
|
+
# cast mask to [Ncls, H, W] if dim == 2
|
|
143
|
+
if mask.dim() == 3:
|
|
144
|
+
mask = Mask(mask[0])
|
|
138
145
|
self._value = copy.deepcopy(mask) # convert to long
|
|
139
146
|
self._canvas_size = (mask.shape[-2], mask.shape[-1])
|
|
140
147
|
self._nb_object = torch.unique(mask).shape[0] - 1
|
|
@@ -153,6 +160,13 @@ class SemanticMaskData(BaseData):
|
|
|
153
160
|
val, Tensor
|
|
154
161
|
), f"SemanticMaskData value must be Tensor, got {type(val)}"
|
|
155
162
|
mask = val.long()
|
|
163
|
+
assert (
|
|
164
|
+
mask.dim() == 2 or mask.dim() == 3
|
|
165
|
+
), f"SemanticMaskData : input tensor should be of dim 2 or 3 (anyway casted to [Ncls, H, W]), got {mask.shape}"
|
|
166
|
+
|
|
167
|
+
# cast mask to [Ncls, H, W] if dim == 2
|
|
168
|
+
if mask.dim() == 2:
|
|
169
|
+
mask = mask[None, :]
|
|
156
170
|
# covert to torchvision tv_tensor
|
|
157
171
|
mask = mask if isinstance(mask, Mask) else Mask(mask)
|
|
158
172
|
mask = mask.to(self.device)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: deepvisiontools
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Overlay of PyTorch to generalize trainning and inference processes for detection & instance segmentation tasks.
|
|
5
5
|
Author-email: Lucas Bernigaud Samatan <lucas.bernigaud-samatan@inrae.fr>, Jordan Bernigaud Samatan <jordan.bernigaud-samatan@inrae.fr>
|
|
6
6
|
Maintainer-email: Jordan Bernigaud Samatan <jordan.bernigaud-samatan@inrae.fr>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/additional_augmentations.py
RENAMED
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/augmentation_class.py
RENAMED
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/batch_augmentations.py
RENAMED
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/data_reader/__init__.py
RENAMED
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/data/data_reader/readers.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
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/metrics/available_metrics.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/mask2former/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8seg/__init__.py
RENAMED
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8seg/errors.py
RENAMED
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8seg/utils.py
RENAMED
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/models/yolov8seg/yolov8seg.py
RENAMED
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/preprocessing/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools/preprocessing/preprocessing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepvisiontools-0.0.2 → deepvisiontools-0.0.4}/src/deepvisiontools.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|