fg-mindee
commited on
Commit
•
b554400
1
Parent(s):
6906749
docs: Updated README
Browse files
README.md
CHANGED
@@ -48,9 +48,9 @@ pip install -e doctr/.[torch]
|
|
48 |
from PIL import Image
|
49 |
import torch
|
50 |
from torchvision.transforms import Compose, ConvertImageDtype, PILToTensor
|
51 |
-
from
|
52 |
|
53 |
-
model =
|
54 |
|
55 |
img = Image.open(path_to_an_image).convert("RGB")
|
56 |
|
|
|
48 |
from PIL import Image
|
49 |
import torch
|
50 |
from torchvision.transforms import Compose, ConvertImageDtype, PILToTensor
|
51 |
+
from doctr.models.obj_detection.factory import from_hub
|
52 |
|
53 |
+
model = from_hub("mindee/fasterrcnn_mobilenet_v3_large_fpn").eval()
|
54 |
|
55 |
img = Image.open(path_to_an_image).convert("RGB")
|
56 |
|