Replies: 1 comment 4 replies
-
could you give more details, I had a quick test it seems the >>> from monai.networks.layers.factories import Act, Norm
>>> from monai.networks.nets import UNet
>>> net = UNet(2, 1, 1, (4,8,16), (2, 2), norm=Norm.BATCH)
>>> net(torch.zeros(1, 1, 64, 64))
tensor([[[[-0.3094, -0.3094, -0.3094, ..., -0.3094, -0.3094, -0.3094],
[-0.3094, -0.3094, -0.3094, ..., -0.3094, -0.3094, -0.3094],
[-0.3094, -0.3094, -0.3094, ..., -0.3094, -0.3094, -0.3094],
...,
[-0.3094, -0.3094, -0.3094, ..., -0.3094, -0.3094, -0.3094],
[-0.3094, -0.3094, -0.3094, ..., -0.3094, -0.3094, -0.3094],
[-0.3094, -0.3094, -0.3094, ..., -0.3094, -0.3094, -0.3094]]]],
grad_fn=<SlowConvTranspose2DBackward0>)
>>> |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone !
I would like to add batch normalization in monai
UNet
but I can't figure out how. I suppose I should use the argumentnorm
but I don't understand how ? I triednorm=Norm.BATCH
but this didn't work.Can anyone give me an exemple ?
Thanks you for your help !
Beta Was this translation helpful? Give feedback.
All reactions