Skip to content

Instantly share code, notes, and snippets.

View sidgairo18's full-sized avatar
Coding

Siddhartha Gairola sidgairo18

Coding
View GitHub Profile
@sidgairo18
sidgairo18 / README.md
Created April 22, 2024 00:19 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@sidgairo18
sidgairo18 / siamese_triplet.py
Created December 18, 2018 11:40
Siamese Network with Triplet Loss
#!/usr/bin/python
# Author: Siddhartha Gairola (siddhartha dot gairola at iiit dot ac dot in)
from __future__ import division
import tensorflow as tf
tf.set_random_seed(1)
from keras.applications.inception_v3 import InceptionV3
from keras.models import Model, load_model
from keras.layers import BatchNormalization, Activation, Dense, Dropout, Flatten, Input, Lambda
from keras.layers import Conv2D, MaxPooling2D, ZeroPadding2D