biapy 3.3.7__tar.gz → 3.3.8__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.
Files changed (146) hide show
  1. {biapy-3.3.7/biapy.egg-info → biapy-3.3.8}/PKG-INFO +1 -1
  2. {biapy-3.3.7 → biapy-3.3.8}/biapy/_biapy.py +4 -3
  3. {biapy-3.3.7 → biapy-3.3.8}/biapy/config/config.py +5 -4
  4. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/__init__.py +1 -2
  5. {biapy-3.3.7 → biapy-3.3.8/biapy.egg-info}/PKG-INFO +1 -1
  6. {biapy-3.3.7 → biapy-3.3.8}/pyproject.toml +1 -1
  7. {biapy-3.3.7 → biapy-3.3.8}/setup.py +1 -1
  8. {biapy-3.3.7 → biapy-3.3.8}/.gitignore +0 -0
  9. {biapy-3.3.7 → biapy-3.3.8}/CODE_OF_CONDUCT.md +0 -0
  10. {biapy-3.3.7 → biapy-3.3.8}/LICENSE.md +0 -0
  11. {biapy-3.3.7 → biapy-3.3.8}/README.md +0 -0
  12. {biapy-3.3.7 → biapy-3.3.8}/biapy/__init__.py +0 -0
  13. {biapy-3.3.7 → biapy-3.3.8}/biapy/config/__init__.py +0 -0
  14. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/__init__.py +0 -0
  15. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/data_2D_manipulation.py +0 -0
  16. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/data_3D_manipulation.py +0 -0
  17. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/augmentors.py +0 -0
  18. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/pair_base_data_generator.py +0 -0
  19. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/pair_data_2D_generator.py +0 -0
  20. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/pair_data_3D_generator.py +0 -0
  21. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/single_base_data_generator.py +0 -0
  22. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/single_data_2D_generator.py +0 -0
  23. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/single_data_3D_generator.py +0 -0
  24. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/test_pair_data_generators.py +0 -0
  25. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/generators/test_single_data_generator.py +0 -0
  26. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/post_processing/__init__.py +0 -0
  27. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/post_processing/post_processing.py +0 -0
  28. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/post_processing/smooth_tiled_predictions.py +0 -0
  29. {biapy-3.3.7 → biapy-3.3.8}/biapy/data/pre_processing.py +0 -0
  30. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/__init__.py +0 -0
  31. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/base_workflow.py +0 -0
  32. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/check_configuration.py +0 -0
  33. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/classification.py +0 -0
  34. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/denoising.py +0 -0
  35. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/detection.py +0 -0
  36. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/instance_seg.py +0 -0
  37. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/metrics.py +0 -0
  38. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/schedulers/warmup_cosine_decay.py +0 -0
  39. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/self_supervised.py +0 -0
  40. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/semantic_seg.py +0 -0
  41. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/super_resolution.py +0 -0
  42. {biapy-3.3.7 → biapy-3.3.8}/biapy/engine/train_engine.py +0 -0
  43. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/__init__.py +0 -0
  44. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/attention_unet.py +0 -0
  45. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/blocks.py +0 -0
  46. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/dfcan.py +0 -0
  47. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/edsr.py +0 -0
  48. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/efficientnet.py +0 -0
  49. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/mae.py +0 -0
  50. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/multiresunet.py +0 -0
  51. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/rcan.py +0 -0
  52. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/resunet++.py +0 -0
  53. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/resunet.py +0 -0
  54. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/seunet.py +0 -0
  55. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/simple_cnn.py +0 -0
  56. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/tr_layers.py +0 -0
  57. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/unet.py +0 -0
  58. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/unetr.py +0 -0
  59. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/vit.py +0 -0
  60. {biapy-3.3.7 → biapy-3.3.8}/biapy/models/wdsr.py +0 -0
  61. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/callbacks.py +0 -0
  62. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/env/Dockerfile +0 -0
  63. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/env/Dockerfile_CUDA10.2 +0 -0
  64. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/env/create_docker_image.sh +0 -0
  65. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/matching.py +0 -0
  66. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/misc.py +0 -0
  67. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/calculate_detection_metrics.py +0 -0
  68. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/calculate_metrics_3D.py +0 -0
  69. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/create_probability_csv.py +0 -0
  70. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/crop_2D_dataset.py +0 -0
  71. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/crop_3D_dataset.py +0 -0
  72. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/crop_and_discard_3D_dataset.py +0 -0
  73. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/detection_plots.py +0 -0
  74. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/detection_probs_to_points.py +0 -0
  75. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/fill_holes_in_seg_masks.py +0 -0
  76. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/filter_close_points.py +0 -0
  77. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/from_class_csv_to_folders.py +0 -0
  78. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/h5_to_tif.py +0 -0
  79. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/h5_to_zarr.py +0 -0
  80. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/merge_dataset_channels.py +0 -0
  81. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/order_axes.py +0 -0
  82. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/scripts/tif_to_h5.py +0 -0
  83. {biapy-3.3.7 → biapy-3.3.8}/biapy/utils/util.py +0 -0
  84. {biapy-3.3.7 → biapy-3.3.8}/biapy.egg-info/SOURCES.txt +0 -0
  85. {biapy-3.3.7 → biapy-3.3.8}/biapy.egg-info/dependency_links.txt +0 -0
  86. {biapy-3.3.7 → biapy-3.3.8}/biapy.egg-info/requires.txt +0 -0
  87. {biapy-3.3.7 → biapy-3.3.8}/biapy.egg-info/top_level.txt +0 -0
  88. {biapy-3.3.7 → biapy-3.3.8}/img/BiaPy-Euro-BioImaging-youtube.png +0 -0
  89. {biapy-3.3.7 → biapy-3.3.8}/img/BiaPy-workflow-readme.svg +0 -0
  90. {biapy-3.3.7 → biapy-3.3.8}/img/BiaPy_GUI_main_page.png +0 -0
  91. {biapy-3.3.7 → biapy-3.3.8}/img/BiaPy_presentation_and_demo_at_RTmfm.jpg +0 -0
  92. {biapy-3.3.7 → biapy-3.3.8}/img/MitoEM_teaser_cable_length_split.png +0 -0
  93. {biapy-3.3.7 → biapy-3.3.8}/img/biapy_logo.png +0 -0
  94. {biapy-3.3.7 → biapy-3.3.8}/img/complex_MOAS.png +0 -0
  95. {biapy-3.3.7 → biapy-3.3.8}/img/cyst_instance_prediction.gif +0 -0
  96. {biapy-3.3.7 → biapy-3.3.8}/img/cyst_sample.gif +0 -0
  97. {biapy-3.3.7 → biapy-3.3.8}/img/domain_EM.jpg +0 -0
  98. {biapy-3.3.7 → biapy-3.3.8}/img/halo_instances.png +0 -0
  99. {biapy-3.3.7 → biapy-3.3.8}/img/unet_attn_stable.png +0 -0
  100. {biapy-3.3.7 → biapy-3.3.8}/img/wound_diagram_VQVAE.png +0 -0
  101. {biapy-3.3.7 → biapy-3.3.8}/main.py +0 -0
  102. {biapy-3.3.7 → biapy-3.3.8}/notebooks/BiaPy_Inference.ipynb +0 -0
  103. {biapy-3.3.7 → biapy-3.3.8}/notebooks/classification/BiaPy_2D_Classification.ipynb +0 -0
  104. {biapy-3.3.7 → biapy-3.3.8}/notebooks/classification/BiaPy_2D_Classification_Butterfly.ipynb +0 -0
  105. {biapy-3.3.7 → biapy-3.3.8}/notebooks/classification/BiaPy_3D_Classification.ipynb +0 -0
  106. {biapy-3.3.7 → biapy-3.3.8}/notebooks/denoising/BiaPy_2D_Denoising.ipynb +0 -0
  107. {biapy-3.3.7 → biapy-3.3.8}/notebooks/denoising/BiaPy_3D_Denoising.ipynb +0 -0
  108. {biapy-3.3.7 → biapy-3.3.8}/notebooks/detection/BiaPy_2D_Detection.ipynb +0 -0
  109. {biapy-3.3.7 → biapy-3.3.8}/notebooks/detection/BiaPy_3D_Detection.ipynb +0 -0
  110. {biapy-3.3.7 → biapy-3.3.8}/notebooks/instance_segmentation/BiaPy_2D_Instance_Segmentation.ipynb +0 -0
  111. {biapy-3.3.7 → biapy-3.3.8}/notebooks/instance_segmentation/BiaPy_3D_Instance_Segmentation.ipynb +0 -0
  112. {biapy-3.3.7 → biapy-3.3.8}/notebooks/self-supervised/BiaPy_2D_Self_Supervision.ipynb +0 -0
  113. {biapy-3.3.7 → biapy-3.3.8}/notebooks/self-supervised/BiaPy_3D_Self_Supervision.ipynb +0 -0
  114. {biapy-3.3.7 → biapy-3.3.8}/notebooks/semantic_segmentation/BiaPy_2D_Semantic_Segmentation.ipynb +0 -0
  115. {biapy-3.3.7 → biapy-3.3.8}/notebooks/semantic_segmentation/BiaPy_3D_Semantic_Segmentation.ipynb +0 -0
  116. {biapy-3.3.7 → biapy-3.3.8}/notebooks/super-resolution/BiaPy_2D_Super_Resolution.ipynb +0 -0
  117. {biapy-3.3.7 → biapy-3.3.8}/notebooks/super-resolution/BiaPy_3D_Super_Resolution.ipynb +0 -0
  118. {biapy-3.3.7 → biapy-3.3.8}/setup.cfg +0 -0
  119. {biapy-3.3.7 → biapy-3.3.8}/templates/classification/2d_classification.yaml +0 -0
  120. {biapy-3.3.7 → biapy-3.3.8}/templates/classification/2d_classification_rgb.yaml +0 -0
  121. {biapy-3.3.7 → biapy-3.3.8}/templates/classification/3d_classification.yaml +0 -0
  122. {biapy-3.3.7 → biapy-3.3.8}/templates/denoising/2d_denoising.yaml +0 -0
  123. {biapy-3.3.7 → biapy-3.3.8}/templates/denoising/3d_denoising.yaml +0 -0
  124. {biapy-3.3.7 → biapy-3.3.8}/templates/detection/2d_detection.yaml +0 -0
  125. {biapy-3.3.7 → biapy-3.3.8}/templates/detection/3d_detection.yaml +0 -0
  126. {biapy-3.3.7 → biapy-3.3.8}/templates/instance_segmentation/2d_instance_segmentation.yaml +0 -0
  127. {biapy-3.3.7 → biapy-3.3.8}/templates/instance_segmentation/3d_instance_segmentation.yaml +0 -0
  128. {biapy-3.3.7 → biapy-3.3.8}/templates/instance_segmentation/CartoCell_paper/CartoCell - Inference workflow (Phase 5).ipynb +0 -0
  129. {biapy-3.3.7 → biapy-3.3.8}/templates/instance_segmentation/CartoCell_paper/CartoCell - Training workflow (Phase 2).ipynb +0 -0
  130. {biapy-3.3.7 → biapy-3.3.8}/templates/instance_segmentation/CartoCell_paper/cartocell_inference.yaml +0 -0
  131. {biapy-3.3.7 → biapy-3.3.8}/templates/instance_segmentation/CartoCell_paper/cartocell_training.yaml +0 -0
  132. {biapy-3.3.7 → biapy-3.3.8}/templates/instance_segmentation/CartoCell_paper/model_weights_cartocell.h5 +0 -0
  133. {biapy-3.3.7 → biapy-3.3.8}/templates/instance_segmentation/MitoEM_paper/mitoem.yaml +0 -0
  134. {biapy-3.3.7 → biapy-3.3.8}/templates/self-supervised/2d_self-supervised.yaml +0 -0
  135. {biapy-3.3.7 → biapy-3.3.8}/templates/self-supervised/3d_self-supervised.yaml +0 -0
  136. {biapy-3.3.7 → biapy-3.3.8}/templates/semantic_segmentation/2d_semantic_segmentation.yaml +0 -0
  137. {biapy-3.3.7 → biapy-3.3.8}/templates/semantic_segmentation/3d_semantic_segmentation.yaml +0 -0
  138. {biapy-3.3.7 → biapy-3.3.8}/templates/semantic_segmentation/stable_paper/semantic_segmentation_workflow.ipynb +0 -0
  139. {biapy-3.3.7 → biapy-3.3.8}/templates/sota_implementations/Casser_workflow.ipynb +0 -0
  140. {biapy-3.3.7 → biapy-3.3.8}/templates/sota_implementations/Cheng_2D_workflow.ipynb +0 -0
  141. {biapy-3.3.7 → biapy-3.3.8}/templates/sota_implementations/Cheng_3D_workflow.ipynb +0 -0
  142. {biapy-3.3.7 → biapy-3.3.8}/templates/sota_implementations/Oztel_workflow.ipynb +0 -0
  143. {biapy-3.3.7 → biapy-3.3.8}/templates/sota_implementations/Xiao_workflow.ipynb +0 -0
  144. {biapy-3.3.7 → biapy-3.3.8}/templates/super-resolution/2d_super-resolution.yaml +0 -0
  145. {biapy-3.3.7 → biapy-3.3.8}/templates/super-resolution/2d_super-resolution_rgb.yaml +0 -0
  146. {biapy-3.3.7 → biapy-3.3.8}/templates/super-resolution/3d_super-resolution.yaml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: biapy
3
- Version: 3.3.7
3
+ Version: 3.3.8
4
4
  Summary: BiaPy: Bioimage analysis pipelines in Python
5
5
  Home-page: https://github.com/BiaPyX/BiaPy
6
6
  Author: BiaPy Contributors
@@ -119,12 +119,13 @@ class BiaPy():
119
119
  set_seed(self.cfg.SYSTEM.SEED)
120
120
 
121
121
  # Number of CPU calculation
122
- if self.cfg.SYSTEM.NUM_WORKERS == -1:
122
+ if self.cfg.SYSTEM.NUM_CPUS == -1:
123
123
  self.cpu_count = multiprocessing.cpu_count()
124
124
  else:
125
- self.cpu_count = self.cfg.SYSTEM.NUM_WORKERS
125
+ self.cpu_count = self.cfg.SYSTEM.NUM_CPUS
126
+ if self.cpu_count < 1: self.cpu_count = 1 # At least 1 CPU
126
127
  torch.set_num_threads(self.cpu_count)
127
- self.cfg.merge_from_list(['SYSTEM.NUM_WORKERS', self.cpu_count])
128
+ self.cfg.merge_from_list(['SYSTEM.NUM_CPUS', self.cpu_count])
128
129
 
129
130
  check_configuration(self.cfg, self.job_identifier)
130
131
  print("Configuration details:")
@@ -18,9 +18,10 @@ class Config:
18
18
  # System
19
19
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
20
  _C.SYSTEM = CN()
21
- # Maximum number of workers to load data in parallel. Set it to "-1" to set any limit. Normally a few cores
22
- # will be used in this last case, as the biggest calculations will be on the GPU.
23
- _C.SYSTEM.NUM_WORKERS = -1
21
+ # Maximum number of CPUs to use. Set it to "-1" to not set a limit.
22
+ _C.SYSTEM.NUM_CPUS = -1
23
+ # Maximum number of workers to load data in parallel. You can disable this option by setting 0.
24
+ _C.SYSTEM.NUM_WORKERS = 5
24
25
  # Do not set it as its value will be calculated based in --gpu input arg
25
26
  _C.SYSTEM.NUM_GPUS = 0
26
27
 
@@ -173,7 +174,7 @@ class Config:
173
174
  _C.DATA.W_FOREGROUND = 0.94 # Used when _C.DATA.PROBABILITY_MAP=True
174
175
  _C.DATA.W_BACKGROUND = 0.06 # Used when _C.DATA.PROBABILITY_MAP=True
175
176
 
176
- # Whether to reshape de dimensions that does not satisfy the pathc shape selected by padding it with reflect.
177
+ # Whether to reshape the dimensions that does not satisfy the patch shape selected by padding it with reflect.
177
178
  _C.DATA.REFLECT_TO_COMPLETE_SHAPE = False
178
179
 
179
180
  _C.DATA.NORMALIZATION = CN()
@@ -219,9 +219,8 @@ def create_train_val_augmentors(cfg, X_train, Y_train, X_val, Y_val, world_size,
219
219
  # Training dataset
220
220
  total_batch_size = cfg.TRAIN.BATCH_SIZE * world_size * cfg.TRAIN.ACCUM_ITER
221
221
  training_samples = len(train_generator)
222
- num_workers = max(cfg.SYSTEM.NUM_WORKERS // cfg.SYSTEM.NUM_GPUS, 1) if dist else cfg.SYSTEM.NUM_WORKERS
223
222
  # Reduce number of workers in case there is no training data
224
- num_workers = min(num_workers, training_samples)
223
+ num_workers = min(cfg.SYSTEM.NUM_WORKERS, training_samples)
225
224
  # To not create more than 8 processes per GPU
226
225
  if cfg.SYSTEM.NUM_GPUS >= 1:
227
226
  num_workers = min(num_workers, 8*cfg.SYSTEM.NUM_GPUS)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: biapy
3
- Version: 3.3.7
3
+ Version: 3.3.8
4
4
  Summary: BiaPy: Bioimage analysis pipelines in Python
5
5
  Home-page: https://github.com/BiaPyX/BiaPy
6
6
  Author: BiaPy Contributors
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "biapy"
7
- version = "3.3.7"
7
+ version = "3.3.8"
8
8
  description = "BiaPy: Bioimage analysis pipelines in Python"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Daniel Franco-Barranco", email = "daniel.franco@dipc.org" }]
@@ -31,7 +31,7 @@ def getInclude():
31
31
 
32
32
 
33
33
  def setup_package():
34
- __version__ = '3.3.7'
34
+ __version__ = '3.3.8'
35
35
  url = 'https://github.com/BiaPyX/BiaPy'
36
36
 
37
37
  setup(name='biapy',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes