Skip to content

Implement CNN Triplet training.#5019

Open
paroj wants to merge 1 commit intoBVLC:masterfrom
paroj:cnn_triplet
Open

Implement CNN Triplet training.#5019
paroj wants to merge 1 commit intoBVLC:masterfrom
paroj:cnn_triplet

Conversation

@paroj
Copy link
Copy Markdown

@paroj paroj commented Nov 23, 2016

same as #3123 but rebased on master and including the requested changes.

@paroj paroj force-pushed the cnn_triplet branch 4 times, most recently from 1500529 to 07346e9 Compare November 28, 2016 13:39
@soulslicer
Copy link
Copy Markdown

soulslicer commented Jul 13, 2018

Good day,

I am trying to use your triplet loss layer, but I can't understand the input and output. I currently have a input of [N*3 * 1024] where the data is stored in

[+ 1]
[+ 1]
[- 1],
[+ 2]
[+ 2]
[- 2]
etc.

How can I use the triplet loss layer to minimize this?

Also, why are there two inputs to triplet loss. Shouldnt the feature vectors be enough. the 2nd input is not even used except in:

// CHECK_EQ(bottom[1]->channels(), 1);
// CHECK_EQ(bottom[1]->height(), 1);
// CHECK_EQ(bottom[1]->width(), 1);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants