ASL demo internal PR - #4
Conversation
Merge OpenVINO toolkit 2021.2 content into master
Merge OpenVINO toolkit 2021.3 content into master
Merge OpenVINO toolkit 2021.4 content into master
…O-version ci: bump OpenVINO version
461746f to
7e10d5b
Compare
| @@ -0,0 +1,12 @@ | |||
| # Copyright (C) 2018-2019 Intel Corporation | |||
| private: | ||
| double smoothingFactor; | ||
| double value; | ||
| }; |
There was a problem hiding this comment.
Is it taken from the original demo and is this the way it is called in the original demo?
There was a problem hiding this comment.
I get this from Gaze estimation. This will be removed, because OMZ get unified FPS counter soon.
There was a problem hiding this comment.
Unified metrics have appeared. Will be removed.
| } | ||
| }; | ||
|
|
||
| } // namespace custom |
There was a problem hiding this comment.
I believe every sample have it now, is it worth putting it to some common place?
There was a problem hiding this comment.
All demos use this stream_source (IFD soon). It is good point put this to common cpp_gapi folder.
| struct TrackedObject { | ||
| cv::Rect rect; | ||
| float confidence; | ||
|
|
||
| int object_id; | ||
|
|
||
| size_t frame_idx; |
There was a problem hiding this comment.
Can this structure be just plain? E.g. default field initializers and no constructor?
| if (key == 27) break; //esc | ||
| if (key == 48) id = 0; // person id | ||
| else if (key == 49) id = 1; | ||
| else if (key == 50) id = 2; | ||
| else if (key == 51) id = 3; | ||
| else if (key == 52) id = 4; | ||
| else if (key == 53) id = 5; | ||
| else if (key == 54) id = 6; | ||
| else if (key == 55) id = 7; | ||
| else if (key == 56) id = 8; | ||
| else if (key == 57) id = 9; | ||
| else if (key == 13) out_label_number = -1; // reset last gesture |
There was a problem hiding this comment.
Key codes for 0...9 buttons
| std::copy_n(matR.begin<float>(), height * width, | ||
| prepared_mat[0].begin<float>() + 0 * batch * height * width | ||
| + step * height * width); | ||
| std::copy_n(matG.begin<float>(), height * width, | ||
| prepared_mat[0].begin<float>() + 1 * batch * height * width | ||
| + step * height * width); | ||
| std::copy_n(matB.begin<float>(), height * width, | ||
| prepared_mat[0].begin<float>() + 2 * batch * height * width | ||
| + step * height * width); |
There was a problem hiding this comment.
What I'd expect here is
- The preprocessing part (
crop,resize,covertTo,split) - happening only once per a new frame - if it is possble. - Only copy_n happenning for all (past+new) preprocessed frames to form the resulting blob.
| // Copyright (C) 2021 Intel Corporation | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
|
|
||
| #include "exponential_averager.hpp" | ||
|
|
||
| ExponentialAverager::ExponentialAverager(double smoothingFactor, double initValue): | ||
| smoothingFactor(smoothingFactor), value(initValue) { | ||
| } | ||
|
|
||
| double ExponentialAverager::getAveragedValue() const { | ||
| return value; | ||
| } | ||
|
|
||
| void ExponentialAverager::updateValue(double newValue) { | ||
| value = smoothingFactor * newValue + (1. - smoothingFactor) * value; | ||
| } |
There was a problem hiding this comment.
This thing looks quite tiny, it is used everywhere or just in a single place? If the latter, I'd drop a separate file here and put it right to the place where it is used.
| throw std::logic_error("Gesture file doesn't open."); | ||
| } | ||
| return labels; | ||
| } No newline at end of file |
| cv::destroyWindow(storage_window_name_); | ||
| } | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
no newline here either, also the alignment "hangs"
| int id = 0; | ||
| for (const auto& item : fn) { | ||
| std::string label = item.name(); | ||
| std::cout << label << std::endl; |
There was a problem hiding this comment.
is it required? Seems like an unstructured random output
Co-authored-by: Anzhella Pankratova <anzhella.pankratova@intel.com>
Merge OpenVINO toolkit 2021.4.1 content into master
0d73094 to
d66d8c5
Compare
* AC: port important bugfixes to release * set metric profiler for coco_orig_precision
Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
…tests_pedestrian_tracker Update tests for pedestrian_tracker_demo
* Fixed pylint(2.10.2) errors in AC files * Fix comment
* update pot import * preserve old import
…inotoolkit/open_model_zoo into feature/vl/support_tr_0016
Merge release into master
…vl/support_tr_0016 Text Recognition 0016
The file was deleted in open-edge-platform/geti#660
…rieval-update-link-to-gallery.txt demos/image_retrieval: update link to gallery.txt
* Add inference adapter * Do not refer directly to model_executor attributes * Move Openvino interface from the demo and AsyncPipeline to Adapter, implement RemoteAdapter, add documentation to ModelAdapter Abstract class * Add the __call__ method to ModelBase class * Refactoring * Update get_input_layers(), get_output_layers(), add Metadata structure, separate the model reading from the loading * Update model wrappers for object_detection_demo, except YOLO wrappers * Update Deblurring, Monodepth demos * Update bert_named_entity_recognition, bert_question_answering demos * Move logging to OpenvinoAdapter, add class Core * Ngraph removed from YOLO * Fix * Update human_pose_estimation_demo + Openpose wrapper * Update hpe_associative_embedding wrapper, bert_question_answering_embedding demo * Fix in object_detection_demo * Delete extra EOF * Update yolo.py * Remove int2float(), add list of openvino precisions * Small fixes * Suggestions * Add ability to read network from byte buffer. * Update demos/common/python/openvino/model_zoo/model_api/adapters/openvino_adapter.py * Update demos/common/python/openvino/model_zoo/model_api/adapters/openvino_adapter.py * Remove trailing whitespaces Co-authored-by: eizamaliev <eduard.zamaliev@intel.com>
…g-strategy Change branching strategy Align the strategy with https://github.com/openvinotoolkit/openvino/wiki/Branches: master - development branch releases/202?/? - release branches
…-develop-master CONTRIBUTING.md: develop->master
* update install section * update openvino-dev installation * add note about pip version
a492e88 to
1aefc46
Compare
|
@mpashchenkov can you please close this PR? I believe its no longer relevant? |
No description provided.