-
Notifications
You must be signed in to change notification settings - Fork 330
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
[Port] OD layers to Keras 3 #2295
Merged
divyashreepathihalli
merged 22 commits into
keras-team:master
from
ariG23498:aritra/port-od-layers-keras3
Feb 27, 2024
Merged
Changes from 14 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
70d6012
chore: porting roi aling to keras 3
ariG23498 b835e8b
chore: fixing the scope, using ones in place of constant
ariG23498 f8a8b2e
chore: porting roi generation to keras 3 with test
ariG23498 9fe4fa9
chore: port roi pooling
ariG23498 c0de067
chore: fix pool and port sampler
ariG23498 c370c76
chore: port label encoder
ariG23498 35cba2e
chore: swap get_shape with ops.shape
ariG23498 993b461
lint error
ariG23498 1a205ae
Merge branch 'keras-team:master' into aritra/port-od-layers-keras3
ariG23498 26e658b
chore: porting sampling to keras 3
ariG23498 e023b2f
lint fix
ariG23498 716c846
chore: using random from backend
ariG23498 2190d73
Merge branch 'keras-team:master' into aritra/port-od-layers-keras3
ariG23498 98a6338
Merge branch 'keras-team:master' into aritra/port-od-layers-keras3
ariG23498 e1d22fb
chore: disabling flaky test
ariG23498 299bc8d
chore: disable roi sampler test
ariG23498 b3d542e
chore: ignore lint
ariG23498 aed3443
chore: skipping test the right way
ariG23498 4895e01
Merge branch 'master' into aritra/port-od-layers-keras3
ariG23498 38e410a
chore: using ops shape
ariG23498 5997469
chore: tests pass for all backends
ariG23498 f89bf6e
chore: explicit type cast to int32
ariG23498 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
There are certain blockers that I need some guidance on:
with tf.name_scope("multilevel_crop_and_resize")
tf.constant
tf.math.divide_no_nan
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.
What's the blocker exactly?
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.
I meant -- how should I be porting the above mentioned APIs to Keras3.
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.
I don't think you require name scoping. For
constant
, use KerasTensor? For third one, just write a custom divide function. Though we should add it in the core actuallyThere 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.
Thanks for the tips @AakashKumarNain
I am documenting what I did:
ops.convert_to_tensor
or usedops.ones
multiplying a scalar to itops.cond
for the divide no nan