-
Dear community, The same example with AE MONAI model works ok.
The script I use:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
the network's output has 4 elements, so it's not directly usable with the slice inferer, MONAI/monai/networks/nets/varautoencoder.py Line 154 in e4a0de9 you can define a new model, which returns the first element of the original model: def _model(x):
outputs = model(x)
return outputs[0]
recon = slice_inferer(val_inputs, _model) |
Beta Was this translation helpful? Give feedback.
the network's output has 4 elements, so it's not directly usable with the slice inferer,
MONAI/monai/networks/nets/varautoencoder.py
Line 154 in e4a0de9
you can define a new model, which returns the first element of the original model: