1.3.0
版本发布时间: 2023-10-13 01:37:33
Project-MONAI/MONAI最新发布版本:1.4.0(2024-10-17 08:54:28)
Added
- Intensity transforms
ScaleIntensityFixedMean
andRandScaleIntensityFixedMean
(#6542) -
UltrasoundConfidenceMapTransform
used for computing confidence map from an ultrasound image (#6709) -
channel_wise
support inRandScaleIntensity
andRandShiftIntensity
(#6793, #7025) -
RandSimulateLowResolution
andRandSimulateLowResolutiond
(#6806) -
SignalFillEmptyd
(#7011) - Euclidean distance transform
DistanceTransformEDT
with GPU support (#6981) - Port loss and metrics from
monai-generative
(#6729, #6836) - Support
invert_image
andretain_stats
inAdjustContrast
andRandAdjustContrast
(#6542) - New network
DAF3D
andQuicknat
(#6306) - Support
sincos
position embedding (#6986) -
ZarrAvgMerger
used for patch inference (#6633) - Dataset tracking support to
MLFlowHandler
(#6616) - Considering spacing and subvoxel borders in
SurfaceDiceMetric
(#6681) - CUCIM support for surface-related metrics (#7008)
-
loss_fn
support inIgniteMetric
and renamed it toIgniteMetricHandler
(#6695) -
CallableEventWithFilter
andEvents
options fortrigger_event
inGarbageCollector
(#6663) - Support random sorting option to
GridPatch
,RandGridPatch
,GridPatchd
andRandGridPatchd
(#6701) - Support multi-threaded batch sampling in
PatchInferer
(#6139) -
SoftclDiceLoss
andSoftDiceclDiceLoss
(#6763) -
HausdorffDTLoss
andLogHausdorffDTLoss
(#6994) - Documentation for
TensorFloat-32
(#6770) - Docstring format guide (#6780)
-
GDSDataset
support for GDS (#6778) - PyTorch backend support for
MapLabelValue
(#6872) -
filter_func
incopy_model_state
to filter the weights to be loaded andfilter_swinunetr
(#6917) -
stats_sender
toMonaiAlgo
for FL stats (#6984) -
freeze_layers
to help freeze specific layers (#6970)
misc.
- Refactor multi-node running command used in
Auto3DSeg
into dedicated functions (#6623) - Support str type annotation to
device
inToTensorD
(#6737) - Improve logging message and file name extenstion in
DataAnalyzer
forAuto3DSeg
(#6758) - Set
data_range
as a property inSSIMLoss
(#6788) - Unify environment variable access (#7084)
-
end_lr
support inWarmupCosineSchedule
(#6662) - Add
ClearML
as optional dependency (#6827) -
yandex.disk
support indownload_url
(#6667) - Improve config expression error message (#6977)
Fixed
transforms
- Make
convert_box_to_mask
throw errors when box size larger than the image (#6637) - Fix lazy mode in
RandAffine
(#6774) - Raise
ValueError
whenmap_items
is bool inCompose
(#6882) - Improve performance for
NormalizeIntensity
(#6887) - Fix mismatched shape in
Spacing
(#6912) - Avoid FutureWarning in
CropForeground
(#6934) - Fix
Lazy=True
ignored when usingDataset
call (#6975) - Shape check for arbitrary types for DataStats (#7082)
data
- Fix wrong spacing checking logic in
PydicomReader
and broken link inITKReader
(#6660) - Fix boolean indexing of batched
MetaTensor
(#6781) - Raise warning when multiprocessing in
DataLoader
(#6830) - Remove
shuffle
inDistributedWeightedRandomSampler
(#6886) - Fix missing
SegmentDescription
inPydicomReader
(#6937) - Fix reading dicom series error in
ITKReader
(#6943) - Fix KeyError in
PydicomReader
(#6946) - Update
metatensor_to_itk_image
to accept RASMetaTensor
and update default 'space' inNrrdReader
toSpaceKeys.LPS
(#7000) - Collate common meta dictionary keys (#7054)
metrics and losses
- Fixed bug in
GeneralizedDiceLoss
whenbatch=True
(#6775) - Support for
BCEWithLogitsLoss
inDiceCELoss
(#6924) - Support for
weight
in Dice and related losses (#7098)
networks
- Use
np.prod
instead ofnp.product
(#6639) - Fix dimension issue in
MBConvBlock
(#6672) - Fix hard-coded
up_kernel_size
inViTAutoEnc
(#6735) - Remove hard-coded
bias_downsample
inresnet
(#6848) - Fix unused
kernel_size
inResBlock
(#6999) - Allow for defining reference grid on non-integer coordinates (#7032)
- Padding option for autoencoder (#7068)
- Lower peak memory usage for SegResNetDS (#7066)
bundle
- Set
train_dataset_data
anddataset_data
to unrequired in BundleProperty (#6607) - Set
None
to properties that do not haveREF_ID
(#6607) - Fix
AttributeError
for default value inget_parsed_content
forConfigParser
(#6756) - Update
monai.bundle.scripts
to support NGC hosting (#6828, #6997) - Add
MetaProperties
(#6835) - Add
create_workflow
and updateload
function (#6835) - Add bundle root directory to Python search directories automatically (#6910)
- Generate properties for bundle docs automatically (#6918)
- Move
download_large_files
from model zoo to core (#6958) - Bundle syntax
#
as alias of::
(#6955) - Fix bundle download naming issue (#6969, #6963)
- Simplify the usage of
ckpt_export
(#6965) -
update_kwargs
inmonai.bundle.script
for merging multiple configs (#7109)
engines and handlers
- Added int options for
iteration_log
andepoch_log
inTensorBoardStatsHandler
(#7027) - Support to run validator at training start (#7108)
misc.
- Fix device fallback error in
DataAnalyzer
(#6658) - Add int check for
current_mode
inconvert_applied_interp_mode
(#6719) - Consistent type in
convert_to_contiguous
(#6849) - Label
argmax
inDataAnalyzer
when retry on CPU (#6852) - Fix
DataAnalyzer
withhistogram_only=True
(#6874) - Fix
AttributeError
inRankFilter
in single GPU environment (#6895) - Remove the default warning on
TORCH_ALLOW_TF32_CUBLAS_OVERRIDE
and add debug print info (#6909) - Hide user information in
print_config
(#6913, #6922) - Optionally pass coordinates to predictor during sliding window (#6795)
- Proper ensembling when trained with a sigmoid in
AutoRunner
(#6588) - Fixed
test_retinanet
by increasing absolute differences (#6615) - Add type check to avoid comparing a np.array with a string in
_check_kwargs_are_present
(#6624) - Fix md5 hashing with FIPS mode (#6635)
- Capture failures from Auto3DSeg related subprocess calls (#6596)
- Code formatting tool for user-specified directory (#7106)
- Various docstring fixes
Changed
- Base Docker image upgraded to
nvcr.io/nvidia/pytorch:23.08-py3
fromnvcr.io/nvidia/pytorch:23.03-py3
Deprecated
-
allow_smaller=True
;allow_smaller=False
will be the new default inCropForeground
andgenerate_spatial_bounding_box
(#6736) -
dropout_prob
inVNet
in favor ofdropout_prob_down
anddropout_prob_up
(#6768) -
workflow
inBundleWorkflow
in favor ofworkflow_type
(#6768) -
pos_embed
inPatchEmbeddingBlock
in favor ofproj_type
(#6986) -
net_name
andnet_kwargs
indownload
in favor ofmodel
(#7016) -
img_size
parameter in SwinUNETR (#7093)
Removed
-
pad_val
,stride
,per_channel
andupsampler
inOcclusionSensitivity
(#6642) -
compute_meaniou
(#7019) -
AsChannelFirst
,AddChannel
andSplitChannel
(#7019) -
create_multigpu_supervised_trainer
andcreate_multigpu_supervised_evaluator
(#7019) -
runner_id
inrun
(#7019) -
data_src_cfg_filename
inAlgoEnsembleBuilder
(#7019) -
get_validation_stats
inEvaluator
andget_train_stats
inTrainer
(#7019) -
epoch_interval
anditeration_interval
inTensorBoardStatsHandler
(#7019) - some self-hosted test (#7041)