GroundingDINO
GroundingDINO copied to clipboard
make sure right_idx bigger than left_idx
If right_idx already equals 0, left_idx will be -1. In this case, posmap will all be False, which is meaningless.