Closed charlotteheggem closed 1 year ago
hi, @charlotteheggem ROS2 OpenVINO supports SSD-like Detectin Models by default, so if the model you customized doesn't follow the inputs/outputs as SSD/yolo, you need to update source code to align with your customization.
System information
Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes OS Platform and Distribution: Ubuntu 18.04 ROS2 distribution: Eloquent TensorFlow installed from (source or binary): binary TensorFlow version: 1.14.0 Python version: 3.6.9 ros2_openvino_toolkit branch: Eloquent opencv/dldt branch: 2020
I have edited the pipeline_object_topic.yaml file to take in a customized model made with tensorflow 1.14. The model is converted to .xml file by using the mo_tf.py script (https://github.com/opencv/dldt/blob/2020/model-optimizer/mo_tf.py) by:
sudo python3 mo_tf.py --input_model=/home/charlotte/MyDataset/test/model/model.pb --tensorflow_use_custom_operations_config /home/charlotte/opencv/dldt/model-optimizer/extensions/front/tf/ssd_support_api_v1.14.json --tensorflow_object_detection_api_pipeline_config /home/charlotte/MyDataset/test/model/pipeline.config --output_dir /home/charlotte/MyDataset
This works well, but I get the following error when launching ros2 launch dynamic_vino_sample pipeline_object_topic.launch.py: [pipeline_with_params-1] [ ERROR ] Error reading network: cannot parse future versions: 10
I tried changing the IR_version to generate a xml file with IR_version 5, by changing the returning version in this file: https://github.com/opencv/dldt/blob/2020/model-optimizer/mo/pipeline/common.py, which results in a the following header in my .xml file: