-
Notifications
You must be signed in to change notification settings - Fork 36
UsereXperience improvements #12
Changes from all commits
649f8c7
60d4311
361da2d
1101945
4177731
25cdfb9
88d691e
1f3685e
4db83d0
b628155
5b5d51c
a0a5045
b1e0cc8
28abe84
b6d9e4e
b8e28eb
6bd00e6
f512d1a
cadb06f
987f689
6523db3
a12ea16
55d84dc
2277739
7495dc0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
data/robomaker | ||
data/minio/bucket/current | ||
data/minio/bucket/rl-deepracer-pretrained | ||
data/minio/bucket/DeepRacer-Metrics | ||
data/minio/.minio.sys | ||
.idea | ||
**/.idea | ||
**/.idea | ||
__pycache__ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
data/minio/bucket/custom_files |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,5 @@ METRIC_NAME: "TrainingRewardScore" | |
CAR_COLOR: "Purple" | ||
TARGET_REWARD_SCORE: "None" | ||
NUMBER_OF_OBSTACLES: "3" | ||
CHANGE_START_POSITION: "true" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this param removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It was duplicated inside the file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The param is still there on line 5 |
||
OBSTACLE_TYPE: "BOX" | ||
RANDOMIZE_OBSTACLE_LOCATIONS: "false" | ||
RANDOMIZE_OBSTACLE_LOCATIONS: "false" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/rl_coach_2020_v2/hyperparams.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
# USAGE: ./local-copy.sh <model_backup_name> | ||
|
||
MODELS=../models | ||
|
||
echo "Backup to $MODELS/$1" | ||
echo "..." | ||
|
||
mkdir $MODELS/$1 | ||
|
||
cp data/robomaker/log/rl_coach_* $MODELS/$1/ | ||
cp -R data/minio/bucket/current/model $MODELS/$1/ | ||
cp data/minio/bucket/custom_files/reward.py $MODELS/$1/ | ||
|
||
echo "done" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The model file will actually be created automatically for you if the containers are shut down in the correct way, and the correct order, however I don't think the stop script currently does this correctly so let's leave this script here for now but will remove in near future. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good. |
||
# create .tar.gz file uploadable to physical deepracer | ||
# USAGE: ./mk-model.sh <model_path> | ||
cd $1 | ||
echo $(pwd) | ||
|
||
if [ "$1" = "" ]; then | ||
echo "USAGE: $0 <model_path>" | ||
else | ||
|
||
NUM=`cut -d '_' -f 1 < model/.coach_checkpoint` | ||
|
||
mkdir -p output/agent | ||
|
||
cp "model/model_$NUM.pb" output/agent/model.pb | ||
cp model/model_metadata.json output/ | ||
|
||
cd output | ||
tar -czvf ../output.tar.gz * | ||
|
||
echo "done" | ||
|
||
fi | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"batch_size": 64, | ||
"beta_entropy": 0.01, | ||
"discount_factor": 0.999, | ||
"e_greedy_value": 0.05, | ||
"epsilon_steps": 10000, | ||
"exploration_type": "categorical", | ||
"loss_type": "mean squared error", | ||
"lr": 0.0003, | ||
"num_episodes_between_training": 20, | ||
"num_epochs": 10, | ||
"stack_size": 1, | ||
"term_cond_avg_score": 100000.0, | ||
"term_cond_max_episodes": 10000, | ||
"pretrained": "false" | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ do | |
sleep 1 | ||
done | ||
|
||
docker logs -f $SAGEMAKER_ID | ||
docker logs --follow $SAGEMAKER_ID |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!delete-last.c | ||
!.gitignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add some notes regarding the new location of where to edit the hyperparameters and the additional scripts you have added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be all right now.