This commit is contained in:
2022-11-23 19:53:10 +08:00
3 changed files with 6 additions and 9 deletions

View File

@ -326,6 +326,8 @@ def train(hyp, opt, device, data_list,id,callbacks): # hyp is path/to/hyp.yaml
report.progress = (i + 1)
report.end_time = datetime.now()
report.precision[0].value.append(reportAccu)
if (i+1) == num_epochs:
report.isfinish = 2
return report.dict()
###################结束#######################
for epoch in range(start_epoch, epochs): # epoch ------------------------------------------------------------------