              logger.debug("Output names are unique, not rewriting: %s", self._model.output_names)
              return
          seen = {name: 0 for name in set(self._model.output_names)}
          new_names = []
          for name in self._model.output_names:
              new_names.append(f"{name}_{seen[name]}")
              seen[name] += 1
          logger.debug("Output names rewritten: (old: %s, new: %s)",
                       self._model.output_names, new_names)
          self._model.output_names = new_names
 
</s> remove         seen = {name: 0 for name in set(self._model.output_names)}
 </s> add         seen = {name: 0 for name in set(self.model.output_names)} </s> remove                      self._model.output_names, new_names)
        self._model.output_names = new_names
 </s> add                      self.model.output_names, new_names)
        self.model.output_names = new_names </s> remove         if len(self._model.output_names) == len(set(self._model.output_names)):
            logger.debug("Output names are unique, not rewriting: %s", self._model.output_names)
 </s> add         if len(self.model.output_names) == len(set(self.model.output_names)):
            logger.debug("Output names are unique, not rewriting: %s", self.model.output_names) </s> remove             name = "af_subframe_{}".format(idx)
 </s> add             name = f"af_subframe_{idx}" </s> remove         face_losses = [(self._loss_dict[v], self._config.get(f"loss_weight_{k[-1]}", 100))
                       for k, v in sorted(self._config.items())
 </s> add         face_losses = [(lossname, self._config.get(f"loss_weight_{k[-1]}", 100))
                       for k, lossname in sorted(self._config.items())
        for name in self.model.output_names:
              logger.debug("Output names are unique, not rewriting: %s", self._model.output_names)
              return
          seen = {name: 0 for name in set(self._model.output_names)}
          new_names = []
        for name in self.model.output_names:
              new_names.append(f"{name}_{seen[name]}")
              seen[name] += 1
          logger.debug("Output names rewritten: (old: %s, new: %s)",
                       self._model.output_names, new_names)
          self._model.output_names = new_names
keep keep keep keep replace keep keep keep keep keep
 Core updates
   - Change loss loading mechanism
   - Autosize tooltips based on content size
   - Random linting + code modernisation 
plugins/train/model/_base/model.py