Giter Site home page Giter Site logo

popcornell / keras-triplet-center-loss Goto Github PK

View Code? Open in Web Editor NEW
44.0 6.0 12.0 4.44 MB

Simple Keras implementation of Triplet-Center Loss on the MNIST dataset

License: GNU General Public License v3.0

Python 100.00%
keras tensorflow triplet-loss center-loss mnist machine-learning

keras-triplet-center-loss's Introduction

Hi there,

I'm a Post-Doc at CMU LTI, working on Audio Processing and Machine Learning.

Samuele Cornell | LinkedIn Samuele Cornell | Twitter Samuele Cornell | Twitter

You can find a link to my CV here.


Github stats

keras-triplet-center-loss's People

Contributors

popcornell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

keras-triplet-center-loss's Issues

triplet_center_loss:TypeError

when i want to run the triplet_center_loss, the error is show that ,how can i fix it, thanks.

"TypeError: Input 'y' of 'Equal' Op has type float32 that does not match type uint8 of argument 'x'"

TypeError: unhashable type: 'numpy.ndarray'

Hi!!
when generate_triplet function is called I am getting an error. Please help me to resolve it
this is the line for this error
for data_class in sorted(set(data_xy[1])):

reshape error

x_train, x_test, y_train, y_test = train_test_split(images, labels, test_size=0.33, shuffle= True)

model_input = Input(shape=(224,224, 3))
softmax, pre_logits = base_network()
x_train_flat = x_train.reshape(-1, 163968)

x_train_flat = x_train.reshape(-1, 163968)
ValueError: cannot reshape array of size 1304626176 into shape (163968)

what is the exact reason for this. please help me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.