happynear / happynear/FaceVerification

ContrastiveLoss Layer takes 3 vs. 4 bottom blob(s) as input?

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
MATLAB
Stars
447
Forks
230
PR merge metrics
No merged PRs in 30d

Description

My ContrastiveLoss Layer is as flows like you:

layer {
name: "loss"
type: "ContrastiveLoss"
bottom: "fc6_1"
bottom: "fc6_2"
bottom: "label_1"
bottom: "label_2"
top: "fc6_loss"
contrastive_loss_param{
margin: 0
}
loss_weight: 0.001
}

but it occurs the following error messages:

Check failed: ExactNumBottomBlobs() == bottom.size() (3 vs. 4) ContrastiveLoss Layer takes 3 bottom blob(s) as input.

So I want to know if do you have the same problem?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.