predtiler 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
predtiler/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ from .tile_stitcher import stitch_predictions
2
+ from .dataset import get_tiling_dataset, get_tile_manager
3
+
4
+ __all__ = [
5
+ 'stitch_predictions',
6
+ 'get_tiling_dataset',
7
+ 'get_tile_manager'
8
+ ]
@@ -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
- print(shape)
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.3
1
+ Metadata-Version: 2.4
2
2
  Name: predtiler
3
- Version: 0.0.1
4
- Summary: Converting your dataset class into a class that can be used for tiled prediction and eventually obtain stiched prediction.
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.dataset import get_tiling_dataset, get_tile_manager
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,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.25.0
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -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,,