from transformers import PretrainedConfig from typing import List class OmniparserConfig(PretrainedConfig): model_type = "omniparserv2" def __init__( self, box_threshold: float = 0.05, **kwargs, ): self.box_threshold = box_threshold super().__init__(**kwargs)