training_extensions
training_extensions copied to clipboard
[OTE_SDK_TESTS] Added input parameters validation and tests. Part 2 Shapes
Added input parameters validations for Shapes classes of OTE SDK: • Ellipse class: initialization and get_evenly_distributed_ellipse_coordinates methods • Point class: initialization, normalize_wrt_roi and denormalize_wrt_roi_shape methods • Polygon class: initialization method • Rectangle class: initialization, is_full_box and crop_numpy_array methods • Shape class: initialization, intersects, contains_center, get_labels, append_label, set_labels and _validate_coordinates methods Tests updated according to above changes: • test_rectangle.py: test_rectangle_is_full_box Added tests/parameters_validation/test_shapes_input_parameters_validation.py with negative scenarios to check that ValueError exception is raised when unexpected type object is specified in Shape methods
Task: CVS-77259
run ote_sdk tests
run ote_sdk tests
Can one of the admins verify this patch?
draft?
This pull request is in the “Draft” state due to unmerged base PR https://github.com/openvinotoolkit/training_extensions/pull/890, but the approach to check input parameters is ready for review
ote-test/1262
@LeonidBeynenson @Ilya-Krylov please review
run ote_sdk tests
run ote-test
closed due to clean up the stale branches