-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating 3D image classification from CT scans example to Keras 3 #1725
Migrating 3D image classification from CT scans example to Keras 3 #1725
Conversation
I tried changing the backend to "jax" but got an error as
So, I mentioned this as a TF-only example in the PR description. |
Talking about tensorflow dependency, tf.data is only used in the updated example. The rest of the TF operations are handled with Keras.ops and worked successfully with the TensorFlow backend. |
This method is substituted in the updated code. Without removing this, this will create an error when running the example with the TF backend. Also, I read the numpy_function documentation here and decided to implement the rotate method without using numpy_function. Now, coming to the implementation of the rotate method, the keras RandomRotation layer is used. The author proposed to take angles randomly from the set of angles |
@sitamgithub-MSIT , Same PR is already created here #1723, could you please check it if there many changes to the actual PR. |
Yeah, I checked the mentioned PR, and it worked with Torch also, but the exact same code is giving an error with the TensorFlow backend. The error it is given is |
@sitamgithub-MSIT, in addition to replacing tf ops, you might also want to replace the numpy ops with the corresponding keras ops. |
Ok. I will do that in next commit then. |
LGTM! Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Was the example already ported before? |
@sitamgithub-MSIT Looks like the other PR got merged here #1723. |
@sachinprasadhs I mentioned the issue with other PR over here. One thing I can do is close this PR as the other PR gets merged so I can update my master branch of the forked repo and make another PR. |
This PR changes the 3D image classification from CT scans example to keras 3.0 [TF-Only Example] as requested in keras-team/keras-cv#2211.
For example, here is the notebook link provided:
https://colab.research.google.com/drive/1CLhjLZiidFB7qPIDH5a7JGls-Wfqe7v5?usp=sharing
cc: @divyashreepathihalli @fchollet
The following describes the Git difference for the changed files:
Changes: