  # Improved-AutoEncoder base classes
  
  
  encoderH5 = 'IAE_encoder.h5'
  decoderH5 = 'IAE_decoder.h5'
  inter_AH5 = 'IAE_inter_A.h5'
  inter_BH5 = 'IAE_inter_B.h5'
 
</s> remove     dir_scanned = list(scandir(directory))
 </s> add     dir_scanned = sorted(os.scandir(directory), key=lambda x: x.name) </s> remove                     print ('no alignment found for {}, skipping'.format(os.path.basename(filename)))
 </s> add                     tqdm.write ('no alignment found for {}, skipping'.format(os.path.basename(filename)))
import os, shutil
  # Improved-AutoEncoder base classes
  
import os, shutil
  
  encoderH5 = 'IAE_encoder.h5'
  decoderH5 = 'IAE_decoder.h5'
  inter_AH5 = 'IAE_inter_A.h5'
  inter_BH5 = 'IAE_inter_B.h5'
keep add keep keep keep keep keep
 Model backups before saving (#349)

* Sort images properly (to make the frame range parameter meaningfull)

* Add backup mechanism for model weights.

* Replace 'print' call by 'tqdm.write' call. 
plugins/Model_IAE/AutoEncoder.py