class_docstr: [`Owlv2Config`] is the configuration class to store the configuration of an [`Owlv2Model`]. It is used to
  instantiate an OWLv2 model according to the specified arguments, defining the text model and vision model
  configs. Instantiating a configuration with the defaults will yield a similar configuration to that of the OWLv2
  [google/owlv2-base-patch16](https://huggingface.co/google/owlv2-base-patch16) architecture.
  
  Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
  documentation from [`PretrainedConfig`] for more information.
  
  Args:
      text_config (`dict`, *optional*):
          Dictionary of configuration options used to initialize [`Owlv2TextConfig`].
      vision_config (`dict`, *optional*):
          Dictionary of configuration options used to initialize [`Owlv2VisionConfig`].
      projection_dim (`int`, *optional*, defaults to 512):
          Dimensionality of text and vision projection layers.
      logit_scale_init_value (`float`, *optional*, defaults to 2.6592):
          The inital value of the *logit_scale* parameter. Default is used as per the original OWLv2
          implementation.
      return_dict (`bool`, *optional*, defaults to `True`):
          Whether or not the model should return a dictionary. If `False`, returns a tuple.
      kwargs (*optional*):
          Dictionary of keyword arguments.
class_docstr_tok: ["[","`","Owlv2Config","`","]","is","the","configuration","class","to","store","the","configuration","of","an","[","`","Owlv2Model","`","]",".","It","is","used","to","instantiate","an","OWLv2","model","according","to","the","specified","arguments",",","defining","the","text","model","and","vision","model","configs",".","Instantiating","a","configuration","with","the","defaults","will","yield","a","similar","configuration","to","that","of","the","OWLv2","[","google\/owlv2-base-patch16","]","(","https",":","\/\/huggingface.co\/google\/owlv2-base-patch16",")","architecture",".","Configuration","objects","inherit","from","[","`","PretrainedConfig","`","]","and","can","be","used","to","control","the","model","outputs",".","Read","the","documentation","from","[","`","PretrainedConfig","`","]","for","more","information",".","Args",":","text_config","(","`","dict","`",",","*","optional","*",")",":","Dictionary","of","configuration","options","used","to","initialize","[","`","Owlv2TextConfig","`","]",".","vision_config","(","`","dict","`",",","*","optional","*",")",":","Dictionary","of","configuration","options","used","to","initialize","[","`","Owlv2VisionConfig","`","]",".","projection_dim","(","`","int","`",",","*","optional","*",",","defaults","to","512",")",":","Dimensionality","of","text","and","vision","projection","layers",".","logit_scale_init_value","(","`","float","`",",","*","optional","*",",","defaults","to","2.6592",")",":","The","inital","value","of","the","*","logit_scale","*","parameter",".","Default","is","used","as","per","the","original","OWLv2","implementation",".","return_dict","(","`","bool","`",",","*","optional","*",",","defaults","to","`","True","`",")",":","Whether","or","not","the","model","should","return","a","dictionary",".","If","`","False","`",",","returns","a","tuple",".","kwargs","(","*","optional","*",")",":","Dictionary","of","keyword","arguments","."]
code: def __init__(
      self,
      text_config=None,
      vision_config=None,
      projection_dim=512,
      logit_scale_init_value=2.6592,
      return_dict=True,
      **kwargs,
  ):
      super().__init__(**kwargs)
  
      if text_config is None:
          text_config = {}
          logger.info(
              "text_config is None. Initializing the Owlv2TextConfig with default values."
          )
  
      if vision_config is None:
          vision_config = {}
          logger.info(
              "vision_config is None. initializing the Owlv2VisionConfig with default values."
          )
  
      self.text_config = Owlv2TextConfig(**text_config)
      self.vision_config = Owlv2VisionConfig(**vision_config)
  
      self.projection_dim = projection_dim
      self.logit_scale_init_value = logit_scale_init_value
      self.return_dict = return_dict
      self.initializer_factor = 1.0
  
file_path: transformers/src/transformers/models/owlv2/configuration_owlv2.py
imports: import os
  from typing import TYPE_CHECKING, Dict, Union
  from ...configuration_utils import PretrainedConfig
  from ...utils import logging
label_desc: Use image node_id 1 to create a new Owlv2Config object from inherited base classes: PretrainedConfig with example: obj = Owlv2Config(text_config, vision_config, projection_dim, logit_scale_init_value, return_dict)