Skip to content

Commit

Permalink
Add cores param
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Oct 9, 2024
1 parent 0820179 commit 00a2610
Show file tree
Hide file tree
Showing 5 changed files with 476 additions and 1 deletion.
11 changes: 10 additions & 1 deletion NiChart_DLMUSE/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ def main() -> None:
required=True,
)

parser.add_argument(
"-c",
"--cores",
type=str,
help="Number of cores",
default=4,
required=False,
)

# VERSION argument
help = "Show the version and exit"
parser.add_argument(
Expand Down Expand Up @@ -112,7 +121,7 @@ def main() -> None:
os.system("DLMUSE --clear_cache")

# Run pipeline
no_threads = 4 # for now
no_threads = args.cores # for now
subfolders = split_data(in_data, no_threads)

threads = []
Expand Down
11 changes: 11 additions & 0 deletions output/split_2/temp_working_dir/s2_dlicv/dataset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"channel_names": {
"0": "MRI"
},
"file_ending": ".nii.gz",
"labels": {
"background": 0,
"class1": 1
},
"numTraining": 1806
}
Loading

0 comments on commit 00a2610

Please sign in to comment.