Open Tengfei09 opened 2 years ago
@sushreebarsa The reason why I use TF1.x is the FasterRCNN model is obtained from the TF1.x object detection model zoo. When moving to Tf2.x, it raises an error like
File "/home/gta/miniconda3/envs/tf2/lib/python3.9/site-packages/object_detection/builders/model_builder.py", line 267, in _check_feature_extractor_exists raise ValueError( ValueError: faster_rcnn_resnet50 is not supported for tf version 2. See
model_builder.py
for features extractors compatible with different versions of Tensorflow
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/blob/master/research/object_detection/core/post_processing.py#L998
2. Describe the bug
When converting a series of NMS ops used in a FasterRCNN model to a combinedNMS op. The _research/object_detection/core/postprocessing.py will raise an unexpected error.
3. Steps to reproduce
4. Expected behavior
I expect that all NMS ops will be combined into a single CombinedNMS op. However, it raises an unexpected error shown in next part.
According to my own understanding, when setting use_combined_nms=true, these variables, including change_coordinate_frame,num_valid_boxes, use_class_agnostic_nms, soft_nms_sigma, clip_window would be the default values. However, it still raises an error message like ValueError: change_coordinate_frame (normalizing coordinates relative to clip_window) is not supported by combined_nms.**
I also tried to set these above variables to their default values in the pipeline.config explicitly. but it also couldn't work.
5. Additional context
The log I got could be found here.
6. System information