- Make sure that you have arena executable under folder
AlexaArena/arena
. - Ensure that the CDF is valid.
- Run commands
chmod +x ./debugger/run_arena_debugger.sh
andchmod +x ./debugger/run_model_debugger.sh
to give execute permissions to these scripts.
- Open two terminals, say T1 & T2, and connect to EC2 instance. Go to AlexaArena directory.
- On terminal T1,
- Run
cd ./debugger
and./run_arena_debugger.sh
- Enter the CDF file path (For example:
/home/ec2-user/AlexaArena/data/CDFs/T2_CDFs/mission_01.json
) - The script spawns the arena process and launches game in CDF
- Once the game is launched, a color image is saved in /tmp/ directory. The color image path is displayed on terminal.
- (Optional) You could run streaming server for visuals (Refer README for running streaming server)
- Run
- On terminal T2,
- Activate virtual environment required for running the model
conda activate pytorch_p38
. - Go to AlexaArena directory. Run
cd ./debugger
and./run_model_debugger.sh
. - It loads the model and generate actions for input utterance.
- Enter the directory path where you'd like to store the actions (For example: /tmp/mission_01)
- Activate virtual environment required for running the model
- On terminal T1,
- It asks to enter the actions file path. This actions file can be generated manually or using model_debugger.
# Sample actions file for user utterance move backawards [ { "id": "43d0a1c8-444e-11ed-8484-0ed975f73903", "type": "Move", "move": {"direction": "Backward", "magnitude": 1} } ]
- It asks to enter the actions file path. This actions file can be generated manually or using model_debugger.
- On terminal T2, generate the actions file using model debugger
- Enter the user utterance
- Enter the color image path you received from step 2.4
- The model should predict the actions from input utterance and color image
- The generated actions are stored in directory inputted in step 3.4 (Say, /tmp/mission_01/actions_1.json)
- Go to terminal T1
- On terminal T1,
- Enter the actions file path generated in step 5.4 (For example: /tmp/mission_01/actions_1.json)
- View the output on browser
- After executing the action, error code is displayed
- Also, the updated color image is saved in /tmp/ directory. The new image path is displayed on terminal.
- Please continue steps 4, 5, & 6 for further debugging