模型有多个输入节点,该如何批量测试?

我们的模型含有两个输入节点,也就是每次输入一对图像。

在网络发送时该如何修改呢。

看了下send_image.py和zmq_msg_pb2.py文件,没太明白!

主要是google.protobuf那一块

你好,多输入模型可以自己先写一个脚本,把一帧的几个输入数据拼接在一起,传到板端后再自己解析拆分开,配置好几个输入的 tensor。我们的分割模型示例就是传输的二进制文件,可以参考下

zmq_msg = zmq_msg_pb2.ZMQMsg()image_msg = zmq_msg.img_msgimage_msg.image_data_visible = img_visible.tobytes()image_msg.image_data_lwir = img_lwir.tobytes()image_msg.image_width = org_wimage_msg.image_height = org_himage_msg.image_name = image_nameimage_msg.image_format = image_typeimage_msg.image_dst_width = dst_wimage_msg.image_dst_height = dst_hzmq_msg.msg_type = zmq_msg_pb2.ZMQMsg.IMAGE_MSG

Connected to pydev debugger (build 201.8538.36)Traceback (most recent call last):  File "<frozen importlib._bootstrap>", line 983, in _find_and_load  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked  File "<frozen importlib._bootstrap_external>", line 728, in exec_module  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed  File "F:\毕业设计\code\localPro\X3\tools\send_tools\zmq_msg_pb2.py", line 214, in <module>    file=DESCRIPTOR),  File "F:\毕业设计\code\localPro\venv\lib\site-packages\google\protobuf\descriptor.py", line 547, in __new__    return _message.default_pool.FindFieldByName(full_name)KeyError: "Couldn't find field ZMQMessage.ImageMsg.image_data_visible"