(filepaths)
Find a non-empty txt file, and then get the length of one skeleton data.
    The data length should be 41, where:
    41 = 5 + 36.
        5: [cnt_action, cnt_clip, cnt_image, action_label, filepath]
            See utils.lib_io.get_training_imgs_info for more details
        36: 18 joints * 2 xy positions
Find a non-empty txt file, and then get the length of one skeleton data.
    The data length should be 41, where:
    41 = 5 + 36.
        5: [cnt_action, cnt_clip, cnt_image, action_label, filepath]
            See utils.lib_io.get_training_imgs_info for more details
        36: 18 joints * 2 xy positions
Find a non - empty txt file and then get the length of one skeleton data . The data length should be 41 where : 41 = 5 + 36 . 5 : [ cnt_action cnt_clip cnt_image action_label filepath ] See utils . lib_io . get_training_imgs_info for more details 36 : 18 joints * 2 xy positions
def get_length_of_one_skeleton_data(filepaths):
    ''' Find a non-empty txt file, and then get the length of one skeleton data.
    The data length should be 41, where:
    41 = 5 + 36.
        5: [cnt_action, cnt_clip, cnt_image, action_label, filepath]
            See utils.lib_io.get_training_imgs_info for more details
        36: 18 joints * 2 xy positions
    '''
    for i in range(len(filepaths)):
        skeletons = read_skeletons_from_ith_txt(i)
        if len(skeletons):
            skeleton = skeletons[IDX_PERSON]
            data_size = len(skeleton)
            assert(data_size == 41)
            return data_size
    raise RuntimeError(f"No valid txt under: {SRC_DETECTED_SKELETONS_FOLDER}.")
def get_length_of_one_skeleton_data ( filepaths ) : for i in range ( len ( filepaths ) ) : skeletons = read_skeletons_from_ith_txt ( i ) if len ( skeletons ) : skeleton = skeletons [ IDX_PERSON ] data_size = len ( skeleton ) assert ( data_size == 41 ) return data_size raise RuntimeError ( f"No valid txt under: {SRC_DETECTED_SKELETONS_FOLDER}." )