import tensorflow as tf
import importlib
import pickle
stylegan = importlib.import_module('StyleGANModel')
print(tf.__version__)
all_weights = pickle.load(open('gs_weights.pkl', 'rb'))
stylegan.copy_weights_to_keras_model(model.model_mapping, all_weights)
stylegan.copy_weights_to_keras_model(model.model_synthesis, all_weights)
model.save('my_model')

4cbb1bbde0f7391e9097fe7a2873b4c5c1c846a4
<mask token>

<mask token>
print(tf.__version__)
<mask token>
stylegan.copy_weights_to_keras_model(model.model_mapping, all_weights)
stylegan.copy_weights_to_keras_model(model.model_synthesis, all_weights)
model.save('my_model')

<mask token>
stylegan = importlib.import_module('StyleGANModel')
print(tf.__version__)
all_weights = pickle.load(open('gs_weights.pkl', 'rb'))
stylegan.copy_weights_to_keras_model(model.model_mapping, all_weights)
stylegan.copy_weights_to_keras_model(model.model_synthesis, all_weights)
model.save('my_model')

import tensorflow as tf
import importlib
import pickle
stylegan = importlib.import_module('StyleGANModel')
print(tf.__version__)
all_weights = pickle.load(open('gs_weights.pkl', 'rb'))
stylegan.copy_weights_to_keras_model(model.model_mapping, all_weights)
stylegan.copy_weights_to_keras_model(model.model_synthesis, all_weights)
model.save('my_model')
