(self, img_folder, valid_imgs_txt,
                 img_filename_format="{:05d}.jpg")
Arguments:
            img_folder {str}: A folder that contains many sub folders.
                Each subfolder has many images named as xxxxx.jpg.
            valid_imgs_txt {str}: A txt file which specifies the action labels.
                Example:
                    jump_03-12-09-18-26-176
                    58 680

                    jump_03-13-11-27-50-720
                    65 393

                    kick_03-02-12-36-05-185
                    54 62
                    75 84
            img_filename_format {str}: format of the image filename
Arguments:
            img_folder {str}: A folder that contains many sub folders.
                Each subfolder has many images named as xxxxx.jpg.
            valid_imgs_txt {str}: A txt file which specifies the action labels.
                Example:
                    jump_03-12-09-18-26-176
                    58 680
Arguments : img_folder { str } : A folder that contains many sub folders . Each subfolder has many images named as xxxxx . jpg . valid_imgs_txt { str } : A txt file which specifies the action labels . Example : jump_03 - 12 - 09 - 18 - 26 - 176 58 680
def __init__(self, img_folder, valid_imgs_txt,
                 img_filename_format="{:05d}.jpg"):
        '''
        Arguments:
            img_folder {str}: A folder that contains many sub folders.
                Each subfolder has many images named as xxxxx.jpg.
            valid_imgs_txt {str}: A txt file which specifies the action labels.
                Example:
                    jump_03-12-09-18-26-176
                    58 680

                    jump_03-13-11-27-50-720
                    65 393

                    kick_03-02-12-36-05-185
                    54 62
                    75 84
            img_filename_format {str}: format of the image filename
        '''
        self.images_info = get_training_imgs_info(
            valid_imgs_txt, img_filename_format)
        self.imgs_path = img_folder
        self.i = 0
        self.num_images = len(self.images_info)
        print(f"Reading images from txtscript: {img_folder}")
        print(f"Reading images information from: {valid_imgs_txt}")
        print(f"    Num images = {self.num_images}\n")
def __init__ ( self , img_folder , valid_imgs_txt , img_filename_format = "{:05d}.jpg" ) : self . images_info = get_training_imgs_info ( valid_imgs_txt , img_filename_format ) self . imgs_path = img_folder self . i = 0 self . num_images = len ( self . images_info ) print ( f"Reading images from txtscript: {img_folder}" ) print ( f"Reading images information from: {valid_imgs_txt}" ) print ( f"    Num images = {self.num_images}\n" )