Skip to content
Snippets Groups Projects
Commit a9d340e4 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 0287be78
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ SIGMA = 1.0
DO_ZERO_OUT = False
CACHE_FILE = '/scratch/long/rink/cld_opd_abi_128x128_cache'
USE_EMA = True
EMA_OVERWRITE_FREQUENCY = 5
# setup scaling parameters dictionary
mean_std_dct = {}
......@@ -482,7 +483,9 @@ class SRCNN:
self.learningRateSchedule = tf.keras.optimizers.schedules.ExponentialDecay(initial_learning_rate, decay_steps, decay_rate)
optimizer = tf.keras.optimizers.Adam(learning_rate=self.learningRateSchedule, use_ema=USE_EMA)
optimizer = tf.keras.optimizers.Adam(learning_rate=self.learningRateSchedule,
use_ema=USE_EMA,
ema_overwrite_frequency=EMA_OVERWRITE_FREQUENCY)
self.optimizer = optimizer
self.initial_learning_rate = initial_learning_rate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment