From b177d01695f334c9fe294fbf01c21737a1f1c580 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 18 Apr 2019 15:01:58 +0200 Subject: [PATCH] updates --- train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train.py b/train.py index 82cd3642..ce2be533 100644 --- a/train.py +++ b/train.py @@ -301,14 +301,14 @@ if __name__ == '__main__': # Mutate hyperparameters old_hyp = hyp.copy() init_seeds(seed=int(time.time())) - s = [.3, .3, .3, .3, .3, .3, .3, .3, .05, .3] + s = [.3, .3, .3, .3, .3, .3, .3, .3, .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 # Apply limits hyp['iou_t'] = np.clip(hyp['iou_t'], 0, 0.90) - hyp['momentum'] = np.clip(hyp['momentum'], 0.7, 0.98) + hyp['momentum'] = np.clip(hyp['momentum'], 0.8, 0.95) hyp['weight_decay'] = np.clip(hyp['weight_decay'], 0, 0.01) # Normalize loss components (sum to 1)