This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def augment_steering(self, camera_angle, steer, speed): | |
""" | |
Apply the steering physical equation to augment for the lateral cameras. | |
Args: | |
camera_angle_batch: | |
steer_batch: | |
speed_batch: | |
Returns: | |
the augmented steering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import shutil | |
import torch | |
from torchvision import transforms, datasets | |
import matplotlib.pyplot as plt | |
""" Performance Test for augmentations using pytorch vision |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import math | |
import scipy | |
import cv2 | |
import pygame | |
clock = pygame.time.Clock() | |
def draw_vbar_on(img, bar_intensity, x_pos, color=(0, 0, 255)): |