          else:
              input() # TODO how to catch a specific key instead of Enter?
  
          print("Exit requested! The trainer will complete its current cycle, save the models and quit (it can take up a couple of seconds depending on your training speed). If you want to kill it now, press Ctrl + c")
          self.stop = True
          thr.join() # waits until thread finishes
  
      def processThread(self):
 
</s> remove                 for name, image in self.preview_buffer.items():
                    cv2.imshow(name, image)

                key = cv2.waitKey(1000)
                if key == ord('\n') or key == ord('\r'):
 </s> add                 try:
                    for name, image in self.preview_buffer.items():
                        cv2.imshow(name, image)

                    key = cv2.waitKey(1000)
                    if key == ord('\n') or key == ord('\r'):
                        break
                    if key == ord('s'):
                        self.save_now = True
                except KeyboardInterrupt: </s> remove         variant = "Original" # TODO Pass as argument
        
 </s> add  </s> remove         trainer = PluginLoader.get_trainer(variant)(model, images_A, images_B)
 </s> add         trainer = PluginLoader.get_trainer(self.arguments.trainer)(model,
                                                                   images_A,
                                                                   images_B,
                                                                   batch_size=self.arguments.batch_size) </s> remove         model = PluginLoader.get_model(variant)(self.arguments.model_dir)
 </s> add         model = PluginLoader.get_model(self.arguments.trainer)(self.arguments.model_dir)
            # there isnt a good multiplatform solution: https://stackoverflow.com/questions/3523174/raw-input-in-python-without-pressing-enter
          else:
              input() # TODO how to catch a specific key instead of Enter?
            # there isnt a good multiplatform solution: https://stackoverflow.com/questions/3523174/raw-input-in-python-without-pressing-enter
  
          print("Exit requested! The trainer will complete its current cycle, save the models and quit (it can take up a couple of seconds depending on your training speed). If you want to kill it now, press Ctrl + c")
          self.stop = True
          thr.join() # waits until thread finishes
  
      def processThread(self):
keep add keep keep keep keep keep keep
 added batch-size cli argumet.
neatened up train.py and added LowMem trainer option.
Added save_now/show key to preview. 
scripts/train.py