dgs.models.metric.metric.IOUDistance

class dgs.models.metric.metric.IOUDistance(*args: Any, **kwargs: Any)[source]

Class to compute the intersection-over-union distance.

Defined as \(d=1-IoU\)

__init__(*args, **kwargs)[source]

Methods

forward(input1, input2)

Compute the intersection-over-union between two input tensors.