Download configuration_omniparser.py from ThomasDh-C/OmniParser-v2.0: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/ThomasDh-C/OmniParser-v2.0/resolve/main/configuration_omniparser.py
- Command line
-
hf download hf://ThomasDh-C/OmniParser-v2.0/configuration_omniparser.py
-
curl -L -o configuration_omniparser.py https://huggingface.co/ThomasDh-C/OmniParser-v2.0/resolve/main/configuration_omniparser.py
313 Bytes
| 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) |