Closed james77777778 closed 3 months ago
@divyashreepathihalli @mattdangerw Thanks for reviewing. All comments should be resolved.
But my question still remains:
When creating a
Dense
layer in ImageClassifier, the dtype_policy is not configurable.
Any ideas about that?
Another question: Should we support pyramid feature outputs in vision backbones? This is crucial for any downstream algorithms (object detection, segmentation, ...)
Another question: Should we support pyramid feature outputs in vision backbones? This is crucial for any downstream algorithms (object detection, segmentation, ...)
This sounds like a good idea! Lets add it in new PR
Closes #1750
This PR largely follows #1737 but introduces some improvements:
"channels_last"
and"channels_first"
The
preact
parameter inResNetBackbone
determines whether to instantiate ResNet or ResNetV2 (similar tokeras.applications.ResNet*
) https://github.com/keras-team/keras/blob/b45be337c6156d90f220beba9f68eeb2e52e2b0d/keras/src/applications/resnet.py#L50I have a small question regarding model implementation: When creating a
Dense
layer inImageClassifier
, thedtype_policy
is not configurable. I usedbackbone.dtype_policy
as a workaround but it might be fragile.The implementation has been verified by using the model weights from KerasCV. Please refer to this colab: https://colab.research.google.com/drive/1HGktF-4TkTdTjlMVv7qr3D_ysspJXDmo?usp=sharing
@mattdangerw @divyashreepathihalli @SamanehSaadat