tensorflow / tensorflow/model-optimization

QAT for object detection models?

Open
#838 4 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

feature request
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:

  1. You tried using APIs X and Y and were able to do Z. However, that was not sufficient because of ...

  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.