          """ Set shutdown event, clear and send EOF to all queues
              To be called if there is an error """
          logger.debug("QueueManager terminating all queues")
          self.shutdown.set()
          for q_name, queue in self.queues.items():
              logger.debug("QueueManager terminating: '%s'", q_name)
              queue.put("EOF")
          logger.debug("QueueManager terminated all queues")
  
 
</s> remove             while not queue.empty():
                queue.get(True, 1)
 </s> add  </s> remove         x_offset = int(34 * get_config().scaling_factor)
 </s> add         scaling_factor = get_config().scaling_factor if get_config() is not None else 1.0
        x_offset = int(34 * scaling_factor) </s> remove         if self.args.trainer:
 </s> add         if hasattr(self.args, "trainer") and self.args.trainer:
        self.flush_queues()
          """ Set shutdown event, clear and send EOF to all queues
              To be called if there is an error """
          logger.debug("QueueManager terminating all queues")
          self.shutdown.set()
        self.flush_queues()
          for q_name, queue in self.queues.items():
              logger.debug("QueueManager terminating: '%s'", q_name)
              queue.put("EOF")
          logger.debug("QueueManager terminated all queues")
  
keep keep keep add keep keep keep keep keep
 Convert settings tool (#737)

* Initial prediction pipeline and display

* Patch faces from convert pipeline. Load configs

* Add tkinter canvas for image display

* Radio buttons to config gui. Standardise config gui. Remove dssim loss from realface

* Add action frame

* Live update cli options

* Live update config changes

* Quicker frame loading. Refresh faces button callback

* remove debug code

* Add saving and reloading config buttons

* Reduce lag with threading

* Busy indicator + geometry updates

* Fix options canvas resizing

* Add global config saving and resetting

* tools to own tab

* Rename tool to 'preview'

* geometry tweak

* pep8 fixes 
lib/queue_manager.py