omoindrot / tensorflow-triplet-loss

Implementation of triplet loss in TensorFlow
https://omoindrot.github.io/triplet-loss
MIT License
1.12k stars 284 forks source link

Compute embeddings for various vehicle makes/models? #32

Closed BadWindshield closed 5 years ago

BadWindshield commented 5 years ago

Hi. I am new to this repo. I was able to get the MNIST demo running quickly. Nice work!

I am interested in training my own embeddings for various vehicle makes/models. For example, there is the "Cars" dataset [ http://ai.stanford.edu/~jkrause/cars/car_dataset.html ] where annotations are available for the model/make of a vehicle.

My question is -- is the CNN architecture here general enough to handle vehicles? Do I need something more sophisticated like the VGG 1024 CNN in Faster RCNN? Thanks very much.

omoindrot commented 5 years ago

The current model in this repo is very small so it works for MNIST but it won't work for bigger images.

I would recommend reshaping your images to 224*224 and use a pre-trained network as a starting point like resnet.

BadWindshield commented 5 years ago

@omoindrot Thanks!