Views
No views yet
titleplain_textabandonfigurefigure_captiontabletable_captiontable_footnoteisolate_formulaformula_captionpip install anyformat-doclayout1from anyformat.doclayout import DocLayoutModel, download_converted
2
3# Download weights from this repo
4weights = download_converted("docstructbench")
5
6# Run inference
7model = DocLayoutModel(weights)
8results = model.predict("document.png")
9
10for det in results:
11 print(f"{det['class_name']}: {det['confidence']:.2f}")