Skip to content

Instantly share code, notes, and snippets.

Rahul Ravikumar tikurahul

Block or report user

Report or block tikurahul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flower_classification.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tikurahul
tikurahul / train.py
Created Mar 7, 2020
Multi-tub training
View train.py
#!/usr/bin/env python3
'''
Scripts to train a keras model using tensorflow.
Basic usage should feel familiar: python train_v2.py --model models/mypilot
Usage:
train.py [--tubs=tub1,tub2] (--model=<model>) [--type=(linear|inferred|tensorrt_linear|tflite_linear)]
Options:
-h --help Show this screen.
@tikurahul
tikurahul / standard-config.py
Last active Mar 7, 2020
Standard Donkeycar Config
View standard-config.py
#VEHICLE
DRIVE_LOOP_HZ = 50 # the vehicle loop will pause if faster than this speed.
MAX_LOOPS = None # the vehicle loop can abort after this many iterations, when given a positive integer.
# #CAMERA
CAMERA_TYPE = "LEOPARD" # (PICAM|WEBCAM|CVCAM|CSIC|V4L|MOCK|LEOPARD)
IMAGE_W = 224
IMAGE_H = 224
IMAGE_DEPTH = 3 # default RGB=3, make 1 for mono
CAMERA_FRAMERATE = DRIVE_LOOP_HZ
@tikurahul
tikurahul / jetracer-config.py
Last active Dec 26, 2019
Jetracer Calibrated Values
View jetracer-config.py
#VEHICLE
DRIVE_LOOP_HZ = 50
#CAMERA
CAMERA_TYPE = "LEOPARD"
IMAGE_W = 224
IMAGE_H = 224
IMAGE_DEPTH = 3
CAMERA_FRAMERATE = DRIVE_LOOP_HZ
CAMERA_VFLIP = False
@tikurahul
tikurahul / Matplotlib.md
Created Sep 21, 2019
Install the right Matplotlib backend
View Matplotlib.md

Install the Backend

sudo apt-get install tk-dev python-tk python3-tk

Install Matplotlib

pip install matplotlib
@tikurahul
tikurahul / Notes.md
Created Aug 8, 2019
OpenCV 4.1 with CUDA
View Notes.md

Installation Notes

Make sure you set -D BUILD_opencv_cudacodec=OFF.

cmake -D CMAKE_BUILD_TYPE=RELEASE \
	-D WITH_CUDA=ON \
	-D CUDA_ARCH_PTX="" \
        -D BUILD_opencv_cudacodec=OFF \ # 
	-D CMAKE_INSTALL_PREFIX=/usr/local \
@tikurahul
tikurahul / OpenCV.md
Last active Feb 10, 2020
OpenCV 4.1 + Tensorflow on Jetson Nano
View OpenCV.md

Step 1: Setup CUDA on Jetson Nano

  • Setup some environment variables so nvcc is on $PATH. Add the following lines to your ~/.bashrc file.
# Add this to your .bashrc file
export CUDA_HOME=/usr/local/cuda
# Adds the CUDA compiler to the PATH
export PATH=$CUDA_HOME/bin:$PATH
# Adds the libraries
@tikurahul
tikurahul / bashrc
Last active Jul 28, 2019
Jetson Nano .bashrc
View bashrc
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
View Donkey on Asus TinkerBoard S
# setup piwheels
# https://www.raspberrypi.org/blog/piwheels/
sudo apt update -y
sudo apt upgrade -y
#helpful libraries (2 min)
sudo apt install build-essential python3-dev python3-distlib python3-setuptools python3-pip python3-wheel -y
sudo apt-get install git cmake pkg-config -y
View Makefile.cmake
diff --git a/node/Makefile b/node/Makefile
index f8a68a2..e60c891 100644
--- a/node/Makefile
+++ b/node/Makefile
@@ -119,7 +119,7 @@ define Package/node/config
choice
prompt "ICU Selection"
default NODEJS_ICU_NONE
help
You can’t perform that action at this time.