每轮返回中间值

This commit is contained in:
JIAKUNHAO 2022-11-28 17:26:46 +08:00
parent 5d3b268958
commit 1e8a08cf60

View File

@ -325,6 +325,7 @@ def train(hyp, opt, device, data_list,id,getsomething,callbacks): # hyp is path
report.rate_of_progess = ((i + 1) / num_epochs) * 100
report.progress = (i + 1)
report.end_time = datetime.now()
reportAccu = round(reportAccu,2)
report.precision[0].value.append(reportAccu)
if (i+1) == num_epochs:
report.isfinish = 2