deep-head-pose
deep-head-pose copied to clipboard
Assertion `cur_target >= 0 && cur_target < n_classes' failed.
Why occur this bug. Is the number of classes is wrong?
bins = np.array(range(-99, 102, 3))
Should it set 68 rather than 66 ?
Traceback (most recent call last):
File "/home/zlee/PycharmProjects/deep-head-pose-master/code/train_hopenet_cpu.py", line 166, in
I was doing some debugging and turns out this error doesnt popup up when using jsut the original datasets. The augmented ones (Flipped) cause thi error. I am not sure how. the code looks alright as i stepped through each of the tensors.
The problem here is that for some images, the angles excess 99 or less than -99, so the index of the bins is not in range (0,66), that causes this bug. Maybe removing those samples can help.