          for loss_key in sorted(loss_keys):
              text = loss_key.replace("_", " ").title()
              helptext = "Display {}".format(text)
              var = tk.BooleanVar()
              if loss_key.startswith("loss"):
                  var.set(True)
              lk_vars[loss_key] = var
  
              if len(loss_keys) == 1:
                  # Don't display if there's only one item
 
</s> remove         for loss_key in self.display_item.loss_keys:
 </s> add         display_tabs = sorted(self.display_item.loss_keys)
        if any(key.startswith("total") for key in display_tabs):
            total_idx = [idx for idx, key in enumerate(display_tabs) if key.startswith("total")][0]
            display_tabs.insert(0, display_tabs.pop(total_idx))
        for loss_key in display_tabs: </s> remove             mask = [inp for inp in model.inputs if inp.name.startswith("mask")]
            loss_names = ["loss"]
            loss_funcs = [self.loss_function(mask, side, initialize)]
            if mask:
                loss_names.append("mask_loss")
                loss_funcs.append(self.mask_loss_function(side, initialize))
            model.compile(optimizer=optimizer, loss=loss_funcs)

            if len(loss_names) > 1:
                loss_names.insert(0, "total_loss")
 </s> add             mask_input = [inp for inp in model.inputs if inp.name.startswith("mask")]
            loss = Loss(side, model.outputs, mask_input, self.predict)
            model.compile(optimizer=optimizer, loss=loss.funcs) </s> remove         if len(loss) < 2:
 </s> add         if len(loss) != 2 or not all(len(itm) == 3 for itm in loss): </s> remove         message = ""
        for item in loss:
            message += "{}: {}  ".format(item[0], item[1])
 </s> add         message = "Total Iterations: {} | ".format(int(loss[0][0]))
        message += "  ".join(["{}: {}".format(itm[1], itm[2]) for itm in loss])
            if loss_key.startswith("total"):
          for loss_key in sorted(loss_keys):
              text = loss_key.replace("_", " ").title()
              helptext = "Display {}".format(text)
              var = tk.BooleanVar()
            if loss_key.startswith("total"):
                  var.set(True)
              lk_vars[loss_key] = var
  
              if len(loss_keys) == 1:
                  # Don't display if there's only one item
keep keep keep keep replace keep keep keep keep keep
 Training: Add Multi-Output Support

- Name output nodes of models
- Add support for multiple outputs in models and in training
- Update loss output format for cli and gui
- Sort graphs tabs on training
- Fix analysis graph for new loss names
- Multi output support in convert 
lib/gui/display_analysis.py