Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add demo of recognize_digits on paddlecloud #276

Merged

Conversation

wanghaoshuang
Copy link

Related: #147



def main():
paddle.init(use_gpu=False, trainer_count=1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete the parameter use_gpu, cloud server will set the environment variable PADDLE_INIT_USE_GPU according to CPU/GPU job, and the same to trainer_count.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thx.

Copy link
Collaborator

@Yancey1989 Yancey1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wanghaoshuang wanghaoshuang merged commit 16c07d8 into PaddlePaddle:develop Aug 8, 2017
def prepare_dataset():
# convert will also split the dataset by line-count
common.convert(TRAIN_FILES_PATH,
paddle.dataset.mnist.train(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以直接用/pfs/%s/public/dataset下的mnist数据集,这个是默认处理好了,集群上通常会预先存放一份。不过保留prepare方法可以示例用户如何预处理数据集。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/pfs/%s/public/dataset 这个路径是不是不能用paddlecloud ls 来查看?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯,目前有这个bug。



# NOTE: must change this to your own username on paddlecloud.
USERNAME = "wanghaoshuang@baidu.com"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

提交的代码中不要有个人的账号信息。

Copy link
Author

@wanghaoshuang wanghaoshuang Aug 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里改成USERNAME = "demo"?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯嗯,demo可以。

@wanghaoshuang wanghaoshuang deleted the recognize_digits_demo branch August 9, 2017 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants