updates
This commit is contained in:
parent
663e06f4f9
commit
46c55ac3bd
5
train.py
5
train.py
|
@ -263,6 +263,10 @@ if __name__ == '__main__':
|
||||||
opt = parser.parse_args()
|
opt = parser.parse_args()
|
||||||
print(opt, end='\n\n')
|
print(opt, end='\n\n')
|
||||||
|
|
||||||
|
if opt.evolve:
|
||||||
|
opt.notest = True # save time by only testing final epoch
|
||||||
|
opt.nosave = True # do not save checkpoints
|
||||||
|
|
||||||
# Train
|
# Train
|
||||||
results = train(
|
results = train(
|
||||||
opt.cfg,
|
opt.cfg,
|
||||||
|
@ -279,7 +283,6 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Evolve hyperparameters (optional)
|
# Evolve hyperparameters (optional)
|
||||||
if opt.evolve:
|
if opt.evolve:
|
||||||
opt.notest = True # save time by only testing final epoch
|
|
||||||
best_fitness = results[2] # use mAP for fitness
|
best_fitness = results[2] # use mAP for fitness
|
||||||
|
|
||||||
gen = 30 # generations to evolve
|
gen = 30 # generations to evolve
|
||||||
|
|
Loading…
Reference in New Issue