                  self.save_model_weights()
                  exit()
  
  
  class DirectoryProcessor(object):
      '''
      Abstract class that processes a directory of images
 
</s> remove             if epoch % 100 == 0:
 </s> add             if epoch % self.arguments.save_interval == 0: </s> remove         else:
 </s> add         if not self.arguments.preview or self.arguments.write_image:
            if self.arguments.verbose:
                end_time = time.time()
                time_elapsed = int(round((end_time - start_time)))
                m, s = divmod(time_elapsed, 60)
                h, m = divmod(m, 60)
                print("Iteration done in {:02d}h{:02d}m{:02d}s".format(h, m, s))
                  self.save_model_weights()
                  exit()
            if self.arguments.verbose:
                end_time = time.time()
                time_elapsed = int(round((end_time - start_time)))
                m, s = divmod(time_elapsed, 60)
                h, m = divmod(m, 60)
                print("Iteration done in {:02d}h{:02d}m{:02d}s".format(h, m, s))
  
  
  class DirectoryProcessor(object):
      '''
      Abstract class that processes a directory of images
keep add keep keep keep keep keep
 Improvement of the train action usability. (#37)

* Improvement of the train action usability.

* Prints the current iteration number in verbose mode.
* The number of iterations before saving the data can be changed by a command line optin.

* Added option to write training result to file even when in preview.

* Prints time elapsed for each iteration in verbose mode when training. 
lib/cli.py