monai.Discriminator
MONAI's generic convolutional GAN discriminator: a strided conv stack down to one sigmoid value.
Diffusion and generative · 31 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 6.3K
- Operations
- 31
- Framework
- PyTorch
- Recurrent
- No
- Source
- monai 1.5.2
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m7413
- Graph hash
- 27fde047f11f4e595c6cd0634a1636f5b5996722d398c2b8ddc6d7f693a9d470
- Skeleton hash
- 06d53c31da335b68e4bf33a8ae67a5ac16e5eaab54388dcdb713d87e0cd79aed
- Architecture hash
- 55233a1896bf9423bbd59cf39eb464427ad39ebbdc294cdc5430711dfffa3ef9
- Diagram SHA-256
- 06722777b7206f74413b764fd40c8fc72e01c3b1d44f1114e6720e8954240142
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
monai.networks.nets.Discriminator(in_shape=[1, 32, 32], channels=[4, 8, 16], strides=[2, 2, 2], kernel_size=3)
What it is
MONAI's Discriminator is a generic discriminator network derived from its Classifier, with a single output value and a sigmoid activation by default. It is meant for GANs or any other application that needs a generic discriminator. You shape it by giving the input shape without the batch dimension, the output channels of each convolutional layer, and the stride (downscale factor) of each. Residual units, activation, normalization, dropout, bias and the last activation are all configurable. The member traced here takes a 1 × 32 × 32 input through three convolutional layers of 4, 8 and 16 channels, each with stride 2, down to a single value.
Key idea. A configurable convolutional discriminator with a single sigmoid output, built from MONAI's Classifier for GAN use.
- monai discriminator
- gan discriminator
- monai networks discriminator
- discriminator network
- medical gan
- classifier discriminator
- generic discriminator
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.