class_docstr: This class computes the loss for DETR.
  The process happens in two steps:
      1) we compute hungarian assignment between ground truth boxes and the outputs of the model
      2) we supervise each pair of matched ground-truth / prediction (supervise class and box)
class_docstr_tok: ["This","class","computes","the","loss","for","DETR",".","The","process","happens","in","two","steps",":","1",")","we","compute","hungarian","assignment","between","ground","truth","boxes","and","the","outputs","of","the","model","2",")","we","supervise","each","pair","of","matched","ground-truth","\/","prediction","(","supervise","class","and","box",")"]
code: def get_loss(
      self, loss, outputs, targets, indices, num_boxes, **kwargs
  ):
      loss_map = {
          "labels": self.loss_labels,
          "cardinality": self.loss_cardinality,
          "boxes": self.loss_boxes,
          "masks": self.loss_masks,
      }
      assert (
          loss in loss_map
      ), f"do you really want to compute {loss} loss?"
      return loss_map[loss](
          outputs, targets, indices, num_boxes, **kwargs
      )
  
imports: from collections import OrderedDict
  import torch
  from torch import nn
  from torch.jit.annotations import Dict
  from torch.nn import functional
label_desc: Use image node_id 8 for calling the SetCriterion obj's underlying member method code with example usage: obj.get_loss(loss, outputs, targets, indices, num_boxes) and returns: loss_map