-
Notifications
You must be signed in to change notification settings - Fork 0
/
parameters.py
76 lines (60 loc) · 2.13 KB
/
parameters.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
"""
MIT License from https://github.com/marmotlab/CAtNIPP/
Copyright (c) 2022 MARMot Lab @ NUS-ME
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
BATCH_SIZE = 64
INPUT_DIM = 6 # 7 if including binary
EMBEDDING_DIM = 128
N_HEADS = 4
ACCUMULATION_STEPS = 1024
K_SIZE = 20
FOLDER_NAME = 'k20_novec_final'
PLANT_RANGE = (10, 15)
BUDGET_RANGE = (7.0, 9.0)
SAMPLE_LENGTH = 0.2
GEN_RANGE = (0.1, 0.3) # Distance range for generating new samples
SAMPLING_SIZE = K_SIZE
PRED_GRID = 50
ADAPTIVE_AREA = True
ADAPTIVE_TH = 0.4
BETA = 1 # the certainty below mean_val a cell must possess before being considered interesting
LENGTH_SCALE = 0.5
DEPTH = 12
FACING_ACTIONS = ['F', 'B', 'L', 'R'] # N, S, W, E
RUN_TYPE = 'prev_samples'
EVAL_TYPE = 'cov_tr'
TRIAL_NUM = '0'
USE_GPU = False
USE_GPU_GLOBAL = False # True if GPU available
CUDA_DEVICE = [0]
NUM_META_AGENT = 12
LR = 1e-4
GAMMA = 1
EPSILON = 2e-1
DECAY_STEP = 32
SUMMARY_WINDOW = 1
TREE_BINARY = False
DIST_SAMPLE = True
EXPLORATION_ONLY = False
model_path = f'model/{FOLDER_NAME}'
train_path = f'train/{FOLDER_NAME}'
gifs_path = f'gifs/{FOLDER_NAME}'
logs_path = f'logs/{FOLDER_NAME}'
LOAD_MODEL = True
SAVE_IMG_GAP = 500
FRUIT_EMPHASIS = True