Skip to content

Instantly share code, notes, and snippets.

View iamgroot42's full-sized avatar

Anshuman Suri iamgroot42

View GitHub Profile
cnlohr /
Last active May 10, 2024 15:59
Git forgot to clone recursively (forgot to check out with recurse submodules)
rudolfbyker /
Created April 25, 2017 10:35
Split WAV files at silence
#!/usr/bin/env python
from import wavfile
import os
import numpy as np
import argparse
from tqdm import tqdm
# Utility functions
Affine transforms implemented on torch tensors, and
only requiring one interpolation
- Affine()
- AffineCompose()
- Rotation()
- Translation()
- Shear()
ypwhs / allow
Last active July 16, 2017 11:57
from keras.backend.tensorflow_backend import set_session
import tensorflow as tf
config = tf.ConfigProto()
eevee /
Last active June 20, 2024 01:58
Perlin noise in Python
"""Perlin noise implementation."""
# Licensed under ISC
from itertools import product
import math
import random
def smoothstep(t):
"""Smooth curve with a zero derivative at 0 and 1, making it useful for
aaronpolhamus / map_clsloc.txt
Created May 12, 2016 01:21
Image net classes + labels
n02119789 1 kit_fox
n02100735 2 English_setter
n02110185 3 Siberian_husky
n02096294 4 Australian_terrier
n02102040 5 English_springer
n02066245 6 grey_whale
n02509815 7 lesser_panda
n02124075 8 Egyptian_cat
n02417914 9 ibex
n02123394 10 Persian_cat
# Make sure you grab the latest version
curl -OL
# Unzip
unzip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
gabrieleangeletti /
Last active October 15, 2019 15:16
Denoising Autoencoder implementation using TensorFlow.
import tensorflow as tf
import numpy as np
import os
import zconfig
import utils
class DenoisingAutoencoder(object):
""" Implementation of Denoising Autoencoders using TensorFlow.
baraldilorenzo /
Last active June 13, 2024 03:07
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

titipata /
Last active January 27, 2022 03:27
My notes on how to install caffe on Ubuntu

Caffe Installation

Note on how to install caffe on Ubuntu. Sucessfully install using CPU, more information for GPU see this link


  • verify all the preinstallation according to CUDA guide e.g.
lspci | grep -i nvidia