-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfuser_config.py
34 lines (26 loc) · 931 Bytes
/
interfuser_config.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
import os
class GlobalConfig:
"""base architecture configurations"""
# Controller
turn_KP = 1.25
turn_KI = 0.75
turn_KD = 0.3
turn_n = 40 # buffer size
speed_KP = 5.0
speed_KI = 0.5
speed_KD = 1.0
speed_n = 40 # buffer size
max_throttle = 0.75 # upper limit on throttle signal value in dataset
brake_speed = 0.1 # desired speed below which brake is triggered
brake_ratio = 1.1 # ratio of speed to desired speed at which brake is triggered
clip_delta = 0.35 # maximum change in speed input to logitudinal controller
max_speed = 5
collision_buffer = [2.5, 1.2]
model_path = "C:/Users/taha/Desktop/Interfuser/leaderboard/team_code/interfuser.pth.tar"
momentum = 0
skip_frames = 1
detect_threshold = 0.04
model = "interfuser_baseline"
def __init__(self, **kwargs):
for k, v in kwargs.items():
setattr(self, k, v)