          self._refresh_preview = False
          self._preview_buffer = dict()
          self._lock = Lock()
  
          self.trainer_name = self._args.trainer
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def _get_images(self):
          """ Check the image folders exist and contains images and obtain image paths.
  
 
</s> remove         self._model.summary(print_fn=lambda x: logger.verbose("%s", x))
 </s> add         if hasattr(self._args, "summary") and self._args.summary:
            print_fn = None  # Print straight to stdout
        else:
            print_fn = lambda x: logger.verbose("%s", x)  # print to logger
        self._model.summary(print_fn=print_fn) </s> remove             if not self._is_predict:
 </s> add             if not is_summary and not self._is_predict: </s> remove         model = PluginLoader.get_model(self.trainer_name)(
 </s> add         model = PluginLoader.get_model(self._args.trainer)(
          self._refresh_preview = False
          self._preview_buffer = dict()
          self._lock = Lock()
  

          logger.debug("Initialized %s", self.__class__.__name__)
  
      def _get_images(self):
          """ Check the image folders exist and contains images and obtain image paths.
  
keep keep keep keep replace keep keep keep keep keep
 train - Add option to output model summary and exit 
scripts/train.py