
"""simple docstring"""

import getopt
import json
import os

# import numpy as np
import sys
from collections import OrderedDict

import datasets
import numpy as np
import torch
from modeling_frcnn import GeneralizedRCNN
from processing_image import Preprocess

from utils import Config
UpperCamelCase      :							Union[str, Any]          =					False
UpperCamelCase      :							Tuple          =					Config.from_pretrained("unc-nlp/frcnn-vg-finetuned")
UpperCamelCase      :							Any          =					datasets.Features(
    OrderedDict(
        {
            "attr_ids": datasets.Sequence(length=CONFIG.MAX_DETECTIONS, feature=datasets.Value("float32")),
            "attr_probs": datasets.Sequence(length=CONFIG.MAX_DETECTIONS, feature=datasets.Value("float32")),
            "boxes": datasets.ArrayaD((CONFIG.MAX_DETECTIONS, 4), dtype="float32"),
            "img_id": datasets.Value("int32"),
            "obj_ids": datasets.Sequence(length=CONFIG.MAX_DETECTIONS, feature=datasets.Value("float32")),
            "obj_probs": datasets.Sequence(length=CONFIG.MAX_DETECTIONS, feature=datasets.Value("float32")),
            "roi_features": datasets.ArrayaD((CONFIG.MAX_DETECTIONS, 2_0_4_8), dtype="float32"),
            "sizes": datasets.Sequence(length=2, feature=datasets.Value("float32")),
            "preds_per_image": datasets.Value(dtype="int32"),
        }
    )
)

class __lowerCAmelCase						:





     def __init__(      self      ,	__UpperCAmelCase=sys.argv[1:] ):

      '''simple docstring'''




      __UpperCamelCase							    =			None
      __UpperCamelCase							    =			None
      __UpperCamelCase							    =			None
      __UpperCamelCase							    =			1
      __UpperCamelCase    ,      __UpperCamelCase							    =			getopt.getopt(__UpperCAmelCase      ,	'i:o:b:s'      ,	['inputdir=', 'outfile=', 'batch_size=', 'subset_list='] )
      for opt, arg in opts:
       if opt in ("-i", "--inputdir"):
        __UpperCamelCase							    =			arg
       elif opt in ("-o", "--outfile"):
        __UpperCamelCase							    =			arg
       elif opt in ("-b", "--batch_size"):
        __UpperCamelCase							    =			int(__UpperCAmelCase )
       elif opt in ("-s", "--subset_list"):
        __UpperCamelCase							    =			arg

      assert inputdir is not None  # and os.path.isdir(inputdir), f"{inputdir}"
      assert outputfile is not None and not os.path.isfile(__UpperCAmelCase ), F'{outputfile}'
      if subset_list is not None:
       with open(os.path.realpath(__UpperCAmelCase ) ) as f:
        __UpperCamelCase							    =			{self._vqa_file_split()[0] for x in tryload(__UpperCAmelCase )}
      else:
       __UpperCamelCase							    =			None

      __UpperCamelCase							    =			CONFIG
      if torch.cuda.is_available():
       __UpperCamelCase							    =			'cuda'
      __UpperCamelCase							    =			os.path.realpath(__UpperCAmelCase )
      __UpperCamelCase							    =			os.path.realpath(__UpperCAmelCase )
      __UpperCamelCase							    =			Preprocess(self.config )
      __UpperCamelCase							    =			GeneralizedRCNN.from_pretrained('unc-nlp/frcnn-vg-finetuned'      ,	config=self.config )
      __UpperCamelCase							    =			batch_size if batch_size != 0 else 1
      __UpperCamelCase							    =			DEFAULT_SCHEMA





     def 		UpperCAmelCase   (      self      ,	__UpperCAmelCase ):

      '''simple docstring'''




      __UpperCamelCase							    =			int(file.split('.' )[0].split('_' )[-1] )
      __UpperCamelCase							    =			os.path.join(self.inputdir      ,	__UpperCAmelCase )
      return (img_id, filepath)





     @property
     def 		UpperCAmelCase   (      self ):

      '''simple docstring'''




      __UpperCamelCase							    =			[]
      for i, file in enumerate(os.listdir(self.inputdir ) ):
       if self.subset_list is not None and i not in self.subset_list:
        continue
       batch.append(self._vqa_file_split(__UpperCAmelCase ) )
       if len(__UpperCAmelCase ) == self.batch:
        __UpperCamelCase							    =			batch
        __UpperCamelCase							    =			[]
        yield list(map(__UpperCAmelCase      ,	zip(*__UpperCAmelCase ) ) )

      for i in range(1 ):
       yield list(map(__UpperCAmelCase      ,	zip(*__UpperCAmelCase ) ) )







     def __call__(      self ):

      '''simple docstring'''




      if not TEST:
       __UpperCamelCase							    =			datasets.ArrowWriter(features=self.schema      ,	path=self.outputfile )
      # do file generator
      for i, (img_ids, filepaths) in enumerate(self.file_generator ):
       __UpperCamelCase    ,      __UpperCamelCase    ,      __UpperCamelCase							    =			self.preprocess(__UpperCAmelCase )
       __UpperCamelCase							    =			self.model(
           __UpperCAmelCase      ,	__UpperCAmelCase      ,	scales_yx=__UpperCAmelCase      ,	padding='max_detections'      ,	max_detections=self.config.MAX_DETECTIONS      ,	pad_value=0      ,	return_tensors='np'      ,	location='cpu'      ,	)
       __UpperCamelCase							    =			output_dict.pop('normalized_boxes' )
       if not TEST:
        __UpperCamelCase							    =			np.array(__UpperCAmelCase )
        __UpperCamelCase							    =			self.schema.encode_batch(__UpperCAmelCase )
        writer.write_batch(__UpperCAmelCase )
       if TEST:
        break
       # finalizer the writer
      if not TEST:
       __UpperCamelCase    ,      __UpperCamelCase							    =			writer.finalize()
       print(F'Success! You wrote {num_examples} entry(s) and {num_bytes >> 20} mb' )






def 				A		(							snake_case :str						) ->      Dict:
 try:
  __UpperCamelCase							    =			json.load(snake_case						)
  try:
   __UpperCamelCase							    =			list(data.keys()						)
  except Exception:
   __UpperCamelCase							    =			[d['img_id'] for d in data]
 except Exception:
  try:
   __UpperCamelCase							    =			eval(stream.read()						)
  except Exception:
   __UpperCamelCase							    =			stream.read().split('\n'						)
 return data


if __name__ == "__main__":
      UpperCamelCase      :							Tuple          =					Extract(sys.argv[1:])
      extract()
      if not TEST:
            UpperCamelCase      :							str          =					datasets.Dataset.from_file(extract.outputfile)
            # wala!
            # print(np.array(dataset[0:2]["roi_features"]).shape)





"""simple docstring"""

from ..utils import DummyObject, requires_backends

class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )


class __lowerCAmelCase						( metaclass=__SCREAMING_SNAKE_CASE     ):
     lowercase		  =		["vision"]





     def __init__(      self      ,	*__UpperCAmelCase      ,	**__UpperCAmelCase ):

      '''simple docstring'''




      requires_backends(self      ,	['vision'] )



