predtiler 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl
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.
- predtiler/__init__.py +8 -0
- predtiler/tile_stitcher.py +1 -2
- {predtiler-0.0.1.dist-info → predtiler-0.0.2.dist-info}/METADATA +4 -4
- predtiler-0.0.2.dist-info/RECORD +8 -0
- {predtiler-0.0.1.dist-info → predtiler-0.0.2.dist-info}/WHEEL +1 -1
- predtiler-0.0.1.dist-info/RECORD +0 -7
- {predtiler-0.0.1.dist-info → predtiler-0.0.2.dist-info}/licenses/LICENSE +0 -0
predtiler/__init__.py
ADDED
predtiler/tile_stitcher.py
CHANGED
@@ -15,8 +15,7 @@ def stitch_predictions(predictions:np.ndarray, manager):
|
|
15
15
|
mng = manager
|
16
16
|
shape = list(mng.data_shape)
|
17
17
|
shape.append(predictions.shape[1])
|
18
|
-
|
19
|
-
|
18
|
+
assert mng.patch_shape[-2:] == predictions.shape[-2:], 'Patch shape and predictions shape must match. Please set the patch shape correctly'
|
20
19
|
output = np.zeros(shape, dtype=predictions.dtype)
|
21
20
|
for dset_idx in range(predictions.shape[0]):
|
22
21
|
# grid start, grid end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: predtiler
|
3
|
-
Version: 0.0.
|
4
|
-
Summary:
|
3
|
+
Version: 0.0.2
|
4
|
+
Summary: Subclassing your dataset class into a new class that can be used for tiled prediction to obtain the stitched prediction.
|
5
5
|
Project-URL: homepage, https://github.com/ashesh-0/PredTiler
|
6
6
|
Project-URL: repository, https://github.com/ashesh-0/PredTiler
|
7
7
|
Author: Ashesh
|
@@ -86,7 +86,7 @@ For this we also need a tile manager that will manage the tiles.
|
|
86
86
|
|
87
87
|
```python
|
88
88
|
|
89
|
-
from predtiler
|
89
|
+
from predtiler import get_tiling_dataset, get_tile_manager, stitch_predictions
|
90
90
|
patch_size = 256
|
91
91
|
tile_size = 128
|
92
92
|
data_shape = (10, 2048, 2048) # size of the data you are working with
|
@@ -0,0 +1,8 @@
|
|
1
|
+
predtiler/__init__.py,sha256=SRFuKi-aDSGuoEDsD7fRgV5jATOFCkX1w7cg8yAGYfM,193
|
2
|
+
predtiler/dataset.py,sha256=tHgVZksqJ2h2sw212x2g8SOW4Tf2TDZ_f6ibTpQPUMM,2136
|
3
|
+
predtiler/tile_manager.py,sha256=V-iunzWcDw4_GytvkzhlrG8hLepf2_iSTBA3Da5nWgE,9958
|
4
|
+
predtiler/tile_stitcher.py,sha256=JsRjNHu8LK-oFmSHwHz8FHCzpL__H_MQdDItGrxeOvE,2462
|
5
|
+
predtiler-0.0.2.dist-info/METADATA,sha256=lqG5_jMURxXTe91g0A0hKPowTsFPuBwdYYS7L5Gv1UE,5327
|
6
|
+
predtiler-0.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
7
|
+
predtiler-0.0.2.dist-info/licenses/LICENSE,sha256=QyujMlqgcoASx9pVONwI8UO7xMSntGUEgQdlMqwVv4w,1063
|
8
|
+
predtiler-0.0.2.dist-info/RECORD,,
|
predtiler-0.0.1.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
predtiler/dataset.py,sha256=tHgVZksqJ2h2sw212x2g8SOW4Tf2TDZ_f6ibTpQPUMM,2136
|
2
|
-
predtiler/tile_manager.py,sha256=V-iunzWcDw4_GytvkzhlrG8hLepf2_iSTBA3Da5nWgE,9958
|
3
|
-
predtiler/tile_stitcher.py,sha256=rAgEV0y_FyRzU9RC_W11AE9OaGOrm1CgWPA-hbTh2vE,2336
|
4
|
-
predtiler-0.0.1.dist-info/METADATA,sha256=cXyF36cQHVKxttq9zTUdbksOs9H4Pd5YYhqbF8NRPfA,5317
|
5
|
-
predtiler-0.0.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
6
|
-
predtiler-0.0.1.dist-info/licenses/LICENSE,sha256=QyujMlqgcoASx9pVONwI8UO7xMSntGUEgQdlMqwVv4w,1063
|
7
|
-
predtiler-0.0.1.dist-info/RECORD,,
|
File without changes
|