Skip to content

Commit

Permalink
update models list (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 authored Aug 11, 2023
1 parent 95857cf commit aa8e6a1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
21 changes: 19 additions & 2 deletions demo/backend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,25 @@
from doctr.models import ocr_predictor
from doctr.models.predictor import OCRPredictor

DET_ARCHS = ["db_resnet50", "db_mobilenet_v3_large", "linknet_resnet50_rotation"]
RECO_ARCHS = ["crnn_vgg16_bn", "crnn_mobilenet_v3_small", "master", "sar_resnet31"]
DET_ARCHS = [
"db_resnet50",
"db_resnet34",
"db_mobilenet_v3_large",
"db_resnet50_rotation",
"linknet_resnet18",
"linknet_resnet34",
"linknet_resnet50",
]
RECO_ARCHS = [
"crnn_vgg16_bn",
"crnn_mobilenet_v3_small",
"crnn_mobilenet_v3_large",
"master",
"sar_resnet31",
"vitstr_small",
"vitstr_base",
"parseq",
]


def load_predictor(det_arch: str, reco_arch: str, device) -> OCRPredictor:
Expand Down
20 changes: 18 additions & 2 deletions demo/backend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,24 @@
from doctr.models import ocr_predictor
from doctr.models.predictor import OCRPredictor

DET_ARCHS = ["db_resnet50", "db_mobilenet_v3_large", "linknet_resnet18_rotation"]
RECO_ARCHS = ["crnn_vgg16_bn", "crnn_mobilenet_v3_small", "master", "sar_resnet31"]
DET_ARCHS = [
"db_resnet50",
"db_mobilenet_v3_large",
"linknet_resnet18",
"linknet_resnet18_rotation",
"linknet_resnet34",
"linknet_resnet50",
]
RECO_ARCHS = [
"crnn_vgg16_bn",
"crnn_mobilenet_v3_small",
"crnn_mobilenet_v3_large",
"master",
"sar_resnet31",
"vitstr_small",
"vitstr_base",
"parseq",
]


def load_predictor(det_arch: str, reco_arch: str, device) -> OCRPredictor:
Expand Down

0 comments on commit aa8e6a1

Please sign in to comment.