Skip to content

Instantly share code, notes, and snippets.

View felipecode's full-sized avatar
👁️

Felipe Codevilla felipecode

👁️
View GitHub Profile
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
@felipecode
felipecode / cpu_vs_gpu_augmentations.py
Created May 1, 2018 15:56
GPU augmentation tests
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
@felipecode
felipecode / screen_manager.py
Created April 20, 2018 17:16
Class to plot steering wheel on carla. Quite unpolished.
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)):