We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4ea30f commit 0f46162Copy full SHA for 0f46162
1 file changed
marker/models.py
@@ -16,11 +16,11 @@ def create_model_dict(
16
device=None, dtype=None, attention_implementation: str | None = None
17
) -> dict:
18
foundation_predictor = FoundationPredictor(
19
- device=device, dtype=dtype, attention_implementation=attention_implementation
+ device=device, dtype=dtype
20
)
21
return {
22
"foundation_model": foundation_predictor,
23
- "layout_model": LayoutPredictor(device=device, dtype=dtype),
+ "layout_model": LayoutPredictor(foundation_predictor),
24
"recognition_model": RecognitionPredictor(foundation_predictor),
25
"table_rec_model": TableRecPredictor(device=device, dtype=dtype),
26
"detection_model": DetectionPredictor(device=device, dtype=dtype),
0 commit comments