You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
340 B
12 lines
340 B
|
4 days ago
|
# 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"])
|
||
|
|
|
||
|
|
@classmethod
|
||
|
|
def from_pretrained(cls, *args, **kwargs):
|
||
|
|
requires_backends(cls, ["detectron2"])
|