Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loss=0 in step=101(after two step) #47

Open
mahsa631002 opened this issue Sep 2, 2019 · 1 comment
Open

loss=0 in step=101(after two step) #47

mahsa631002 opened this issue Sep 2, 2019 · 1 comment

Comments

@mahsa631002
Copy link

hello i utilize your useful program for face recognition,my implemented network is inception resnet v2 and

  1. batch_size=16,
    2.lr=0.001
    3.embeding_size=128
    4.train_size=708
    5.eval_size=396
    6.margin=0.5
    7."triplet_strategy": "batch_all"
    loss = 0.5458313, step = 1
    loss = 0.0, step = 101 (3229.453 sec)
    without pretrained weights and only with your implementation two layers CNN ,loss for evaluation goes to about 0.35(batch_size=64,lr=1e-4)with data augmentation .i use embeddings vector from PREDICTION mode as input of my SVM and KNN classifier but accuracies of both are too low about 10%. what do think about this low accuracy for recognition?which part do you think have caused this low accuracy (triplet part or classification part)?

@omoindrot
Copy link
Owner

If the batch size is too low (16) and you have a lot of different classes (ex: 100), you may have no valid triplet in your batch, which might give you a loss of zero.

Or maybe the model is not converging because the learning rate is too high.

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

No branches or pull requests

2 participants