Skip to content

Commit

Permalink
[POT] Update tests with new data (openvinotoolkit#8209)
Browse files Browse the repository at this point in the history
* Update POT tests with new data

* Revert package changes

* Remove mobinenet-ssd from POT tests

* Update benchmark.py IE Python API usage
  • Loading branch information
KodiaqQ authored Oct 27, 2021
1 parent 7ef4ff6 commit ce9a968
Show file tree
Hide file tree
Showing 108 changed files with 334 additions and 2,029 deletions.
6 changes: 4 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@

#POT attributes
tools/pot/tests/data/test_cases_refs/* filter=lfs diff=lfs merge=lfs -text
tools/pot/tests/data/models/*/* filter=lfs diff=lfs merge=lfs -text
tools/pot/tests/data/reference_models/* filter=lfs diff=lfs merge=lfs -text
tools/pot/tests/data/video/* filter=lfs diff=lfs merge=lfs -text
tools/pot/tests/data/reference_fake_quantize_conf/* filter=lfs diff=lfs merge=lfs -text
/tools/pot/tests/** -pot_package
/configs/accuracy_checker/** -pot_package
/configs/quantization/** -pot_package
/tools/pot/tools/auxilary/** -pot_package
/tools/pot/tools/run_series_experiments.py -pot_package
/tools/pot/.pylintrc -pot_package
Expand Down
4 changes: 2 additions & 2 deletions tools/pot/openvino/tools/pot/benchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_dummy_inputs(batch_size, input_info, requests):
for key, value in input_info.items():
m = []
dt = np_d_type[value.precision]
for x in value.shape:
for x in value.input_data.shape:
m.append(x)
m[0] = m[0] * batch_size
input_data[key] = np.empty(tuple(m), dtype=dt)
Expand All @@ -122,7 +122,7 @@ def get_dummy_inputs(batch_size, input_info, requests):
infer_requests = exe_network.requests
batch_size = ie_network.batch_size
request_queue = InferRequestsQueue(infer_requests)
requests_input_data = get_dummy_inputs(batch_size, ie_network.inputs, infer_requests)
requests_input_data = get_dummy_inputs(batch_size, ie_network.input_info, infer_requests)
infer_request = request_queue.get_idle_request()

# For warming up
Expand Down
3 changes: 3 additions & 0 deletions tools/pot/tests/data/frame_extractor/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/frame_extractor/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/frame_extractor/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/frame_extractor_ref/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/frame_extractor_ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/frame_extractor_ref/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/image_data/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/image_data/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/image_data/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/image_data/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tools/pot/tests/data/image_data/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions tools/pot/tests/data/image_loading/image_files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
./images/0.JPEG
./images/1.JPEG
./images/2.JPEG
./images/3.JPEG
./images/4.JPEG
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Binary file not shown.
Git LFS file not shown
Binary file not shown.
Git LFS file not shown
Git LFS file not shown
Binary file not shown.
Git LFS file not shown
Git LFS file not shown
Loading

0 comments on commit ce9a968

Please sign in to comment.