Setting up Log Analysis for DeepRacer

Deniz Sivas
2 min readDec 27, 2023

--

If you want to dive into analysis of your trainings, this guide will help you to set the environment up.

1- Head to this github link and grab the community repo.

2- Create your project folder in your local machine and open up the cmd there, run below command.

git clone https://github.com/aws-deepracer-community/deepracer-analysis.git

3- Open the cloned repo in your favourite IDE, mine is Pycharm so I will continue with PyCharm for the rest of this tutorial but the idea is the same.

4- In the terminal window of the IDE, run below commands in order to create a new virtual env.

python -m venv deepracer-analysis/drvenv

This will create a drvenv directory under deepracer-analysis repo. You can target somewhere else as well.

5- Now navigate to the Scripts folder inside this drvenv and activate your virtual environment.

cd drvenv
cd Scripts
activate

After that, you can see the environment information by checking the command line.

IF YOU ARE USING POWERSHELL, OPEN UP ANOTHER TERMINAL BY USING COMMAND PROMPT. IT WILL SOLVE YOUR PROBLEMS.

6- Head back to your main project folder and install the requirements.

pip install -r requirements.txt

7- Now your environment is ready. Fire up the jupyter labs.

> jupyter lab

Head to localhost port 8888 either this will be prompted by IDE or if you miss, you can use a web browser and type localhost:8888/lab.

Go on with configurations and fetch your logs from S3.

--

--

Deniz Sivas

Software tester by profession, software developer by passion