提交 61c12df5 编写于 作者: Z zlyi1225 提交者: qingqing01

minor changes (#2070)

* fix bugs and add python3 supports
* minor changes
上级 d6bf1fa9
...@@ -91,7 +91,7 @@ python val.py --dataset 'mpii' --checkpoint 'checkpoints/pose-resnet50-mpii-384x ...@@ -91,7 +91,7 @@ python val.py --dataset 'mpii' --checkpoint 'checkpoints/pose-resnet50-mpii-384x
### Perform Training ### Perform Training
```bash ```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`. **Note**: Configurations for training are aggregated in the `lib/mpii_reader.py` and `lib/coco_reader.py`.
......
...@@ -89,7 +89,7 @@ python val.py --dataset 'mpii' --checkpoint 'checkpoints/pose-resnet50-mpii-384x ...@@ -89,7 +89,7 @@ python val.py --dataset 'mpii' --checkpoint 'checkpoints/pose-resnet50-mpii-384x
### 模型训练 ### 模型训练
```bash ```bash
python train.py --dataset 'mpii' --data_root 'data/mpii' python train.py --dataset 'mpii'
``` ```
**说明** 详细参数配置已保存到`lib/mpii_reader.py``lib/coco_reader.py`文件中,通过设置dataset来选择使用具体的参数配置 **说明** 详细参数配置已保存到`lib/mpii_reader.py``lib/coco_reader.py`文件中,通过设置dataset来选择使用具体的参数配置
......
...@@ -41,7 +41,7 @@ def print_arguments(args): ...@@ -41,7 +41,7 @@ def print_arguments(args):
:type args: argparse.Namespace :type args: argparse.Namespace
""" """
print("----------- Configuration Arguments -----------") 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("%s: %s" % (arg, value))
print("------------------------------------------------") print("------------------------------------------------")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册