dummy_detectron2_objects.py 340 B

1234567891011
  1. # This file is autogenerated by the command `make fix-copies`, do not edit.
  2. from ..utils import requires_backends
  3. class LayoutLMv2Model:
  4. def __init__(self, *args, **kwargs):
  5. requires_backends(self, ["detectron2"])
  6. @classmethod
  7. def from_pretrained(cls, *args, **kwargs):
  8. requires_backends(cls, ["detectron2"])