• Jiali Duan's avatar
    Fix Pytorch3D PnP test · 379c8b27
    Jiali Duan authored
    Summary:
    EPnP fails the test when the number of points is below 6. As suggested, quadratic option is in theory to deal with as few as 4 points (so num_pts_thresh=3 is set). And when num_pts > num_pts_thresh=4, skip_q is False.
    
    To avoid bumping num_pts_thresh while passing all the original tests, check_output is set to False when num_pts < 6, similar to the logic in Line 123-127.  It makes sure that the algo doesn't crash.
    
    Reviewed By: shapovalov
    
    Differential Revision: D37804438
    
    fbshipit-source-id: 74576d63a9553e25e3ec344677edb6912b5f9354
    379c8b27
test_perspective_n_points.py 7.12 KB