From 40bc015b757f542b5e74811dc41fa918d7d1602b Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 8 May 2019 18:54:55 +0200 Subject: [PATCH] updates --- train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train.py b/train.py index 67038e85..f2d8d8ea 100644 --- a/train.py +++ b/train.py @@ -324,14 +324,14 @@ if __name__ == '__main__': # Mutate hyperparameters old_hyp = hyp.copy() init_seeds(seed=int(time.time())) - s = [.2, .2, .2, .2, .3, .2, .2, .02, .3] + s = [.2, .2, .2, .2, .3, .2, .2, .03, .3] 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 = ['iou_t', 'momentum', 'weight_decay'] - limits = [(0, 0.90), (0.80, 0.95), (0, 0.01)] + limits = [(0, 0.90), (0.75, 0.95), (0, 0.01)] for k, v in zip(keys, limits): hyp[k] = np.clip(hyp[k], v[0], v[1])