Closed seekFire closed 3 years ago
In inference.py, the function get_max_preds, I think the code shown as follows needs to add - 1 to its tail: preds[:, :, 0] = (preds[:, :, 0]) % width should be rectified as: preds[:, :, 0] = (preds[:, :, 0]) % width - 1 So what's your opinion?
- 1
preds[:, :, 0] = (preds[:, :, 0]) % width
preds[:, :, 0] = (preds[:, :, 0]) % width - 1
I made a mistake... you're right
In inference.py, the function get_max_preds, I think the code shown as follows needs to add
- 1
to its tail:preds[:, :, 0] = (preds[:, :, 0]) % width
should be rectified as:preds[:, :, 0] = (preds[:, :, 0]) % width - 1
So what's your opinion?