File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 5353from Pose2Sim .skeletons import *
5454
5555np .set_printoptions (legacy = '1.21' ) # otherwise prints np.float64(3.0) rather than 3.0
56- import warnings # Silence numpy "RuntimeWarning: Mean of empty slice"
56+ import warnings # Silence numpy and CoreML warnings
5757warnings .filterwarnings ("ignore" , category = RuntimeWarning , message = "Mean of empty slice" )
5858warnings .filterwarnings ("ignore" , category = RuntimeWarning , message = "All-NaN slice encountered" )
59+ warnings .filterwarnings ("ignore" , category = RuntimeWarning , message = "invalid value encountered in scalar divide" )
60+ warnings .filterwarnings ("ignore" , message = ".*Input.*has a dynamic shape.*but the runtime shape.*has zero elements.*" )
5961
6062# Not safe, but to be used until OpenMMLab/RTMlib's SSL certificates are updated
6163import ssl
You can’t perform that action at this time.
0 commit comments