未验证 提交 185f5e13 编写于 作者: Q Qiyang Min 提交者: GitHub

Merge pull request #1293 from velconia/fix_image_classification_syntax

Fix image_classification syntax
...@@ -52,7 +52,7 @@ In this example, we launched 4 parameter server instances and 4 trainer instance ...@@ -52,7 +52,7 @@ In this example, we launched 4 parameter server instances and 4 trainer instance
1. launch trainer process 1. launch trainer process
``` python ``` python
PADDLE_TRAINING_ROLE=PSERVER \ PADDLE_TRAINING_ROLE=TRAINER \
PADDLE_TRAINERS=4 \ PADDLE_TRAINERS=4 \
PADDLE_PSERVER_IPS=192.168.0.100,192.168.0.101,192.168.0.102,192.168.0.103 \ PADDLE_PSERVER_IPS=192.168.0.100,192.168.0.101,192.168.0.102,192.168.0.103 \
PADDLE_TRAINER_ID=0 \ PADDLE_TRAINER_ID=0 \
...@@ -110,4 +110,4 @@ Training acc1 curves ...@@ -110,4 +110,4 @@ Training acc1 curves
### Performance ### Performance
TBD TBD
\ No newline at end of file
...@@ -33,7 +33,7 @@ add_arg('lr', float, 0.1, "set learning rate.") ...@@ -33,7 +33,7 @@ add_arg('lr', float, 0.1, "set learning rate.")
add_arg('lr_strategy', str, "piecewise_decay", "Set the learning rate decay strategy.") add_arg('lr_strategy', str, "piecewise_decay", "Set the learning rate decay strategy.")
add_arg('model', str, "SE_ResNeXt50_32x4d", "Set the network to use.") add_arg('model', str, "SE_ResNeXt50_32x4d", "Set the network to use.")
add_arg('enable_ce', bool, False, "If set True, enable continuous evaluation job.") add_arg('enable_ce', bool, False, "If set True, enable continuous evaluation job.")
add_arg('data_dir' str, "./data/ILSVRC2012", "The ImageNet dataset root dir.") add_arg('data_dir', str, "./data/ILSVRC2012", "The ImageNet dataset root dir.")
# yapf: enable # yapf: enable
model_list = [m for m in dir(models) if "__" not in m] model_list = [m for m in dir(models) if "__" not in m]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册