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 configure_optimizers(self):
      param_dicts = [
          {
              "params": [
                  p
                  for n, p in self.named_parameters()
                  if "backbone" not in n and p.requires_grad
              ]
          },
          {
              "params": [
                  p
                  for n, p in self.named_parameters()
                  if "backbone" in n and p.requires_grad
              ],
              "lr": self.lr_backbone,
          },
      ]
  
      optimizer = torch.optim.AdamW(
          param_dicts, lr=self.lr, weight_decay=self.weight_decay
      )
  
      return optimizer
  
file_path: HugsVision/hugsvision/models/Detr.py
imports: import torch
  import pytorch_lightning
  from transformers import DetrConfig, DetrForObjectDetection
label_desc: Use image node_id 6 for calling the Detr obj's underlying member method code with example usage: obj.configure_optimizers() and returns: optimizer