Update README.md
Browse files
README.md
CHANGED
@@ -52,12 +52,12 @@ Now, let's compare the performance of this model with other models.
|
|
52 |
|
53 |
```python
|
54 |
import torch
|
55 |
-
from transformers import AutoImageProcessor,
|
56 |
|
57 |
img_proc = AutoImageProcessor.from_pretrained(
|
58 |
"cmarkea/dit-base-layout-detection"
|
59 |
)
|
60 |
-
model =
|
61 |
"cmarkea/dit-base-layout-detection"
|
62 |
)
|
63 |
|
|
|
52 |
|
53 |
```python
|
54 |
import torch
|
55 |
+
from transformers import AutoImageProcessor, BeitForSemanticSegmentation
|
56 |
|
57 |
img_proc = AutoImageProcessor.from_pretrained(
|
58 |
"cmarkea/dit-base-layout-detection"
|
59 |
)
|
60 |
+
model = BeitForSemanticSegmentation.from_pretrained(
|
61 |
"cmarkea/dit-base-layout-detection"
|
62 |
)
|
63 |
|