Skip to content

Commit

Permalink
Merge pull request #9 from MyoHub/p2
Browse files Browse the repository at this point in the history
Phase 2
  • Loading branch information
elladyr authored Oct 6, 2023
2 parents 5e16152 + 43eaf5b commit 39cee20
Show file tree
Hide file tree
Showing 10 changed files with 182 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Submission Loco Deprl
name: P1 Submission Loco Deprl

on: workflow_dispatch

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Submission Loco Random
name: P1 Submission Loco Random

on: workflow_dispatch

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Submission Mani Deprl
name: P1 Submission Mani Deprl

on: workflow_dispatch

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Submission Mani Random
name: P1 Submission Mani Random

on: workflow_dispatch

Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/P2_docker-submission_loco_deprl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: P2 Submission Loco Deprl

on: workflow_dispatch

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install evalAI
run: |
sudo apt-get install libxml2-dev libxslt-dev
pip install "evalai>=1.3.13"
- name: Set EvalAI token
run: |
echo "The GitHub Action Secret will be masked: "
echo ${{ secrets.EvalAI_token }}
echo "Trick to echo GitHub Actions Secret: "
echo ${{secrets.EvalAI_token}} | sed 's/./& /g'
evalai set_token ${{ secrets.EvalAI_token }}
- name: Test that the registration was successful. MyoChallenge needs to be in the list returned
run: evalai challenges --participant

- name: Build the Docker image
run: |
docker compose -f docker-compose-LocoAgentDeprl.yml build
- name: Push to evalai
run: evalai push loco_agent_deprl:latest --phase myochallenge2023-locophase2-2105 --private



43 changes: 43 additions & 0 deletions .github/workflows/P2_docker-submission_loco_random.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: P2 Submission Loco Random

on: workflow_dispatch

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install evalAI
run: |
sudo apt-get install libxml2-dev libxslt-dev
pip install "evalai>=1.3.13"
- name: Set EvalAI token
run: |
echo "The GitHub Action Secret will be masked: "
echo ${{ secrets.EvalAI_token }}
echo "Trick to echo GitHub Actions Secret: "
echo ${{secrets.EvalAI_token}} | sed 's/./& /g'
evalai set_token ${{ secrets.EvalAI_token }}
- name: Test that the registration was successful. MyoChallenge needs to be in the list returned
run: evalai challenges --participant

- name: Build the Docker image
run: |
docker compose -f docker-compose-LocoAgentRandom.yml build
- name: Push to evalai
run: evalai push loco_agent_random:latest --phase myochallenge2023-locophase2-2105 --private



44 changes: 44 additions & 0 deletions .github/workflows/P2_docker-submission_mani_deprl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: P2 Submission Mani Deprl

on: workflow_dispatch

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install evalAI
run: |
sudo apt-get install libxml2-dev libxslt-dev
pip install "evalai>=1.3.13"
- name: Set EvalAI token
run: |
echo "The GitHub Action Secret will be masked: "
echo ${{ secrets.EvalAI_token }}
echo "Trick to echo GitHub Actions Secret: "
echo ${{secrets.EvalAI_token}} | sed 's/./& /g'
evalai set_token ${{ secrets.EvalAI_token }}
- name: Test that the registration was successful. MyoChallenge needs to be in the list returned
run: evalai challenges --participant

- name: Build the Docker image
run: |
docker compose -f docker-compose-ManiAgentDeprl.yml build
- name: Push to evalai
run: evalai push mani_agent_deprl:latest --phase myochallenge2023-maniphase2-2105 --private



44 changes: 44 additions & 0 deletions .github/workflows/P2_docker-submission_mani_random.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: P2 Submission Mani Random

on: workflow_dispatch

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install evalAI
run: |
sudo apt-get install libxml2-dev libxslt-dev
pip install "evalai>=1.3.13"
- name: Set EvalAI token
run: |
echo "The GitHub Action Secret will be masked: "
echo ${{ secrets.EvalAI_token }}
echo "Trick to echo GitHub Actions Secret: "
echo ${{secrets.EvalAI_token}} | sed 's/./& /g'
evalai set_token ${{ secrets.EvalAI_token }}
- name: Test that the registration was successful. MyoChallenge needs to be in the list returned
run: evalai challenges --participant

- name: Build the Docker image
run: |
docker compose -f docker-compose-ManiAgentRandom.yml build
- name: Push to evalai
run: evalai push mani_agent_random:latest --phase myochallenge2023-maniphase2-2105 --private



4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This challenge consists of developing controllers for a physiologically realisti

- B) **Locomotion/Chase-Tag task** -- Chase an opponent (`myoChallengeChaseTagP1-v0`).

They both are available with `myosuite==1.7.0`.
[⚠️ Important!] For Phase 2 environment, please upgrade to MyoSuite >= 2.1.2

## Overview
This repository is primarily centered around the submission of your solution, but we also created documentation to help you with:
Expand Down Expand Up @@ -51,7 +51,7 @@ sh ./test/test_mani_agent.sh
docker build -f docker/agent/Dockerfile_Mani . -t myochallengeeval_mani_agent

# Step 4: Upload your policy
evalai push myochallengeeval_mani_agent:latest --phase myochallenge2023-maniphase1-2105 --public
evalai push myochallengeeval_mani_agent:latest --phase myochallenge2023-maniphase2-2105 --public

```

Expand Down
4 changes: 2 additions & 2 deletions tutorials/DIY_Submission.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ evalai push <image>:<tag> --phase <phase_name>
Use --private or --public flag in the submission command to make the submission private or public respectively.

for example, commands to upload agents for Phase 1 might look like:
- Manipulation Agent : `evalai push myochallengeeval_mani_agent:latest --phase myochallenge2023-maniphase1-2105 --public`
- Manipulation Agent : `evalai push myochallengeeval_mani_agent:latest --phase myochallenge2023-maniphase2-2105 --public`

- Locomotion/Chase-Tag Agent: `evalai push myochallengeeval_loco_agent:latest --phase myochallenge2023-locophase1-2105 --public`
- Locomotion/Chase-Tag Agent: `evalai push myochallengeeval_loco_agent:latest --phase myochallenge2023-locophase2-2105 --public`

<!-- and, for Phase 2 might look like:
Expand Down

0 comments on commit 39cee20

Please sign in to comment.