Generate the poses and sort them by probability.