class_docstr: ⚡ Constructor for the DETR Object Detection Model
  Warning: Currently support only DETR
class_docstr_tok: ["\u26a1","Constructor","for","the","DETR","Object","Detection","Model","Warning",":","Currently","support","only","DETR"]
code: def validation_step(self, batch, batch_idx):
      loss, loss_dict = self.common_step(batch, batch_idx)
  
      self.log("validation_loss", loss)
  
      for k, v in loss_dict.items():
          self.log("validation_" + k, v.item())
  
      return loss
  
file_path: HugsVision/build/lib/hugsvision/models/Detr.py
imports: import torch
  import pytorch_lightning
  from transformers import DetrConfig, DetrForObjectDetection
label_desc: Use image node_id 5 for calling the Detr obj's underlying member method code with example usage: obj.validation_step(batch, batch_idx) and returns: loss