mk-minchul / AdaFace

MIT License
625 stars 118 forks source link

what does this mean? # ignore_index #133

Open zws98 opened 10 months ago

zws98 commented 10 months ago

Line 67, train_val.py:

if isinstance(cos_thetas, tuple): cos_thetas, bad_grad = cos_thetas labels[bad_grad.squeeze(-1)] = -100 # ignore_index

How can I understand this part of code? May I ask in which situation this tuple output can be caused?