Download src/transformers/utils/dummy_detectron2_objects.py from Deku21/RegFM: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/Deku21/RegFM/resolve/main/src/transformers/utils/dummy_detectron2_objects.py
- Command line
-
hf download hf://Deku21/RegFM/src/transformers/utils/dummy_detectron2_objects.py
-
curl -L -o dummy_detectron2_objects.py https://huggingface.co/Deku21/RegFM/resolve/main/src/transformers/utils/dummy_detectron2_objects.py
391 Bytes
| # This file is autogenerated by the command `make fix-copies`, do not edit. | |
| from ..utils import requires_backends | |
| LAYOUTLM_V2_PRETRAINED_MODEL_ARCHIVE_LIST = None | |
| class LayoutLMv2Model: | |
| def __init__(self, *args, **kwargs): | |
| requires_backends(self, ["detectron2"]) | |
| def from_pretrained(cls, *args, **kwargs): | |
| requires_backends(cls, ["detectron2"]) | |