tensorflow / tensorflow/models
ssd-mobilenet-v1 can't convert to TensorRT in current repo
@pkulzc is already working on this.
Since Sep 27, 2019.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
System information
- What is the top-level directory of the model you are using: object_detection
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
- TensorFlow installed from (source or binary): binary
- TensorFlow version (use command below): 1.13
- Bazel version (if compiling from source): No
- CUDA/cuDNN version: 10
- GPU model and memory: GTX-1050Ti 4G、Jetson Nano
- Exact command to reproduce:
Describe the problem
I train the ssd-mobilenet-v1 model by using object_detection api (current version is #d735ecf83a99545e46ff27744b4423379ddbb262) and export it, when I try to use tensorrt code (provided by nvidia) to convert to TensorRT, it told me "Unsupported operation: _Cast"

I reset the object_detection api version to #ae0a9409212d0072938fa60c9f85740bb89ced7e, use the same checkpoints and export the frozen_model again and use the same code try to convert it to TensorRT, it succeed.
It seems that current add the extra layer called _Cast and TensorRT can't convert it.

Source code / logs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.