updates
This commit is contained in:
parent
f501a0fc9d
commit
ef3e1343e2
4
train.py
4
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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue