Skip to content

Instantly share code, notes, and snippets.

View ssahu's full-sized avatar

Sarthak Sahu ssahu

  • San Francisco, CA
View GitHub Profile
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
@ssahu
ssahu / tensorflow_opencv_ubuntu_deps.sh.txt
Created May 7, 2017 05:18 — forked from CapCap/tensorflow_opencv_ubuntu_deps.sh.txt
Paperspace tensorflow+opencv setup for both python2 and python3 on ubuntu 16
#!/bin/bash
# Don't require you to constantly enter password for sudo:
sudo visudo
# In the bottom of the file, paste the following (without the `#`):
# paperspace ALL=(ALL) NOPASSWD: ALL
# Then press `ctl+o` then `enter` to save your changes, and `ctr+x` to exit nano
# Allow connection from your IP to any port- default seems to be just 22 (ssh)
@ssahu
ssahu / HomographyDecomposition.as
Created October 17, 2017 20:44 — forked from inspirit/HomographyDecomposition.as
Decompose Homography into Rotation matrix & Translation vector
var intrinsic:Vector.<Number> = new Vector.<Number>(9, true);
var intrinsicInverse:Vector.<Number> = new Vector.<Number>(9, true);
var R:Vector.<Number> = new Vector.<Number>( 9, true );
var t:Vector.<Number> = new Vector.<Number>( 3, true );
// SVD routine
var svd:SVD = new SVD();
// input homography[9] - 3x3 Matrix
@ssahu
ssahu / git_config.txt
Created December 18, 2017 21:15
git config desktop
#git config --list
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.name=Sarthak Sahu
[email protected]
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
@ssahu
ssahu / keybase.md
Created March 2, 2019 03:47
keybase.md

Keybase proof

I hereby claim:

  • I am ssahu on github.
  • I am sarthak (https://keybase.io/sarthak) on keybase.
  • I have a public key ASDx8hldqw3vCE5Y0ep0KrmqglkAX3AdVKDcfF-G-rJthAo

To claim this, I am signing this object: