Skip to content

Commit 8b49f4d

Browse files
authored
Merge pull request #67 from neuroneural/margin_plus
Increase margin of cropping in case of mindgrab
2 parents 7c64a87 + e1fb35e commit 8b49f4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

brainchop-parameters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ const inferenceModelsList = [
388388
numOverlapBatches: 0, // Number of extra overlap batches for inference
389389
enableTranspose: true, // Keras and tfjs input orientation may need a tranposing step to be matched
390390
enableCrop: true, // For speed-up inference, crop brain from background before feeding to inference model to lower memory use.
391-
cropPadding: 0, // Padding size add to cropped brain
391+
cropPadding: 10, // Padding size add to cropped brain
392392
autoThreshold: 0, // Threshold between 0 and 1, given no preModel and tensor is normalized either min-max or by quantiles. Will remove noisy voxels around brain
393393
enableQuantileNorm: false, // Some models needs Quantile Normaliztion.
394394
filterOutWithPreMask: false, // Can be used to multiply final output with premodel output mask to crean noisy areas
@@ -411,7 +411,7 @@ const inferenceModelsList = [
411411
numOverlapBatches: 0, // Number of extra overlap batches for inference
412412
enableTranspose: true, // Keras and tfjs input orientation may need a tranposing step to be matched
413413
enableCrop: true, // For speed-up inference, crop brain from background before feeding to inference model to lower memory use.
414-
cropPadding: 0, // Padding size add to cropped brain
414+
cropPadding: 10, // Padding size add to cropped brain
415415
autoThreshold: 0, // Threshold between 0 and 1, given no preModel and tensor is normalized either min-max or by quantiles. Will remove noisy voxels around brain
416416
enableQuantileNorm: false, // Some models needs Quantile Normaliztion.
417417
filterOutWithPreMask: false, // Can be used to multiply final output with premodel output mask to crean noisy areas

0 commit comments

Comments
 (0)