tensorflow / models

Models and examples built with TensorFlow
Other
77.05k stars 45.77k forks source link

ValueError: Only fixed_shape_resizeris supported with tflite. Found keep_aspect_ratio_resize #11162

Open Dibyajyoti227 opened 8 months ago

Dibyajyoti227 commented 8 months ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/tree/master/research/object_detection/configs/tf2/ssd_efficientdet_d0_512x512_coco17_tpu-8.config

2. Describe the bug

While trying to create tflite graph using python3 object_detection/export_tflite_graph_tf2.py --pipeline_config_path ssd_efficientdet_d0_512x512_coco17_tpu-8.config --trained_checkpoint_dir /checkpoints --output_directory /ssd_tfexport

I am getting error, File ".local/lib/python3.8/site-packages/object_detection/export_tflite_graph_lib_tf2.py", line 100, in _process_config raise ValueError( ValueError: Only fixed_shape_resizeris supported with tflite. Found keep_aspect_ratio_resizer

I checked the .config file and looks like the keep_aspect_ratio_resizer is mentioned there. How do I get rid of this error and successfully create tflite graph for tflite conversion?

6. System information

Dibyajyoti227 commented 8 months ago

@laxmareddyp , any update on this issue?

laxmareddyp commented 8 months ago

Hi @Dibyajyoti227 ,

Could you please try to open a issue in this repo to get faster response.The error not related to models repo as it is tflite issue.

Thanks