Git Product home page Git Product logo

deepracer-submit's Introduction

deepracer-submit

install (raspberrypi, ubuntu)

sudo apt update
sudo apt install -y xvfb jq
sudo apt install -y chromium-browser
sudo apt install -y chromium-codecs-ffmpeg
sudo apt install -y chromium-chromedriver

python -m pip install --upgrade -r requirements.txt

install (Amazon Linux 2)

sudo amazon-linux-extras install -y mate-desktop1.x
sudo amazon-linux-extras install -y epel

sudo yum install -y git jq
sudo yum install -y chromium chromedriver

python -m pip install --upgrade -r requirements.txt

config

export ACCOUNT_ID='123456789012'

export DR_USERNAME='username'
export DR_PASSWORD='password'
export MFA_SECRET='' # BASE32_MFA_SECRET

export SLACK_TOKEN='xoxb-xxx-xxx-xxx'
export SLACK_CHANNEL='sandbox'
cat <<EOF > config/deepracer.json
{
  "debug": "False",
  "userno": "${ACCOUNT_ID}",
  "username": "${DR_USERNAME}",
  "password": "${DR_PASSWORD}",
  "mfa": "${MFA_SECRET}",
  "slack": {
    "token": "${SLACK_TOKEN}",
    "channel": "${SLACK_CHANNEL}"
  },
  "races": [
    {
      "name": "pro",
      "arn": "league/arn%3Aaws%3Adeepracer%3A%3A%3Aleaderboard%2F689a6905-08c6-4589-b609-c54eca7ffd9e",
      "models": [
        "DR-MODEL-01", "DR-MODEL-02"
      ]
    },
    {
      "name": "comm",
      "arn": "competition/arn%3Aaws%3Adeepracer%3A%3A968005369378%3Aleaderboard%2F4fce8098-0a1f-4730-9fae-58c26397c043",
      "models": [
        "DR-MODEL-01", "DR-MODEL-02"
      ]
    }
  ]
}
EOF

submit

./submit.py -t pro -d True

crontab

cat <<EOF > config/crontab.sh
*/15 * * * * /home/ec2-user/deepracer-submit/submit.py -t pro > /tmp/submit-pro.log 2>&1
59 * * * * bash /home/ec2-user/run.sh restore
EOF
crontab config/crontab.sh

slack

submit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.