-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more and better plate detection models (#1)
* Remove placeholder test * Add HUB tests * Use HEAD method in test * Add more plate detection models * Update readme * Bump minor version
- Loading branch information
Showing
5 changed files
with
53 additions
and
17 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
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
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
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,20 @@ | ||
""" | ||
Tests for ONNX hub module. | ||
""" | ||
|
||
from http import HTTPStatus | ||
|
||
import pytest | ||
import requests | ||
|
||
from open_image_models.detection.core.hub import AVAILABLE_ONNX_MODELS | ||
|
||
|
||
@pytest.mark.parametrize("model_name", AVAILABLE_ONNX_MODELS.keys()) | ||
def test_model_and_config_urls(model_name): | ||
""" | ||
Test to check if the model URLs of AVAILABLE_ONNX_MODELS are valid. | ||
""" | ||
model_url = AVAILABLE_ONNX_MODELS[model_name] | ||
response = requests.head(model_url, timeout=5, allow_redirects=True) | ||
assert response.status_code == HTTPStatus.OK, f"URL {model_url} is not accessible, got {response.status_code}" |
This file was deleted.
Oops, something went wrong.