(self, filename)
return data
Load baseline data
        :param filename: file name of data
        :return: list with joint coordinates
Load baseline data
        :param filename: file name of data
        :return: list with joint coordinates
Load baseline data : param filename : file name of data : return : list with joint coordinates
def loadBaseline2D(self, filename):
        """
        Load baseline data
        :param filename: file name of data
        :return: list with joint coordinates
        """

        mat = scipy.io.loadmat(filename)
        names = mat['conv_joint_names'][0]
        joints = mat['pred_joint_uvconf'][0]

        self.numJoints = names.shape[0]

        data = []
        for dat in range(joints.shape[0]):
            # joints in image coordinates
            ev = np.zeros((self.numJoints, 2), np.float32)
            jt = 0
            for i in range(joints.shape[1]):
                if np.count_nonzero(joints[dat, i, :]) == 0:
                    continue
                ev[jt, 0] = joints[dat, i, 0]
                ev[jt, 1] = joints[dat, i, 1]
                jt += 1

            data.append(ev)

        return data
def loadBaseline2D ( self , filename ) : mat = scipy . io . loadmat ( filename ) names = mat [ 'conv_joint_names' ] [ 0 ] joints = mat [ 'pred_joint_uvconf' ] [ 0 ] self . numJoints = names . shape [ 0 ] data = [ ] for dat in range ( joints . shape [ 0 ] ) : # joints in image coordinates ev = np . zeros ( ( self . numJoints , 2 ) , np . float32 ) jt = 0 for i in range ( joints . shape [ 1 ] ) : if np . count_nonzero ( joints [ dat , i , : ] ) == 0 : continue ev [ jt , 0 ] = joints [ dat , i , 0 ] ev [ jt , 1 ] = joints [ dat , i , 1 ] jt += 1 data . append ( ev ) return data