  # source : https://github.com/shaoanlu/faceswap-GAN/blob/master/FaceSwap_GAN_v2_sz128_train.ipynbtemp/faceswap_GAN_keras.ipynb
  
  
  import enum
  
  import warnings
  warnings.filterwarnings("ignore", category=FutureWarning)
  
  from keras.initializers import RandomNormal
  from keras.layers import Input, Dense, Flatten, Reshape
 
</s> remove import os
import sys
 </s> add import lib.Serializer </s> remove from .instance_normalization import InstanceNormalization

 </s> add  </s> remove         
 </s> add         from json import JSONDecodeError </s> remove         for thread in threads:
            thread.start()            
 </s> add         print('\nsaving model weights', end='', flush=True)        
        from concurrent.futures import ThreadPoolExecutor, as_completed
import os
import sys
  # source : https://github.com/shaoanlu/faceswap-GAN/blob/master/FaceSwap_GAN_v2_sz128_train.ipynbtemp/faceswap_GAN_keras.ipynb
  
  
  import enum
import os
import sys
  import warnings
  warnings.filterwarnings("ignore", category=FutureWarning)
  
  from keras.initializers import RandomNormal
  from keras.layers import Input, Dense, Flatten, Reshape
keep keep keep keep replace keep keep keep keep keep
 Update Model.py (#424)

- Added saving state (currently only saved epoch number, to be extended in future)
- Changed saving to ThreadPoolExecutor 
plugins/Model_OriginalHighRes/Model.py