  import cv2
  import numpy
  
  from lib.utils import get_image_paths, get_folder, load_images, stack_images
  from lib.faces_detect import crop_faces
  from lib.training_data import get_training_data
  
  from lib.model import autoencoder_A, autoencoder_B
 
</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:
import time
  import cv2
  import numpy
import time
  
  from lib.utils import get_image_paths, get_folder, load_images, stack_images
  from lib.faces_detect import crop_faces
  from lib.training_data import get_training_data
  
  from lib.model import autoencoder_A, autoencoder_B
keep add keep 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