updates
This commit is contained in:
parent
425ed4b84b
commit
78bb153d7d
4
train.py
4
train.py
|
@ -430,8 +430,8 @@ if __name__ == '__main__':
|
|||
hyp[k] = x[i + 7]
|
||||
|
||||
# Mutate
|
||||
init_seeds(seed=int(time.time()))
|
||||
s = [.20, .20, .20, .20, .20, .20, .20, .00, .02, .20, .20, .20, .20, .20, .20, .20, .20] # sigmas
|
||||
np.random.seed(int(time.time()))
|
||||
s = [.1, .1, .1, .1, .1, .1, .1, .0, .02, .2, .2, .2, .2, .2, .2, .2, .2] # sigmas
|
||||
for i, k in enumerate(hyp.keys()):
|
||||
x = (np.random.randn(1) * s[i] + 1) ** 2.0 # plt.hist(x.ravel(), 300)
|
||||
hyp[k] *= float(x) # vary by sigmas
|
||||
|
|
|
@ -4,7 +4,6 @@ import torch
|
|||
|
||||
|
||||
def init_seeds(seed=0):
|
||||
torch.cuda.empty_cache()
|
||||
torch.manual_seed(seed)
|
||||
torch.cuda.manual_seed(seed)
|
||||
torch.cuda.manual_seed_all(seed)
|
||||
|
|
Loading…
Reference in New Issue