Skip to content

Commit 0f46162

Browse files
committed
Move to integrated layout-foundation model
1 parent a4ea30f commit 0f46162

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

marker/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ def create_model_dict(
1616
device=None, dtype=None, attention_implementation: str | None = None
1717
) -> dict:
1818
foundation_predictor = FoundationPredictor(
19-
device=device, dtype=dtype, attention_implementation=attention_implementation
19+
device=device, dtype=dtype
2020
)
2121
return {
2222
"foundation_model": foundation_predictor,
23-
"layout_model": LayoutPredictor(device=device, dtype=dtype),
23+
"layout_model": LayoutPredictor(foundation_predictor),
2424
"recognition_model": RecognitionPredictor(foundation_predictor),
2525
"table_rec_model": TableRecPredictor(device=device, dtype=dtype),
2626
"detection_model": DetectionPredictor(device=device, dtype=dtype),

0 commit comments

Comments
 (0)