Skip to content

Instantly share code, notes, and snippets.

View chirag4798's full-sized avatar

Chirag Shetty chirag4798

  • Fynd
  • Mumbai, India
View GitHub Profile
@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