(self, model="cmu", image_size="432x368")
Arguments:
            model {str}: "cmu" or "mobilenet_thin".        
            image_size {str}: resize input images before they are processed. 
                Recommends : 432x368, 336x288, 304x240, 656x368,
Arguments:
            model {str}: "cmu" or "mobilenet_thin".        
            image_size {str}: resize input images before they are processed. 
                Recommends : 432x368, 336x288, 304x240, 656x368,
Arguments : model { str } : cmu or mobilenet_thin . image_size { str } : resize input images before they are processed . Recommends : 432x368 336x288 304x240 656x368
def __init__(self, model="cmu", image_size="432x368"):
        ''' Arguments:
            model {str}: "cmu" or "mobilenet_thin".        
            image_size {str}: resize input images before they are processed. 
                Recommends : 432x368, 336x288, 304x240, 656x368, 
        '''
        # -- Check input
        assert(model in ["mobilenet_thin", "cmu"])
        self._w, self._h = _get_input_img_size_from_string(image_size)
        
        # -- Set up openpose model
        self._model = model
        self._resize_out_ratio = 4.0 # Resize heatmaps before they are post-processed. If image_size is small, this should be large.
        self._config = _set_config()
        self._tf_pose_estimator = TfPoseEstimator(
            get_graph_path(self._model), 
            target_size=(self._w, self._h),
            tf_config=self._config)
        self._prev_t = time.time()
        self._cnt_image = 0
        
        # -- Set logger
        self._logger = _set_logger()
def __init__ ( self , model = "cmu" , image_size = "432x368" ) : # -- Check input assert ( model in [ "mobilenet_thin" , "cmu" ] ) self . _w , self . _h = _get_input_img_size_from_string ( image_size ) # -- Set up openpose model self . _model = model self . _resize_out_ratio = 4.0 # Resize heatmaps before they are post-processed. If image_size is small, this should be large. self . _config = _set_config ( ) self . _tf_pose_estimator = TfPoseEstimator ( get_graph_path ( self . _model ) , target_size = ( self . _w , self . _h ) , tf_config = self . _config ) self . _prev_t = time . time ( ) self . _cnt_image = 0 # -- Set logger self . _logger = _set_logger ( )