MCPcopy Index your code
hub / github.com/PDFMathTranslate/PDFMathTranslate / from_pretrained

Method from_pretrained

pdf2zh/doclayout.py:84–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83 @staticmethod
84 def from_pretrained():
85 pth = get_doclayout_onnx_model_path()
86 return OnnxModel(pth)
87
88 @property
89 def stride(self):

Callers 1

load_onnxMethod · 0.80

Calls 1

OnnxModelClass · 0.85

Tested by

no test coverage detected