Skip to content

Commit

Permalink
test: Added unittest for PyTorch high-level zoo (#499)
Browse files Browse the repository at this point in the history
* test: Renamed TF zoo test

* test: Added PyTorch zoo unittest
  • Loading branch information
fg-mindee authored Sep 29, 2021
1 parent e90edff commit 3b2d375
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/pytorch/test_models_zoo_pt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import pytest

from doctr import models
from doctr.models.predictor import OCRPredictor


@pytest.mark.parametrize(
"det_arch, reco_arch",
[
["db_mobilenet_v3_large", "crnn_mobilenet_v3_large"],
],
)
def test_zoo_models(det_arch, reco_arch):
# Model
predictor = models.ocr_predictor(det_arch, reco_arch, pretrained=True)
# Output checks
assert isinstance(predictor, OCRPredictor)
File renamed without changes.

0 comments on commit 3b2d375

Please sign in to comment.