-
Notifications
You must be signed in to change notification settings - Fork 4
/
parameter.py
51 lines (41 loc) · 1.78 KB
/
parameter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# saving path
FOLDER_NAME = 'ariadne1_ground_truth_critic'
model_path = f'model/{FOLDER_NAME}'
train_path = f'train/{FOLDER_NAME}'
gifs_path = f'gifs/{FOLDER_NAME}'
# save training data
SUMMARY_WINDOW = 32 # how many training steps before writing data to tensorboard
LOAD_MODEL = False # do you want to load the model trained before
SAVE_IMG_GAP = 100 # how many episodes before saving a gif
# map and planning resolution
CELL_SIZE = 0.4 # meter, your map resolution
NODE_RESOLUTION = 4.0 # meter, your node resolution
FRONTIER_CELL_SIZE = 2 * CELL_SIZE # do you want to downsample the frontiers
# map representation
FREE = 255 # value of free cells in the map
OCCUPIED = 1 # value of obstacle cells in the map
UNKNOWN = 127 # value of unknown cells in the map
# sensor and utility range
SENSOR_RANGE = 16 # meter
UTILITY_RANGE = 0.8 * SENSOR_RANGE # consider frontiers within this range as observable
MIN_UTILITY = 2 # ignore the utility if observable frontiers are less than this value
# updating map range w.r.t the robot
UPDATING_MAP_SIZE = 4 * SENSOR_RANGE + 4 * NODE_RESOLUTION # nodes outside this range will not be affected by current measurements
# training parameters
MAX_EPISODE_STEP = 128
REPLAY_SIZE = 10000
MINIMUM_BUFFER_SIZE = 2000
BATCH_SIZE = 128
LR = 1e-5
GAMMA = 1
NUM_META_AGENT = 16 # how many threads does your CPU have
# network parameters
NODE_INPUT_DIM = 4
EMBEDDING_DIM = 128
# Graph parameters
K_SIZE = 25 # the number of neighboring nodes, fixed
NODE_PADDING_SIZE = 360 # the number of nodes will be padded to this value, need it for batch training
# GPU usage
USE_GPU = False # do you want to collect training data using GPUs (better not)
USE_GPU_GLOBAL = True # do you want to train the network using GPUs
NUM_GPU = 0 # 0 unless you want to collect data using GPUs