  # Based on the https://github.com/shaoanlu/faceswap-GAN repo (master/temp/faceswap_GAN_keras.ipynb)
  
  from keras.models import Model
  from keras.layers import *
  from keras.layers.advanced_activations import LeakyReLU
  from keras.activations import relu
 
</s>
import os
import shutil

  # Based on the https://github.com/shaoanlu/faceswap-GAN repo (master/temp/faceswap_GAN_keras.ipynb)
  
import os
import shutil
  from keras.models import Model
  from keras.layers import *
  from keras.layers.advanced_activations import LeakyReLU
  from keras.activations import relu
keep add 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_GAN/Model.py