Skip to content

Instantly share code, notes, and snippets.

@juwencheng
Created May 22, 2017 13:12
Show Gist options
  • Save juwencheng/831572fb7e9526d359fbaf1db5a07b56 to your computer and use it in GitHub Desktop.
Save juwencheng/831572fb7e9526d359fbaf1db5a07b56 to your computer and use it in GitHub Desktop.
FloydHub usage
# 安装 cli
pip install -U floyd-cli
# 登录账户
floyd login
# 拷贝授权码到终端
# 输入登录命令后会提示你授权码页面将打开您的浏览器,是否打开,输入y 即可
# 初始化工程
floyd init hello
# 排除不需要传到floyd的文件,在.floydignore 中添加
# 运行
floyd run
# 以jupyter notebook方式运行
floyd run --mode jupyter
# 指定以GPU方式运行
floyd run --gpu "python hello.py"
# 指定tensorflow版本
floyd run --mode jupyter --env tensorflow-1.0
# 保存输出文件要保存到 /input 路径下
# 使用云端数据,代码中从 /training 目录下获取数据
floyd run --data dataid:training --gpu "python hello.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment