|
|
@@ -17,7 +17,7 @@ paddlex.cls.ResNet50(num_classes=1000)
|
|
|
#### 分类器训练函数接口
|
|
|
|
|
|
> ```python
|
|
|
-> train(self, num_epochs, train_dataset, train_batch_size=64, eval_dataset=None, save_interval_epochs=1, log_interval_steps=2, save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=0.025, lr_decay_epochs=[30, 60, 90], lr_decay_gamma=0.1, use_vdl=False, sensitivities_file=None, eval_metric_loss=0.05)
|
|
|
+> train(self, num_epochs, train_dataset, train_batch_size=64, eval_dataset=None, save_interval_epochs=1, log_interval_steps=2, save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=0.025, lr_decay_epochs=[30, 60, 90], lr_decay_gamma=0.1, use_vdl=False, sensitivities_file=None, eval_metric_loss=0.05, early_stop=False, early_stop_patience=5)
|
|
|
> ```
|
|
|
>
|
|
|
> **参数:**
|
|
|
@@ -37,6 +37,8 @@ paddlex.cls.ResNet50(num_classes=1000)
|
|
|
> > - **use_vdl** (bool): 是否使用VisualDL进行可视化。默认值为False。
|
|
|
> > - **sensitivities_file** (str): 若指定为路径时,则加载路径下敏感度信息进行裁剪;若为字符串'DEFAULT',则自动下载在ImageNet图片数据上获得的敏感度信息进行裁剪;若为None,则不进行裁剪。默认为None。
|
|
|
> > - **eval_metric_loss** (float): 可容忍的精度损失。默认为0.05。
|
|
|
+> > - **early_stop** (float): 是否使用提前终止训练策略。默认值为False。
|
|
|
+> > - **early_stop_patience** (int): 当使用提前终止训练策略时,如果验证集精度在`early_stop_patience`early_stop_patience`个epoch内连续下降或持平,则终止训练。默认值为5。
|
|
|
|
|
|
#### 分类器评估函数接口
|
|
|
|
|
|
@@ -109,7 +111,7 @@ paddlex.det.YOLOv3(num_classes=80, backbone='MobileNetV1', anchors=None, anchor_
|
|
|
#### YOLOv3训练函数接口
|
|
|
|
|
|
> ```python
|
|
|
-> train(self, num_epochs, train_dataset, train_batch_size=8, eval_dataset=None, save_interval_epochs=20, log_interval_steps=2, save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=1.0/8000, warmup_steps=1000, warmup_start_lr=0.0, lr_decay_epochs=[213, 240], lr_decay_gamma=0.1, metric=None, use_vdl=False, sensitivities_file=None, eval_metric_loss=0.05)
|
|
|
+> train(self, num_epochs, train_dataset, train_batch_size=8, eval_dataset=None, save_interval_epochs=20, log_interval_steps=2, save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=1.0/8000, warmup_steps=1000, warmup_start_lr=0.0, lr_decay_epochs=[213, 240], lr_decay_gamma=0.1, metric=None, use_vdl=False, sensitivities_file=None, eval_metric_loss=0.05, early_stop=False, early_stop_patience=5)
|
|
|
> ```
|
|
|
>
|
|
|
> **参数:**
|
|
|
@@ -132,6 +134,8 @@ paddlex.det.YOLOv3(num_classes=80, backbone='MobileNetV1', anchors=None, anchor_
|
|
|
> > - **use_vdl** (bool): 是否使用VisualDL进行可视化。默认值为False。
|
|
|
> > - **sensitivities_file** (str): 若指定为路径时,则加载路径下敏感度信息进行裁剪;若为字符串'DEFAULT',则自动下载在PascalVOC数据上获得的敏感度信息进行裁剪;若为None,则不进行裁剪。默认为None。
|
|
|
> > - **eval_metric_loss** (float): 可容忍的精度损失。默认为0.05。
|
|
|
+> > - **early_stop** (float): 是否使用提前终止训练策略。默认值为False。
|
|
|
+> > - **early_stop_patience** (int): 当使用提前终止训练策略时,如果验证集精度在`early_stop_patience`early_stop_patience`个epoch内连续下降或持平,则终止训练。默认值为5。
|
|
|
|
|
|
#### YOLOv3评估函数接口
|
|
|
|
|
|
@@ -186,7 +190,7 @@ paddlex.det.FasterRCNN(num_classes=81, backbone='ResNet50', with_fpn=True, aspec
|
|
|
#### FasterRCNN训练函数接口
|
|
|
|
|
|
> ```python
|
|
|
-> train(self, num_epochs, train_dataset, train_batch_size=2, eval_dataset=None, save_interval_epochs=1, log_interval_steps=2,save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=0.0025, warmup_steps=500, warmup_start_lr=1.0/1200, lr_decay_epochs=[8, 11], lr_decay_gamma=0.1, metric=None, use_vdl=False)
|
|
|
+> train(self, num_epochs, train_dataset, train_batch_size=2, eval_dataset=None, save_interval_epochs=1, log_interval_steps=2,save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=0.0025, warmup_steps=500, warmup_start_lr=1.0/1200, lr_decay_epochs=[8, 11], lr_decay_gamma=0.1, metric=None, use_vdl=False, early_stop=False, early_stop_patience=5)
|
|
|
>
|
|
|
> ```
|
|
|
>
|
|
|
@@ -208,6 +212,8 @@ paddlex.det.FasterRCNN(num_classes=81, backbone='ResNet50', with_fpn=True, aspec
|
|
|
> > - **lr_decay_gamma** (float): 默认优化器的学习率衰减率。默认为0.1。
|
|
|
> > - **metric** (bool): 训练过程中评估的方式,取值范围为['COCO', 'VOC']。默认值为None。
|
|
|
> > - **use_vdl** (bool): 是否使用VisualDL进行可视化。默认值为False。
|
|
|
+> > - **early_stop** (float): 是否使用提前终止训练策略。默认值为False。
|
|
|
+> > - **early_stop_patience** (int): 当使用提前终止训练策略时,如果验证集精度在`early_stop_patience`early_stop_patience`个epoch内连续下降或持平,则终止训练。默认值为5。
|
|
|
|
|
|
#### FasterRCNN评估函数接口
|
|
|
|
|
|
@@ -264,7 +270,7 @@ paddlex.det.MaskRCNN(num_classes=81, backbone='ResNet50', with_fpn=True, aspect_
|
|
|
#### MaskRCNN训练函数接口
|
|
|
|
|
|
> ```python
|
|
|
-> train(self, num_epochs, train_dataset, train_batch_size=1, eval_dataset=None, save_interval_epochs=1, log_interval_steps=20, save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=1.0/800, warmup_steps=500, warmup_start_lr=1.0 / 2400, lr_decay_epochs=[8, 11], lr_decay_gamma=0.1, metric=None, use_vdl=False)
|
|
|
+> train(self, num_epochs, train_dataset, train_batch_size=1, eval_dataset=None, save_interval_epochs=1, log_interval_steps=20, save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=1.0/800, warmup_steps=500, warmup_start_lr=1.0 / 2400, lr_decay_epochs=[8, 11], lr_decay_gamma=0.1, metric=None, use_vdl=False, early_stop=False, early_stop_patience=5)
|
|
|
>
|
|
|
> ```
|
|
|
>
|
|
|
@@ -286,6 +292,8 @@ paddlex.det.MaskRCNN(num_classes=81, backbone='ResNet50', with_fpn=True, aspect_
|
|
|
> > - **lr_decay_gamma** (float): 默认优化器的学习率衰减率。默认为0.1。
|
|
|
> > - **metric** (bool): 训练过程中评估的方式,取值范围为['COCO', 'VOC']。默认值为None。
|
|
|
> > - **use_vdl** (bool): 是否使用VisualDL进行可视化。默认值为False。
|
|
|
+> > - **early_stop** (float): 是否使用提前终止训练策略。默认值为False。
|
|
|
+> > - **early_stop_patience** (int): 当使用提前终止训练策略时,如果验证集精度在`early_stop_patience`early_stop_patience`个epoch内连续下降或持平,则终止训练。默认值为5。
|
|
|
|
|
|
#### MaskRCNN评估函数接口
|
|
|
|
|
|
@@ -350,7 +358,7 @@ paddlex.seg.DeepLabv3p(num_classes=2, backbone='MobileNetV2_x1.0', output_stride
|
|
|
#### DeepLabv3训练函数接口
|
|
|
|
|
|
> ```python
|
|
|
-> train(self, num_epochs, train_dataset, train_batch_size=2, eval_dataset=None, eval_batch_size=1, save_interval_epochs=1, log_interval_steps=2, save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=0.01, lr_decay_power=0.9, use_vdl=False, sensitivities_file=None, eval_metric_loss=0.05):
|
|
|
+> train(self, num_epochs, train_dataset, train_batch_size=2, eval_dataset=None, eval_batch_size=1, save_interval_epochs=1, log_interval_steps=2, save_dir='output', pretrain_weights='IMAGENET', optimizer=None, learning_rate=0.01, lr_decay_power=0.9, use_vdl=False, sensitivities_file=None, eval_metric_loss=0.05, early_stop=False, early_stop_patience=5):
|
|
|
>
|
|
|
> ```
|
|
|
>
|
|
|
@@ -370,6 +378,8 @@ paddlex.seg.DeepLabv3p(num_classes=2, backbone='MobileNetV2_x1.0', output_stride
|
|
|
> > - **use_vdl** (bool): 是否使用VisualDL进行可视化。默认False。
|
|
|
> > - **sensitivities_file** (str): 若指定为路径时,则加载路径下敏感度信息进行裁剪;若为字符串'DEFAULT',则自动下载在ImageNet图片数据上获得的敏感度信息进行裁剪;若为None,则不进行裁剪。默认为None。
|
|
|
> > - **eval_metric_loss** (float): 可容忍的精度损失。默认为0.05。
|
|
|
+> > - **early_stop** (float): 是否使用提前终止训练策略。默认值为False。
|
|
|
+> > - **early_stop_patience** (int): 当使用提前终止训练策略时,如果验证集精度在`early_stop_patience`early_stop_patience`个epoch内连续下降或持平,则终止训练。默认值为5。
|
|
|
|
|
|
#### DeepLabv3评估函数接口
|
|
|
|
|
|
@@ -427,7 +437,7 @@ paddlex.seg.UNet(num_classes=2, upsample_mode='bilinear', use_bce_loss=False, us
|
|
|
#### Unet训练函数接口
|
|
|
|
|
|
> ```python
|
|
|
-> train(self, num_epochs, train_dataset, train_batch_size=2, eval_dataset=None, eval_batch_size=1, save_interval_epochs=1, log_interval_steps=2, save_dir='output', pretrain_weights='COCO', optimizer=None, learning_rate=0.01, lr_decay_power=0.9, use_vdl=False, sensitivities_file=None, eval_metric_loss=0.05):
|
|
|
+> train(self, num_epochs, train_dataset, train_batch_size=2, eval_dataset=None, eval_batch_size=1, save_interval_epochs=1, log_interval_steps=2, save_dir='output', pretrain_weights='COCO', optimizer=None, learning_rate=0.01, lr_decay_power=0.9, use_vdl=False, sensitivities_file=None, eval_metric_loss=0.05, early_stop=False, early_stop_patience=5):
|
|
|
> ```
|
|
|
>
|
|
|
> **参数:**
|
|
|
@@ -446,6 +456,8 @@ paddlex.seg.UNet(num_classes=2, upsample_mode='bilinear', use_bce_loss=False, us
|
|
|
> > - **use_vdl** (bool): 是否使用VisualDL进行可视化。默认False。
|
|
|
> > - **sensitivities_file** (str): 若指定为路径时,则加载路径下敏感度信息进行裁剪;若为字符串'DEFAULT',则自动下载在ImageNet图片数据上获得的敏感度信息进行裁剪;若为None,则不进行裁剪。默认为None。
|
|
|
> > - **eval_metric_loss** (float): 可容忍的精度损失。默认为0.05。
|
|
|
+> > - **early_stop** (float): 是否使用提前终止训练策略。默认值为False。
|
|
|
+> > - **early_stop_patience** (int): 当使用提前终止训练策略时,如果验证集精度在`early_stop_patience`early_stop_patience`个epoch内连续下降或持平,则终止训练。默认值为5。
|
|
|
|
|
|
#### Unet评估函数接口
|
|
|
|