Skip to content

Commit

Permalink
Set number of used processes to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol-G committed Sep 11, 2023
1 parent eb0f598 commit 08af893
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion particleseg3d/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.11"
__version__ = "0.2.12"
4 changes: 2 additions & 2 deletions particleseg3d/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def create_sampler_and_aggregator(
resized_chunk_size: Any,
target_spacing: Tuple[float, float, float],
batch_size: int,
num_workers: int = 12
num_workers: int
) -> Tuple[Any, Any, bool]:
"""
Create the sampler and aggregator for prediction.
Expand Down Expand Up @@ -519,7 +519,7 @@ def main():
parser.add_argument('-f', "--fold", required=False, default=(0, 1, 2, 3, 4), type=int, nargs="+", help="(Optional) The folds to use. 0, 1, 2, 3, 4 or a combination.")
parser.add_argument('-batch_size', default=6, required=False, type=int,
help="(Optional) The batch size to use during each inference iteration. A higher batch size decreases inference time, but increases the required GPU memory.")
parser.add_argument('-p', '--processes', required=False, default=12, type=int, help="(Optional) Number of processes to use for parallel processing. Zero to disable multiprocessing.")
parser.add_argument('-p', '--processes', required=False, default=4, type=int, help="(Optional) Number of processes to use for parallel processing. Zero to disable multiprocessing.")
parser.add_argument("-min_rel_particle_size", required=False, default=0.005, type=float, help="(Optional) Minimum relative particle size used for filtering.")
args = parser.parse_args()

Expand Down

0 comments on commit 08af893

Please sign in to comment.