3D image L2 distance loss #5825
Answered
by
KumoLiu
YingdiZhang
asked this question in
Q&A
-
Thanks for the great job. I am doing a 3D medical image landmark heatmap regression task. I consider using L2 distance as loss function, how should I realize it in MONAI? I found monai.metrics.MSEMetric, may be it can be used in loss function? |
Beta Was this translation helpful? Give feedback.
Answered by
KumoLiu
Jan 9, 2023
Replies: 1 comment
-
Hi @YingdiZhang, maybe you could use Hope it can help you, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YingdiZhang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @YingdiZhang, maybe you could use
torch.nn.MSELoss
, you can find a reference in this tutorial.Hope it can help you, thanks!