From 61c12df52cced3d17ae64688b377546333d255ac Mon Sep 17 00:00:00 2001 From: zlyi1225 Date: Tue, 16 Apr 2019 23:03:26 +0800 Subject: [PATCH] minor changes (#2070) * fix bugs and add python3 supports * minor changes --- PaddleCV/human_pose_estimation/README.md | 2 +- PaddleCV/human_pose_estimation/README_cn.md | 2 +- PaddleCV/human_pose_estimation/utils/utility.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PaddleCV/human_pose_estimation/README.md b/PaddleCV/human_pose_estimation/README.md index c563ce31..8e7b6c13 100644 --- a/PaddleCV/human_pose_estimation/README.md +++ b/PaddleCV/human_pose_estimation/README.md @@ -91,7 +91,7 @@ python val.py --dataset 'mpii' --checkpoint 'checkpoints/pose-resnet50-mpii-384x ### Perform Training ```bash -python train.py --dataset 'mpii' --data_root 'data/mpii' +python train.py --dataset 'mpii' # or coco ``` **Note**: Configurations for training are aggregated in the `lib/mpii_reader.py` and `lib/coco_reader.py`. diff --git a/PaddleCV/human_pose_estimation/README_cn.md b/PaddleCV/human_pose_estimation/README_cn.md index 86f71aa5..b5ef692c 100644 --- a/PaddleCV/human_pose_estimation/README_cn.md +++ b/PaddleCV/human_pose_estimation/README_cn.md @@ -89,7 +89,7 @@ python val.py --dataset 'mpii' --checkpoint 'checkpoints/pose-resnet50-mpii-384x ### 模型训练 ```bash -python train.py --dataset 'mpii' --data_root 'data/mpii' +python train.py --dataset 'mpii' ``` **说明** 详细参数配置已保存到`lib/mpii_reader.py` 和 `lib/coco_reader.py`文件中,通过设置dataset来选择使用具体的参数配置 diff --git a/PaddleCV/human_pose_estimation/utils/utility.py b/PaddleCV/human_pose_estimation/utils/utility.py index 9c3cd61f..698d0231 100644 --- a/PaddleCV/human_pose_estimation/utils/utility.py +++ b/PaddleCV/human_pose_estimation/utils/utility.py @@ -41,7 +41,7 @@ def print_arguments(args): :type args: argparse.Namespace """ print("----------- Configuration Arguments -----------") - for arg, value in sorted(vars(args).iteritems()): + for arg, value in sorted(vars(args).items()): print("%s: %s" % (arg, value)) print("------------------------------------------------") -- GitLab