tensorflow / tensorflow/model-optimization
QAT for object detection models?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 349
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 1
Description
System information
- TensorFlow version (you are using):2.6
- Are you willing to contribute it (Yes/No):
Motivation
Need to run OD models on device, after QAT.
Describe the feature
Currently QAT only supports sequential and functional model, as stated in https://blog.tensorflow.org/2020/04/quantization-aware-training-with-tensorflow-model-optimization-toolkit.html
I looked into OD models and they are subclassed from tf.keras.layer. Even the backbone (e.g. feature extractor) is not a functional model (model._is_graph_network is False).
I used quantize_model() and it throws out error since it's not a keras model.
Describe how the feature helps achieve the use case
Describe how existing APIs don't satisfy your use case (optional if obvious)
As examples:
-
You tried using APIs X and Y and were able to do Z. However, that was not sufficient because of ...
-
You achieved your use case with the code snippet W. However, this was more difficult than it should be because of ... (e.g. ran into issue X or had
to do Y).
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.