Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YOLOX-X] [Faster-RCNN] [YOLOv7] TensorFlow aborts when exporting a model with NMS to Keras (.h5) #150

Closed
PINTO0309 opened this issue Jan 23, 2023 · 0 comments
Labels
Bug bug

Comments

@PINTO0309
Copy link
Owner

PINTO0309 commented Jan 23, 2023

Issue Type

Others

onnx2tf version number

1.5.29

onnx version number

1.13.0

tensorflow version number

2.10.0

Download URL for ONNX

https://s3.ap-northeast-2.wasabisys.com/temp-models/onnx2tf_146/yolox_x.onnx
https://github.com/PINTO0309/onnx2tf/releases/download/1.1.28/faster_rcnn-10.onnx
https://github.com/PINTO0309/onnx2tf/releases/download/1.1.28/yolov7_tiny_head_0.768_post_480x640.onnx

Parameter Replacement JSON

N/A

Description

  1. Personal
  2. TensorFlow aborts when exporting a model with NMS to Keras (.h5)
    onnx2tf -i yolox_x.onnx -oh5
    
    ValueError: This Keras op layer was generated from <function non_max_suppression at 0x7fd6a96ff1f0>,
    a method that is not publicly exposed in the TensorFlow API.
    This may have happened if the method was explicitly decorated to add dispatching support,
    and it was used during Functional model construction.
    To ensure cross-version compatibility of Keras models that use op layers,
    only op layers produced from public TensorFlow API symbols can be serialized.
    
    image
@PINTO0309 PINTO0309 added the Bug bug label Jan 23, 2023
@PINTO0309 PINTO0309 changed the title [YOLOX-X] TensorFlow aborts when exporting a model with NMS to Keras (.h5) [YOLOX-X] [Faster-RCNN] TensorFlow aborts when exporting a model with NMS to Keras (.h5) Jan 23, 2023
@PINTO0309 PINTO0309 changed the title [YOLOX-X] [Faster-RCNN] TensorFlow aborts when exporting a model with NMS to Keras (.h5) [YOLOX-X] [Faster-RCNN] [YOLOv7] TensorFlow aborts when exporting a model with NMS to Keras (.h5) Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug bug
Projects
None yet
Development

No branches or pull requests

1 participant