tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py
def configure(self):
        """
        This method is responsible for obtaining the necessary parameters
        for converting from the command line or config.
        """
        self.test_csv_file = self.get_value_from_config('annotation_file')
        self.converted_images_dir = self.get_value_from_config('converted_images_dir')
        self.convert_images = self.get_value_from_config('convert_images')
        if self.convert_images and not self.converted_images_dir:
            self.converted_images_dir = self.test_csv_file.parent / 'converted_images'
            if not self.converted_images_dir.exists():
                self.converted_images_dir.mkdir(parents=True)

        if self.convert_images and Image is None:
            raise ValueError(
                "conversion mnist images requires Pillow installation, please install it before usage"
            )
        self.dataset_meta = self.get_value_from_config('dataset_meta_file')

        This method is responsible for obtaining the necessary parameters
        for converting from the command line or config.
        
This method is responsible for obtaining the necessary parameters
for converting from the command line or config.
This method is responsible for obtaining the necessary parameters for converting from the command line or config .
def configure(self):
        self.test_csv_file = self.get_value_from_config('annotation_file')
        self.converted_images_dir = self.get_value_from_config('converted_images_dir')
        self.convert_images = self.get_value_from_config('convert_images')
        if self.convert_images and not self.converted_images_dir:
            self.converted_images_dir = self.test_csv_file.parent / 'converted_images'
            if not self.converted_images_dir.exists():
                self.converted_images_dir.mkdir(parents=True)
        if self.convert_images and Image is None:
            raise ValueError(
                "conversion mnist images requires Pillow installation, please install it before usage"
            )
        self.dataset_meta = self.get_value_from_config('dataset_meta_file')
def configure ( self ) : self . test_csv_file = self . get_value_from_config ( 'annotation_file' ) self . converted_images_dir = self . get_value_from_config ( 'converted_images_dir' ) self . convert_images = self . get_value_from_config ( 'convert_images' ) if self . convert_images and not self . converted_images_dir : self . converted_images_dir = self . test_csv_file . parent / 'converted_images' if not self . converted_images_dir . exists ( ) : self . converted_images_dir . mkdir ( parents = True ) if self . convert_images and Image is None : raise ValueError ( "conversion mnist images requires Pillow installation, please install it before usage" ) self . dataset_meta = self . get_value_from_config ( 'dataset_meta_file' )
This method is responsible for obtaining the necessary parameters
for converting from the command line or config.
This method is responsible for obtaining the necessary parameters for converting from the command line or config .
"""
        This method is responsible for obtaining the necessary parameters
        for converting from the command line or config.
        """
self