Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Python/scripts/characterize_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,14 @@ def xyz_to_index(x, y, z, thumbnail_size, tile_size):
)
return 1

# This script uses concurrent.futures ProcessPoolExecutor for parallel processing at
# the process level. ITK filters implement concurrency at the thread level.
# The combination of these two parallelization approaches can potentially be
# detrimental, as each of N processes creates M threads which can overwhelm a
# system if it has less than NM cores. We therefor configure SimpleITK to work
# in a single threaded fashion and only use process level parallelization.
sitk.ProcessObject.SetGlobalDefaultNumberOfThreads(1)

thumbnail_settings = {}
if args.create_summary_image:
thumbnail_settings["thumbnail_sizes"] = args.thumbnail_sizes
Expand Down