-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Added unittest for PyTorch high-level zoo (#499)
* test: Renamed TF zoo test * test: Added PyTorch zoo unittest
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.