tumourkit.segmentation.hovernet.models.hovernet.utils
Functions
Center crop image. |
|
Centre crop x so that x has shape of y. |
|
pred and true must be of torch.float32. |
|
Calculate mean squared error loss. |
|
Calculate the mean squared error of the gradients of horizontal and vertical map predictions. |
|
Cross entropy loss. |