提交 9a2e827b 编写于 作者: F FlyingQianMM

delete start_epocj

上级 fb0dd18a
......@@ -364,7 +364,6 @@ class BaseAPI:
num_epochs,
train_dataset,
train_batch_size,
start_epoch=0,
eval_dataset=None,
save_interval_epochs=1,
log_interval_steps=10,
......@@ -439,6 +438,7 @@ class BaseAPI:
best_accuracy_key = ""
best_accuracy = -1.0
best_model_epoch = -1
start_epoch = self.completed_epochs
for i in range(start_epoch, num_epochs):
records = list()
step_start_time = time.time()
......
......@@ -164,12 +164,8 @@ class BaseClassifier(BaseAPI):
sensitivities_file=sensitivities_file,
eval_metric_loss=eval_metric_loss,
resume_checkpoint=resume_checkpoint)
start_epoch = 0
if resume_checkpoint:
start_epoch = self.completed_epochs
# 训练
self.train_loop(
start_epoch=start_epoch,
num_epochs=num_epochs,
train_dataset=train_dataset,
train_batch_size=train_batch_size,
......
......@@ -288,12 +288,8 @@ class DeepLabv3p(BaseAPI):
sensitivities_file=sensitivities_file,
eval_metric_loss=eval_metric_loss,
resume_checkpoint=resume_checkpoint)
start_epoch = 0
if resume_checkpoint:
start_epoch = self.completed_epochs
# 训练
self.train_loop(
start_epoch=start_epoch,
num_epochs=num_epochs,
train_dataset=train_dataset,
train_batch_size=train_batch_size,
......
......@@ -235,12 +235,9 @@ class FasterRCNN(BaseAPI):
fuse_bn=fuse_bn,
save_dir=save_dir,
resume_checkpoint=resume_checkpoint)
start_epoch = 0
if resume_checkpoint:
start_epoch = self.completed_epochs
# 训练
self.train_loop(
start_epoch=start_epoch,
num_epochs=num_epochs,
train_dataset=train_dataset,
train_batch_size=train_batch_size,
......
......@@ -202,12 +202,8 @@ class MaskRCNN(FasterRCNN):
fuse_bn=fuse_bn,
save_dir=save_dir,
resume_checkpoint=resume_checkpoint)
start_epoch = 0
if resume_checkpoint:
start_epoch = self.completed_epochs
# 训练
self.train_loop(
start_epoch=start_epoch,
num_epochs=num_epochs,
train_dataset=train_dataset,
train_batch_size=train_batch_size,
......
......@@ -240,12 +240,8 @@ class YOLOv3(BaseAPI):
sensitivities_file=sensitivities_file,
eval_metric_loss=eval_metric_loss,
resume_checkpoint=resume_checkpoint)
start_epoch = 0
if resume_checkpoint:
start_epoch = self.completed_epochs
# 训练
self.train_loop(
start_epoch=start_epoch,
num_epochs=num_epochs,
train_dataset=train_dataset,
train_batch_size=train_batch_size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册