(self)
ema_weights初始化跟原模型初始化一致。
ema_weights初始化跟原模型初始化一致。
ema_weights初始化跟原模型初始化一致。
def initialize(self):
        """ema_weights初始化跟原模型初始化一致。
        """
        self.old_weights = K.batch_get_value(self.model.weights)
        K.batch_set_value(zip(self.ema_weights, self.old_weights))
def initialize ( self ) : self . old_weights = K . batch_get_value ( self . model . weights ) K . batch_set_value ( zip ( self . ema_weights , self . old_weights ) )