openvino/samples/python/classification_sample_async/README.md

33 lines
3.4 KiB
Markdown

# Image Classification Async Python Sample
This sample demonstrates how to do inference of image classification models using Asynchronous Inference Request API.
Models with only 1 input and output are supported.
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.3/openvino_sample_image_classification_async.html)
## Requirements
| Options | Values |
| ---------------------------| -----------------------------------------------------------------------------------------------------------------|
| Validated Models | [alexnet](https://docs.openvino.ai/2023.3/omz_models_model_alexnet.html) |
| Model Format | OpenVINO™ toolkit Intermediate Representation (.xml + .bin), ONNX (.onnx) |
| Supported devices | [All](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
| Other language realization | [C++](https://docs.openvino.ai/2023.3/openvino_sample_image_classification_async.html) |
The following Python API is used in the application:
| Feature | API | Description |
| -------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------|
| Asynchronous Infer | [openvino.runtime.AsyncInferQueue](https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html), | Do asynchronous inference |
| | [openvino.runtime.AsyncInferQueue.set_callback](https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.set_callback), | |
| | [openvino.runtime.AsyncInferQueue.start_async](https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.start_async), | |
| | [openvino.runtime.AsyncInferQueue.wait_all](https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.wait_all), | |
| | [openvino.runtime.InferRequest.results](https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.results) | |
<<<<<<< HEAD
Basic OpenVINO Runtime API is covered by [Hello Classification Python Sample](https://docs.openvino.ai/2023.3/openvino_inference_engine_ie_bridges_python_sample_hello_classification_README.html).
=======
Basic OpenVINO Runtime API is covered by [Hello Classification Python Sample](https://docs.openvino.ai/2023.2/openvino_sample_hello_classification.html).
>>>>>>> cf2b238df2 (Merge samples)