-
First of all, I would like to express my respect and gratitude to you for accomplishing such an inspiring work. In the paper, you used a basic triplet loss in the design of the loss function, but used…
-
I want use your triplet_loss function to train a classification model with imagenet, and i got a mistake at triplet_loss.py line 70
dist_ap, relative_p_inds = torch.max((dist_mat * is_pos.float()).co…
-
I was trying to train FaceNet on kaggle using TPU but I had some problem and I noticed that you have train with it before and have good results so can you help me, please? I used batch hard strategy w…
-
Hey!
Any objections adding Hierarchical Triplet Loss (HTL), described [here](https://arxiv.org/pdf/1810.06951)? Happy to work on a Pull Request.
-
Hi, when i use FaceNet train CASIA-Webface, i first use Softmax Loss, and after 90 epoch, the model gets 98% accuracy and 95% validation rate.
Then, i want to use Triplet Loss to finetune the model, …
-
Some users reported that the program would crash when using triplet loss.
Similar issue https://github.com/BVLC/caffe/issues/2995 . It seems that the caffe_gpu_dot() is unproperly used.
I have merge…
-
What is the advantage of SNTG loss over triplet loss?
What is their difference?
@xinmei9322
-
I have 2 changes in original code, first change network from "resnet" to "osnet" (osnet_x1_0). second change loss function from "softmax" to "triplet". and I get this error. can anyone help me?
@Kaiy…
-
### System Info
- `transformers` version: 4.45.2
- Platform: Linux-5.14.0-427.37.1.el9_4.x86_64-x86_64-with-glibc2.34
- Python version: 3.9.19
- Huggingface_hub version: 0.23.5
- Safetensors ve…
-
Hi,
In `TripletMarginLoss` you have default margin set to **0.05**:
```
class TripletMarginLoss(BaseMetricLossFunction):
"""
Args:
margin: The desired difference between the …