keras-team / keras-cv

Industry-strength Computer Vision workflows with Keras
Other
1.01k stars 331 forks source link

Update anchor_generator.py #2450

Open djkmarchetto opened 6 months ago

djkmarchetto commented 6 months ago

Enhance compatibility with SymbolicTensor using ops instead of math

Fixes

TypeError: Exception encountered when calling RetinaNetLabelEncoder.call().

must be real number, not SymbolicTensor

Arguments received by RetinaNetLabelEncoder.call(): • images=tf.Tensor(shape=(64, None, None, 3), dtype=float32) • box_labels={'classes': 'tf.Tensor(shape=(64, 100), dtype=float32)', 'boxes': 'tf.Tensor(shape=(64, 100, 4), dtype=float32)'}

Before submitting

Who can review?

@divyashreepathihalli @sampathweb

google-cla[bot] commented 6 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.