Meilleur moyen d’inférer le modèle avec deux NCS2 à l’aide du plugin MULTI
- Modèle YOLOv4 personnalisé par inférence avec deux NCS2 utilisant un plugin MULTI, MULTI:MYRIAD.3.1-ma2480,MYRIAD.3.3-ma2480.
- Le temps d’inférence n’a pas accéléré.
Le meilleur moyen d’utiliser un plugin Multi avec plusieurs NCS2 est de configurer chaque NCS2 et de créer le multi-périphérique au-dessus.
from openvino.inference_engine import IECore
ie = IECore()
myriad1_config = {}
myriad2_config = {}
ie.set_config(config=myriad1_config, device_name="MYRIAD.3.1-ma2480")
ie.set_config(config=myriad2_config, device_name="MYRIAD.3.3-ma2480")
# Load the network to the multi-device, specifying the priorities
exec_net = ie.load_network(
network=net, device_name="MULTI", config={"MULTI_DEVICE_PRIORITIES": "MYRIAD.3.1-ma2480,MYRIAD.3.3-ma2480"}
)
# Query the optimal number of requests
#Use -nireq 10 to get maximum FPS.
nireq = exec_net.get_metric("OPTIMAL_NUMBER_OF_INFER_REQUESTS")