From ef3e1343e25eeea0bb230b89f17c5794321904a2 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 22 Jun 2019 15:52:27 +0200 Subject: [PATCH] updates --- train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train.py b/train.py index b1f0489e..c8e9408b 100644 --- a/train.py +++ b/train.py @@ -363,14 +363,14 @@ if __name__ == '__main__': # Mutate hyperparameters old_hyp = hyp.copy() init_seeds(seed=int(time.time())) - s = [.4, .4, .4, .4, .4, .4, .4, .4, .4, .04, .4] # fractional sigmas + s = [.4, .4, .4, .4, .4, .4, .4, .4*0, .4*0, .04*0, .4*0] # fractional sigmas for i, k in enumerate(hyp.keys()): x = (np.random.randn(1) * s[i] + 1) ** 1.1 # plt.hist(x.ravel(), 100) hyp[k] = hyp[k] * float(x) # vary by about 30% 1sigma # Clip to limits keys = ['lr0', 'iou_t', 'momentum', 'weight_decay'] - limits = [(1e-4, 1e-2), (0, 0.00), (0.70, 0.99), (0, 0.01)] + limits = [(1e-4, 1e-2), (0, 0.70), (0.70, 0.98), (0, 0.01)] for k, v in zip(keys, limits): hyp[k] = np.clip(hyp[k], v[0], v[1])