Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleX
提交
9a2e827b
P
PaddleX
项目概览
PaddlePaddle
/
PaddleX
通知
138
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
43
列表
看板
标记
里程碑
合并请求
5
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleX
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
43
Issue
43
列表
看板
标记
里程碑
合并请求
5
合并请求
5
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9a2e827b
编写于
5月 12, 2020
作者:
F
FlyingQianMM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete start_epocj
上级
fb0dd18a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
2 addition
and
21 deletion
+2
-21
paddlex/cv/models/base.py
paddlex/cv/models/base.py
+1
-1
paddlex/cv/models/classifier.py
paddlex/cv/models/classifier.py
+0
-4
paddlex/cv/models/deeplabv3p.py
paddlex/cv/models/deeplabv3p.py
+0
-4
paddlex/cv/models/faster_rcnn.py
paddlex/cv/models/faster_rcnn.py
+1
-4
paddlex/cv/models/mask_rcnn.py
paddlex/cv/models/mask_rcnn.py
+0
-4
paddlex/cv/models/yolo_v3.py
paddlex/cv/models/yolo_v3.py
+0
-4
未找到文件。
paddlex/cv/models/base.py
浏览文件 @
9a2e827b
...
@@ -364,7 +364,6 @@ class BaseAPI:
...
@@ -364,7 +364,6 @@ class BaseAPI:
num_epochs
,
num_epochs
,
train_dataset
,
train_dataset
,
train_batch_size
,
train_batch_size
,
start_epoch
=
0
,
eval_dataset
=
None
,
eval_dataset
=
None
,
save_interval_epochs
=
1
,
save_interval_epochs
=
1
,
log_interval_steps
=
10
,
log_interval_steps
=
10
,
...
@@ -439,6 +438,7 @@ class BaseAPI:
...
@@ -439,6 +438,7 @@ class BaseAPI:
best_accuracy_key
=
""
best_accuracy_key
=
""
best_accuracy
=
-
1.0
best_accuracy
=
-
1.0
best_model_epoch
=
-
1
best_model_epoch
=
-
1
start_epoch
=
self
.
completed_epochs
for
i
in
range
(
start_epoch
,
num_epochs
):
for
i
in
range
(
start_epoch
,
num_epochs
):
records
=
list
()
records
=
list
()
step_start_time
=
time
.
time
()
step_start_time
=
time
.
time
()
...
...
paddlex/cv/models/classifier.py
浏览文件 @
9a2e827b
...
@@ -164,12 +164,8 @@ class BaseClassifier(BaseAPI):
...
@@ -164,12 +164,8 @@ class BaseClassifier(BaseAPI):
sensitivities_file
=
sensitivities_file
,
sensitivities_file
=
sensitivities_file
,
eval_metric_loss
=
eval_metric_loss
,
eval_metric_loss
=
eval_metric_loss
,
resume_checkpoint
=
resume_checkpoint
)
resume_checkpoint
=
resume_checkpoint
)
start_epoch
=
0
if
resume_checkpoint
:
start_epoch
=
self
.
completed_epochs
# 训练
# 训练
self
.
train_loop
(
self
.
train_loop
(
start_epoch
=
start_epoch
,
num_epochs
=
num_epochs
,
num_epochs
=
num_epochs
,
train_dataset
=
train_dataset
,
train_dataset
=
train_dataset
,
train_batch_size
=
train_batch_size
,
train_batch_size
=
train_batch_size
,
...
...
paddlex/cv/models/deeplabv3p.py
浏览文件 @
9a2e827b
...
@@ -288,12 +288,8 @@ class DeepLabv3p(BaseAPI):
...
@@ -288,12 +288,8 @@ class DeepLabv3p(BaseAPI):
sensitivities_file
=
sensitivities_file
,
sensitivities_file
=
sensitivities_file
,
eval_metric_loss
=
eval_metric_loss
,
eval_metric_loss
=
eval_metric_loss
,
resume_checkpoint
=
resume_checkpoint
)
resume_checkpoint
=
resume_checkpoint
)
start_epoch
=
0
if
resume_checkpoint
:
start_epoch
=
self
.
completed_epochs
# 训练
# 训练
self
.
train_loop
(
self
.
train_loop
(
start_epoch
=
start_epoch
,
num_epochs
=
num_epochs
,
num_epochs
=
num_epochs
,
train_dataset
=
train_dataset
,
train_dataset
=
train_dataset
,
train_batch_size
=
train_batch_size
,
train_batch_size
=
train_batch_size
,
...
...
paddlex/cv/models/faster_rcnn.py
浏览文件 @
9a2e827b
...
@@ -235,12 +235,9 @@ class FasterRCNN(BaseAPI):
...
@@ -235,12 +235,9 @@ class FasterRCNN(BaseAPI):
fuse_bn
=
fuse_bn
,
fuse_bn
=
fuse_bn
,
save_dir
=
save_dir
,
save_dir
=
save_dir
,
resume_checkpoint
=
resume_checkpoint
)
resume_checkpoint
=
resume_checkpoint
)
start_epoch
=
0
if
resume_checkpoint
:
start_epoch
=
self
.
completed_epochs
# 训练
# 训练
self
.
train_loop
(
self
.
train_loop
(
start_epoch
=
start_epoch
,
num_epochs
=
num_epochs
,
num_epochs
=
num_epochs
,
train_dataset
=
train_dataset
,
train_dataset
=
train_dataset
,
train_batch_size
=
train_batch_size
,
train_batch_size
=
train_batch_size
,
...
...
paddlex/cv/models/mask_rcnn.py
浏览文件 @
9a2e827b
...
@@ -202,12 +202,8 @@ class MaskRCNN(FasterRCNN):
...
@@ -202,12 +202,8 @@ class MaskRCNN(FasterRCNN):
fuse_bn
=
fuse_bn
,
fuse_bn
=
fuse_bn
,
save_dir
=
save_dir
,
save_dir
=
save_dir
,
resume_checkpoint
=
resume_checkpoint
)
resume_checkpoint
=
resume_checkpoint
)
start_epoch
=
0
if
resume_checkpoint
:
start_epoch
=
self
.
completed_epochs
# 训练
# 训练
self
.
train_loop
(
self
.
train_loop
(
start_epoch
=
start_epoch
,
num_epochs
=
num_epochs
,
num_epochs
=
num_epochs
,
train_dataset
=
train_dataset
,
train_dataset
=
train_dataset
,
train_batch_size
=
train_batch_size
,
train_batch_size
=
train_batch_size
,
...
...
paddlex/cv/models/yolo_v3.py
浏览文件 @
9a2e827b
...
@@ -240,12 +240,8 @@ class YOLOv3(BaseAPI):
...
@@ -240,12 +240,8 @@ class YOLOv3(BaseAPI):
sensitivities_file
=
sensitivities_file
,
sensitivities_file
=
sensitivities_file
,
eval_metric_loss
=
eval_metric_loss
,
eval_metric_loss
=
eval_metric_loss
,
resume_checkpoint
=
resume_checkpoint
)
resume_checkpoint
=
resume_checkpoint
)
start_epoch
=
0
if
resume_checkpoint
:
start_epoch
=
self
.
completed_epochs
# 训练
# 训练
self
.
train_loop
(
self
.
train_loop
(
start_epoch
=
start_epoch
,
num_epochs
=
num_epochs
,
num_epochs
=
num_epochs
,
train_dataset
=
train_dataset
,
train_dataset
=
train_dataset
,
train_batch_size
=
train_batch_size
,
train_batch_size
=
train_batch_size
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录