code: def __init__(
      self,
      eikonal_weight,
      mask_weight,
      reg_weight,
      normal_weight,
      alpha,
  ):
      super().__init__()
      self.eikonal_weight = eikonal_weight
      self.mask_weight = mask_weight
      self.reg_weight = reg_weight
      self.normal_weight = normal_weight
      self.alpha = alpha
      self.l1_loss = nn.L1Loss(reduction="sum")
      self.l2_loss = nn.MSELoss(reduction="sum")
      self.cosine = nn.CosineSimilarity()
  
file_path: insightface/reconstruction/PBIDR/code/model/loss.py
imports: import torch
  from torch import nn
  from torch.nn import functional
label_desc: Use image node_id 1 to create a new IFLoss object from inherited base classes: nn with example: obj = IFLoss(eikonal_weight, mask_weight, reg_weight, normal_weight, alpha)