Skip to content

Commit bb98fe4

Browse files
authored
Switch telemetry to opt-out in OMZ. (#3872)
* Switch telemetry to opt-out. * Add note to readme.
1 parent 626c8f5 commit bb98fe4

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ Intel is committed to the respect of human rights and avoiding complicity in hum
1313
## License
1414
Open Model Zoo is licensed under [Apache License Version 2.0](LICENSE).
1515

16+
## Telemetry
17+
OpenVINO™ collects software performance and usage data for the purpose of improving OpenVINO™ tools. This data is collected directly by OpenVINO™ or through the use of Google Analytics 4.
18+
You can opt-out at any time by running the command:
19+
20+
``` bash
21+
opt_in_out --opt_out
22+
```
23+
1624
## Online Documentation
1725
* [OpenVINO™ Release Notes](https://software.intel.com/en-us/articles/OpenVINO-RelNotes)
1826
* [Pre-Trained Models](https://docs.openvino.ai/2023.0/model_zoo.html)

tools/accuracy_checker/openvino/tools/accuracy_checker/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,10 @@ def init_telemetry():
876876
telemetry = tm.Telemetry(tid='G-W5E9RNLD4H',
877877
app_name='Accuracy Checker',
878878
app_version=__version__,
879-
backend='ga4')
879+
backend='ga4',
880+
enable_opt_in_dialog=False,
881+
disable_in_ci=True
882+
)
880883
return telemetry
881884
except Exception: # pylint:disable=W0703
882885
return None
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# core components
22
defusedxml>=0.7.1
33
numpy>=1.16.6
4-
openvino-telemetry>=2023.1.0
4+
openvino-telemetry>=2023.2.1
55
PyYAML>=5.4.1
66
pillow>=8.1.2

tools/model_tools/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
openvino-telemetry>=2023.1.0
1+
openvino-telemetry>=2023.2.1
22
pyyaml>=5.4.1
33
requests>=2.25.1

tools/model_tools/src/openvino/model_zoo/_common.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@
8787
from openvino_telemetry import Telemetry
8888
except ImportError:
8989
class Telemetry:
90-
def __init__(self, tid=None, app_name=None, app_version=None, backend=None): pass
90+
def __init__(self,
91+
tid=None,
92+
app_name=None,
93+
app_version=None,
94+
backend=None,
95+
enable_opt_in_dialog=None,
96+
disable_in_ci=None): pass
9197

9298
def start_session(self, category): pass
9399

@@ -149,7 +155,9 @@ def telemetry_session(app_name, tool):
149155
telemetry = Telemetry(tid='G-W5E9RNLD4H',
150156
app_name=app_name,
151157
app_version=version,
152-
backend='ga4')
158+
backend='ga4',
159+
enable_opt_in_dialog=False,
160+
disable_in_ci=True)
153161
telemetry.start_session('md')
154162
telemetry.send_event('md', 'version', version)
155163
try:

0 commit comments

Comments
 (0)