keras-team / keras-io

Keras documentation, hosted live at keras.io
Apache License 2.0
2.78k stars 2.05k forks source link

Monocular depth estimation - Keras 3 Migration (Only Tensorflow Backend) #1910

Closed chunduriv closed 2 months ago

chunduriv commented 3 months ago

This PR changes the Monocular depth estimation example to keras 3.0 (Tensorflow backend only), as requested in https://github.com/keras-team/keras-cv/issues/2211

Please review the attached gist.

divyashreepathihalli commented 3 months ago

tf.image.image_gradients can be implemented as a function here in Keras 3 - reference code https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/ops/image_ops_impl.py#L4612-L4683

Other than this everything else LGTM.