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