MCPcopy Create free account

hub / github.com/Luca96/carla-driving-rl-agent / functions

Functions646 in github.com/Luca96/carla-driving-rl-agent

Methodclear_callbacks
(self)
rl/environments/carla/sensors.py:39
Functionclip
(value, min_value, max_value)
rl/utils.py:101
Functionclip_gradients
(gradients: list, norm: float)
rl/utils.py:120
Methodclose
(self)
rl/environments/carla/environment.py:347
Methodcollect
(self, episodes: int, timesteps: int, render=True, record_threshold=0.0, seeds=None, close=True)
rl/agents/ppo.py:360
Functioncollect_experience
:param episodes: how much traces to collect. :param timesteps: the size in timesteps (number of states/transitions) of a single trace. :p
core/learning.py:196
Functioncompute_magnitude_angle
Compute relative angle and distance between a target_location and a current_location :param target_location: location of the target object
rl/environments/carla/tools/misc.py:72
Functionconcat_tensors
(*tensors, axis=0)
rl/utils.py:310
Methodconsume_pygame_events
()
rl/environments/carla/environment.py:321
Methodcontrol_to_actions
(self, control: carla.VehicleControl)
rl/environments/carla/environment.py:1030
Methodcontrol_to_actions
(self, control: carla.VehicleControl)
rl/environments/carla/environment.py:1204
Methodcontrol_to_actions
(self, control: carla.VehicleControl)
rl/environments/carla/environment.py:1294
Methodconvert
Converts the given carla.Image into grayscale in which each pixel contains the depth distance.
rl/environments/carla/sensors.py:161
Methodconvert_actions
(self, actions)
core/carla_agent.py:494
Methodconvert_command
(commands)
core/carla_agent.py:502
Functioncopy_folder
Source: https://stackoverflow.com/a/31039095
rl/utils.py:568
Functioncosine_similarity
-1: opposite vectors (pointing in the opposite direction), 0: orthogonal, 1: exactly the same (pointing in the same direction)
rl/environments/carla/tools/utils.py:62
Functioncount_traces
Returns the number of traces available at the given folder.
rl/utils.py:531
Methodcreate
Converts a floating or LearningRateSchedule `value` into a DynamicParameter object
rl/parameters/parameters.py:16
Functioncv2_grayscale
Convert a RGB or BGR image to grayscale using OpenCV (cv2). :param image: input image, a numpy.ndarray. :param is_bgr: tells whether t
rl/environments/carla/env_utils.py:408
Functiondata_to_batches
Transform some tensors data into a dataset of mini-batches
rl/utils.py:365
Methoddebug_text
(self, actions)
rl/environments/carla/environment.py:996
Functiondecompose_number
Decomposes a given number [n] in a scientific-like notation: - n = fractional_part * 10^exponent - e.g. 2.34 could be represented as (0.
rl/utils.py:140
Methoddefine_sensors
(self)
core/carla_env.py:111
Methoddefine_sensors
(self)
rl/environments/carla/environment.py:952
Methoddefine_sensors
(self)
rl/environments/carla/environment.py:1223
Functiondepth_concat
(*arrays)
rl/utils.py:97
Methoddestroy
(self)
rl/environments/carla/sensors.py:265
Methoddestroy
(self)
rl/environments/carla/sensors.py:298
Functiondisplay_image
Displays the given image on a pygame window :param blend: whether to blend or not the given image. :param window_size: the size of the pygame'
rl/environments/carla/env_utils.py:48
Functiondisplay_text
(display, font, text: [str], color=(255, 255, 255), origin=(0, 0), offset=(0, 2))
rl/environments/carla/env_utils.py:71
Methoddist
(v)
rl/environments/carla/navigation/behavior_agent.py:271
Functiondraw_bounding_box
Shows how to draw traffic light actor bounding boxes from a worlds snapshot.
rl/environments/carla/tools/utils.py:194
Methoddraw_next_waypoint
Draws the closest route's waypoint to the given location
rl/environments/carla/navigation/route.py:55
Functiondraw_radar_measurement
Code adapted from carla/PythonAPI/examples/manual_control.py: - White: means static points. - Red: indicates points moving towards the
rl/environments/carla/env_utils.py:355
Functiondraw_route
(debug, route, life_time=60)
rl/environments/carla/tools/utils.py:188
Functiondraw_vehicle_trail
Draws the path of an actor through the worlds, printing information at each waypoint. @:arg vehicle: see recipe 'actor_spectator'. @:a
rl/environments/carla/tools/utils.py:155
Functiondsilu
dSiLu activation function (i.e. the derivative of SiLU/Swish). Paper: Sigmoid-Weighted Linear Units for Neural Network Function Approximation i
rl/utils.py:424
Functionevaluate
(mode: str, town: str, seeds: list, traffic: str, steps=512, trials=50, weights='stage-s5')
core/learning.py:505
Methodevaluate
(self, name: str, timesteps: int, trials: int, seeds: Union[None, List[int]] = None, town='To
core/carla_agent.py:205
Methodevaluate
(self, episodes: int, timesteps: int, render=True, seeds=None)
rl/agents/agents.py:90
Methodevaluate
(self, name: str, timesteps: int, trials: int, render=True, seeds: Union[None, int, List[int]] = None,
rl/agents/agents.py:229
Functionexplore_traces
(traces_dir: str, amount=64, seed=None)
core/learning.py:230
Functionfeature_net
(inputs: Input, time_horizon: int, units=32, num_layers=2, activation='relu', normalization=No
core/architectures.py:9
Functionfind_weather_presets
()
rl/environments/carla/tools/utils.py:19
Methodfn
(c)
core/carla_agent.py:503
Functiongae
(rewards, values, gamma: float, lambda_: float, normalize=False)
rl/utils.py:62
Methodgaussian_value_head
(self, last_layer: Layer, mixture_components=3, activation=tf.nn.swish, **kwargs)
rl/networks/networks.py:249
Functionget_actor_display_name
(actor, truncate=250)
rl/environments/carla/tools/utils.py:25
Functionget_blueprint
(world: carla.World, actor_id: str)
rl/environments/carla/env_utils.py:339
Functionget_blueprints
Returns a list of blueprints for vehicles and pedestrians
rl/environments/carla/env_utils.py:136
Functionget_client
Connects to the simulator. @:returns a carla.Client instance if the CARLA simulator accepts the connection.
rl/environments/carla/env_utils.py:95
Methodget_config
(self)
rl/parameters/parameters.py:40
Methodget_config
(self)
rl/parameters/parameters.py:57
Functionget_display
Returns a display used to render images and text. :param window_size: a tuple (width: int, height: int) :param mode: pygame rendering
rl/environments/carla/env_utils.py:35
Functionget_font
(size=14)
rl/environments/carla/env_utils.py:44
Methodget_info
(self)
core/carla_env.py:327
Methodget_info
Returns a dict with additional information either for debugging or learning
rl/environments/carla/environment.py:1097
Methodget_local_planner
Get method for protected member local planner
rl/environments/carla/navigation/agent.py:51
Methodget_memory
(self, *args, **kwargs)
rl/agents/agents.py:141
Methodget_next_waypoint_location
(self)
rl/environments/carla/navigation/route.py:85
Methodget_observation
(self, sensors_data: dict)
core/carla_env.py:290
Methodget_observation
(self, sensors_data: dict)
rl/environments/carla/environment.py:1071
Functionget_optimizer_by_name
(name: str, *args, **kwargs)
rl/utils.py:39
Methodget_policy_gradients
(self, batch)
core/carla_agent.py:351
Methodget_value_gradients
(self, batch)
core/carla_agent.py:430
Methodgnss
(transform: carla.Transform = None, position: str = None, attachment_type='Rigid', **kwargs)
rl/environments/carla/sensors.py:445
Methodimitate
Learn from experience traces collected by 'collect
rl/agents/ppo.py:415
Functionimitation_learning
Performs imitation learning on the already recorded experience traces (given by `name` argument). - refer to CARLAgent.imitation_learning(...)
core/learning.py:215
Methodinfo_space
(self)
core/carla_env.py:134
Methodinfo_space
(self)
rl/environments/carla/environment.py:219
Methodinfo_space
(self)
rl/environments/carla/environment.py:898
Functioninit_pygame
()
rl/environments/carla/env_utils.py:27
Functionis_image
Checks whether some input [x] has a shape of the form (H, W, C)
rl/utils.py:87
Functionis_vector
Checks whether some input [x] has a shape of the form (N, D) or (D,)
rl/utils.py:92
Functionkl_divergence
Kullback-Leibler divergence - Source: https://www.tensorflow.org/api_docs/python/tf/keras/losses/KLD
rl/utils.py:460
Functionl2_norm
Computes the Euclidean distance between two carla.Location objects.
rl/environments/carla/tools/utils.py:30
Methodlane_detector
(transform: carla.Transform = None, position: str = None, attachment_type='Rigid', **kwargs)
rl/environments/carla/sensors.py:414
Methodlearn
(self, episodes: int, timesteps: int, save_every: Union[bool, str, int] = False, render_every: U
rl/agents/ppo.py:464
Methodlidar
(transform: carla.Transform = None, position: str = None, attachment_type=None, **kwargs)
rl/environments/carla/sensors.py:430
Functionlisht
Non-Parameteric Linearly Scaled Hyperbolic Tangent Activation Function Sources: - https://www.tensorflow.org/addons/api_docs/python/tfa
rl/utils.py:441
Methodload
(self, config: dict)
rl/parameters/parameters.py:37
Methodload_config
(self)
rl/agents/ppo.py:608
Functionload_traces
(traces_dir: str, max_amount: Optional[int] = None, shuffle=False, offset=0)
rl/utils.py:511
Methodload_weights
(self, full=True)
core/networks.py:302
Methodload_weights
(self)
core/carla_agent.py:581
Methodload_weights
(self)
rl/networks/networks.py:255
Methodload_weights
(self)
rl/agents/ppo.py:597
Methodlog_actions
(self, **kwargs)
core/carla_agent.py:488
Functionmagnitude
Returns the magnitude (norm) of the given 3D vector (tuple/list or carla.Vector3D).
rl/environments/carla/env_utils.py:451
Functionmakedir
Creates a directory
rl/utils.py:495
Methodmap_states
(self, fn: callable, states: dict)
core/carla_agent.py:498
Functionmask_dict_tensor
(tensor: dict, mask)
rl/utils.py:306
Functionmish
A Self Regularized Non-Monotonic Neural Activation Function Source: - https://www.tensorflow.org/addons/api_docs/python/tfa/activations
rl/utils.py:451
Methodname
(self)
rl/environments/carla/sensors.py:29
Methodname
(self)
rl/environments/carla/sensors.py:129
Methodname
(self)
rl/environments/carla/sensors.py:151
Methodname
(self)
rl/environments/carla/sensors.py:157
Methodname
(self)
rl/environments/carla/sensors.py:186
Methodname
(self)
rl/environments/carla/sensors.py:199
← previousnext →401–500 of 646, ranked by callers