db8324230b2f99a589f49d13bd0950060646bf46,plugins/Model_GAN128/Model.py,GANModel,save_weights,#GANModel#,183
Before Change
return True
def save_weights(self):
self.netGA.save_weights(str(self.model_dir / netGAH5))
self.netGB.save_weights(str(self.model_dir / netGBH5))
self.netDA.save_weights(str(self.model_dir / netDAH5))
self.netDB.save_weights(str(self.model_dir / netDBH5))
After Change
return True
def save_weights(self):
if self.gpus > 1:
self.netGA_sm.save_weights(str(self.model_dir / netGAH5))
self.netGB_sm.save_weights(str(self.model_dir / netGBH5))
else:
self.netGA.save_weights(str(self.model_dir / netGAH5))
self.netGB.save_weights(str(self.model_dir / netGBH5))
self.netDA.save_weights(str(self.model_dir / netDAH5))
self.netDB.save_weights(str(self.model_dir / netDBH5))
print ("Models saved.")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepfakes/faceswap
Commit Name: db8324230b2f99a589f49d13bd0950060646bf46
Time: 2018-03-14
Author: bryanlyon@mail.weber.edu
File Name: plugins/Model_GAN128/Model.py
Class Name: GANModel
Method Name: save_weights
Project Name: deepfakes/faceswap
Commit Name: fc457b69aa9b1dc5e97df1bebef1027935f2258a
Time: 2018-03-12
Author: bryanlyon@mail.weber.edu
File Name: plugins/Model_GAN/Model.py
Class Name: GANModel
Method Name: save_weights
Project Name: deepmipt/DeepPavlov
Commit Name: 286a864220a00732d382a75051e11877acf13c3f
Time: 2018-01-24
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: save