You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target -1 is out of bounds.
How can I solve this problem
The text was updated successfully, but these errors were encountered:
Hello @126zz6 for creating an issue about "Target -1 is out of bounds".
From the issue, the IndexError during using torch._C._nn.cross_entropy_loss is from the target (or label) index is outside the range (which means the head pose labels are outside the range -99 and 99 degrees).
I wrote the code that it caused an error like that below.
Next, I saw the CrossEntropyLoss was available on the HPE training code (train.py). When training the model, you have to follow the instruction inside README.md such as
However, if you want to create your own filename list, you have to make sure that each head pose values (yaw, pitch, and roll) is between -99 and 99 degrees, otherwise, you will see the error Target -1 is out of bounds.
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target -1 is out of bounds.
How can I solve this problem
The text was updated successfully, but these errors were encountered: