Skip to content

Instantly share code, notes, and snippets.

View siffi26's full-sized avatar
๐Ÿ”
Building

Siffi Singh siffi26

๐Ÿ”
Building
View GitHub Profile
@siffi26
siffi26 / min-char-rnn.py
Created December 8, 2018 07:56 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@siffi26
siffi26 / kitti2bag.md
Created August 7, 2018 08:31 — forked from zhanghanduo/kitti2bag.md
KITTI data to rosbag #software #experiments

Usage of kitti2bag for KITTI dataset with grayscale odometry images

modified version of *https://github.com/tomas789/kitti2bag*
  1. Install pykitti pip install pykitti

  2. Modify pykitti/odometry.py file located in /usr/local/lib/python2.7/dist-packages/pykitti. At the end of the odometry.py, add:

@siffi26
siffi26 / mnist.py
Created October 12, 2017 08:25 — forked from akesling/mnist.py
import os
import struct
import numpy as np
"""
Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py
which is GPL licensed.
"""
def read(dataset = "training", path = "."):
@siffi26
siffi26 / mnist-to-jpg.py
Created October 6, 2017 02:50 — forked from ischlag/mnist-to-jpg.py
Simple python script which takes the mnist data from tensorflow and builds a data set based on jpg files and text files containing the image paths and labels. Parts of it are from the mnist tensorflow example.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import gzip
import os
import sys
import time
from six.moves import urllib
@siffi26
siffi26 / fix2float.c
Created April 19, 2017 14:27 — forked from yfuruyama/fix2float.c
convert fixed point number to float point number
#include <stdio.h>
#include <math.h>
#define FIXED_BIT 12
float fix2float(unsigned short int n)
{
float ret = 0.0;
int integer_part;
int i;
@siffi26
siffi26 / float2fix.c
Created April 13, 2017 11:08 — forked from yfuruyama/float2fix.c
convert floating point number to fixed point number
#include <stdio.h>
#include <math.h>
#define FIXED_BIT 12
unsigned short int float2fix(float n)
{
unsigned short int int_part = 0, frac_part = 0;
int i;
float t;