From c47c3e1a65861c897e0d1e5b134a14b060cfc4d6 Mon Sep 17 00:00:00 2001 From: Nic Ma Date: Thu, 16 Jun 2022 11:44:43 +0800 Subject: [PATCH] [DLMED] update doc Signed-off-by: Nic Ma --- docs/source/mb_specification.rst | 2 +- monai/transforms/spatial/array.py | 4 ++-- monai/transforms/spatial/dictionary.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/mb_specification.rst b/docs/source/mb_specification.rst index 142f250550..4d021d8f60 100644 --- a/docs/source/mb_specification.rst +++ b/docs/source/mb_specification.rst @@ -57,7 +57,7 @@ metadata.json File This file contains the metadata information relating to the model, including what the shape and format of inputs and outputs are, what the meaning of the outputs are, what type of model is present, and other information. The JSON structure is a dictionary containing a defined set of keys with additional user-specified keys. The mandatory keys are as follows: -* **version**: version of the stored model, this allows multiple versions of the same model to be differentiated. +* **version**: version of the stored model, this allows multiple versions of the same model to be differentiated. Versions should follow semantic versioning and contain only characters valid in filenames as we may include the version to construct bundle file name. * **monai_version**: version of MONAI the bundle was generated on, later versions expected to work. * **pytorch_version**: version of Pytorch the bundle was generated on, later versions expected to work. * **numpy_version**: version of Numpy the bundle was generated on, later versions expected to work. diff --git a/monai/transforms/spatial/array.py b/monai/transforms/spatial/array.py index c8e43df7e3..f9c5823243 100644 --- a/monai/transforms/spatial/array.py +++ b/monai/transforms/spatial/array.py @@ -1052,9 +1052,9 @@ class RandRotate(RandomizableTransform): range_x: Range of rotation angle in radians in the plane defined by the first and second axes. If single number, angle is uniformly sampled from (-range_x, range_x). range_y: Range of rotation angle in radians in the plane defined by the first and third axes. - If single number, angle is uniformly sampled from (-range_y, range_y). + If single number, angle is uniformly sampled from (-range_y, range_y). only work for 3D data. range_z: Range of rotation angle in radians in the plane defined by the second and third axes. - If single number, angle is uniformly sampled from (-range_z, range_z). + If single number, angle is uniformly sampled from (-range_z, range_z). only work for 3D data. prob: Probability of rotation. keep_size: If it is False, the output shape is adapted so that the input array is contained completely in the output. diff --git a/monai/transforms/spatial/dictionary.py b/monai/transforms/spatial/dictionary.py index d0f3dc6705..3599d645e5 100644 --- a/monai/transforms/spatial/dictionary.py +++ b/monai/transforms/spatial/dictionary.py @@ -1708,9 +1708,9 @@ class RandRotated(RandomizableTransform, MapTransform, InvertibleTransform): range_x: Range of rotation angle in radians in the plane defined by the first and second axes. If single number, angle is uniformly sampled from (-range_x, range_x). range_y: Range of rotation angle in radians in the plane defined by the first and third axes. - If single number, angle is uniformly sampled from (-range_y, range_y). + If single number, angle is uniformly sampled from (-range_y, range_y). only work for 3D data. range_z: Range of rotation angle in radians in the plane defined by the second and third axes. - If single number, angle is uniformly sampled from (-range_z, range_z). + If single number, angle is uniformly sampled from (-range_z, range_z). only work for 3D data. prob: Probability of rotation. keep_size: If it is False, the output shape is adapted so that the input array is contained completely in the output.