          logger.debug("Generating preview")
          if self.preview_feed is None:
              self.set_preview_feed()
          batch = next(self.preview_feed)
          self.samples = batch[0]
          batch = batch[1:]   # Remove full size samples from batch
          if self.use_mask:
              batch = self.compile_mask(batch)
          self.target = batch[1]
  
      def set_preview_feed(self):
 
</s> remove             batch = self.compile_mask(batch)
        self.target = batch[1]
 </s> add             mask = batch[-1]
            batch = [[feed, mask], batch]
            self.target = [self.target, mask] </s> remove         samples = batch[0]
        batch = batch[1:]   # Remove full size samples from batch
 </s> add         samples, feed = batch[:2] </s> remove         batch = batch[1:]   # Remove full size samples from batch
 </s> add         feed = batch[1]
        batch = batch[2:]   # Remove full size samples and feed from batch </s> remove             batch = self.compile_mask(batch)
        images = batch[1]
 </s> add             mask = batch[-1]
            batch = [[feed, mask], batch]
            images = [images, mask] </s> remove             batch = self.compile_mask(batch)
 </s> add             # Add mask to inputs
            mask = batch[-1]
            batch = [[feed, mask], batch]
        self.samples, feed = batch[:2]
        batch = batch[2:]   # Remove full size samples and feed from batch
        self.target = batch[self.model.largest_face_index]
          logger.debug("Generating preview")
          if self.preview_feed is None:
              self.set_preview_feed()
          batch = next(self.preview_feed)
        self.samples, feed = batch[:2]
        batch = batch[2:]   # Remove full size samples and feed from batch
        self.target = batch[self.model.largest_face_index]
        self.samples, feed = batch[:2]
        batch = batch[2:]   # Remove full size samples and feed from batch
        self.target = batch[self.model.largest_face_index]
          if self.use_mask:
              batch = self.compile_mask(batch)
          self.target = batch[1]
  
      def set_preview_feed(self):
keep keep keep keep replace 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 
plugins/train/trainer/_base.py