Rodzina ją upokorzyła, lecz zemsta ojca była słodsza niż zemsta…2 min czytania.

Dzielić

Ściągnięto ze mnie ubranie na oczach wszystkich, wykrzykując, że jestem „łowczynią posagów”, która nie zasługuje na ich syna. Moja teściowa śmiała się, gdy stałam tam, upokorzona i zrozpaczona. Ale nie wiedzieli, że mój ojciec widział wszystko i miał zamiar pokazać im, kim naprawdę jestem. Nazywam się Zofia, a to historia o tym, jak zrozumiałam, że czasem ci, którzy powinni nas chronić, ranią nas najbardziej.

I że sprawiedliwość przychodzi w sposób, którego się nie spodTitle: Add ability to select the device in stream_mm.py
username_0: **Is your feature request related to a problem? Please describe.**
Currently, `stream_mm.py` automatically takes the first device available, but I have multiple physical devices (integrated and discrete GPU) and I want to be able to pick among them.

**Describe the solution you’d like**
Adding a command line argument (e.g., `–device_id`) to select the desired device would make the sample more flexible. I think OpenVINO’s samples already show how to enumerate the available devices (e.g., [here](https://github.com/openvinotoolkit/open_model_zoo/blob/3c9e1cc6c8d0c3bbed8aee0b2fb7db2f7f785366/demos/multi_camera_multi_target_tracking_demo/python/multi_camera_multi_target_tracking_demo.py#L283)), so that would be a good way to show which ID to pass.

**Describe alternatives you’ve considered**
None.

**Additional context**
None.
username_1: Thanks for the feedback!

I think the better solution is to support the `–device` option in `stream_mm.py` (similar to other OpenVINO [demo applications](https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_Samples_Overview.html)). You can then say, for example, `–device GPU.1` (if GPU.1 is the ID of your discrete GPU). I have made the change and committed it.

Let me know if you run into any issues, or if there is anything else we can do to improve.

Leave a Comment