如何将本地项目上传到FloydHub服务器

问题描述 投票:1回答:1

我第一次使用floydhub服务器,我想执行本地系统上可用的代码。我尝试使用floyd add'filename'将此目录添加到floydhub服务器,但它给了我一个错误。

我试过floyd --help。我明白了:

Usage: floyd [OPTIONS] COMMAND [ARGS]...

    Floyd CLI interacts with FloydHub server and executes your commands. More
      help is available under each command listed below.

    Options:
      -h, --host TEXT  Floyd server endpoint
      -v, --verbose    Turn on debug logging
      --help           Show this message and exit.

    Commands:
      clone    Download the code for the experiment to the...
      data     Subcommand for data operations
      delete   Delete project runs
      info     Prints detailed info for the run
      init     Initialize new project at the current dir.
      login    Log into Floyd via Auth0.
      logout   Logout of Floyd.
      logs     Print the logs of the run.
      output   Shows the output url of the run.
      run      Run a command on Floyd.
      status   View status of all or specific run.
      stop     Stop a run before it can finish.
      upgrade  Upgrade floyd command line
      version  Prints the current version of the CLI

如何将本地代码推送到floydhub服务器?我没有github网址。当我尝试从floyd cli运行python文件时,我收到此错误:

IOError: [Errno 24] Too many open files: './.env/src/xgboost/cub/examples/block/example_block_radix_sort.cu'

如何在floydhub服务器上执行本地代码?

我有的文件:

  1. 数据集文件夹,其中包含2个带图像的文件夹
  2. 源python文件
  3. floyd_requirements.txt
python deep-learning
1个回答
0
投票

您只需使用floyd run命令上传代码并启动实例即可。

如果你有太多文件错误,你需要添加一些目录到.floydignore文件:https://docs.floydhub.com/faqs/job/#i-get-too-many-open-files-error-when-i-run-my-project

这将确保不需要的目录不会上传到FloydHub。

您可以尝试从此处运行快速入门,以获得完整的端到端示例:https://docs.floydhub.com/getstarted/quick_start/

© www.soinside.com 2019 - 2024. All rights reserved.