def _append_to_list(self, path, angle, flip = False, brightness_adjust = 1.0):
"""
Adds one image to the X/y_train list
Parameters
----------
path : string
The path to the image
angle : float
Steering angle
flip : boolean
Should we flip the image when reading the list
brightness_adjusts: float
Brightness adjust factor
"""
self.X_train.append((self._prepend_path(path), flip, brightness_adjust))
if flip: #Flipped images angle needs correction
angle = angle * -1
self.y_train.append(angle)
评论列表
文章目录