Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions monai/networks/nets/autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@


class AutoEncoder(nn.Module):
"""
Base class for the architecture implementing :py:class:`monai.networks.nets.VarAutoEncoder`.
"""

@deprecated_arg(
name="dimensions", new_name="spatial_dims", since="0.6", msg_suffix="Please use `spatial_dims` instead."
)
Expand Down
17 changes: 17 additions & 0 deletions monai/networks/nets/varautoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ class VarAutoEncoder(AutoEncoder):
"""
Variational Autoencoder based on the paper - https://arxiv.org/abs/1312.6114

.. code-block:: python

from monai.networks.nets import VarAutoEncoder

model = VarAutoEncoder(
dimensions=2,
in_shape=(32, 32), # image spatial shape
out_channels=1,
latent_size=2,
channels=(16, 32, 64),
strides=(1, 2, 2),
)

see also:
- Variational autoencoder network with MedNIST Dataset
https://github.com/Project-MONAI/tutorials/blob/master/modules/varautoencoder_mednist.ipynb

.. deprecated:: 0.6.0
``dimensions`` is deprecated, use ``spatial_dims`` instead.
"""
Expand Down