-
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
Add KerasHub classification guide #1948
Add KerasHub classification guide #1948
Conversation
Thanks for the PR @gowthamkpr!! |
We'll need the Python and md files for the review! |
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.
Thanks for the PR! Quick round of simple comments.
I've addressed all comments. PTAL!!! 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.
One nit comment.
LGTM
modern approaches still are built of several complex components. | ||
Luckily, Keras provides APIs to construct commonly used components. | ||
|
||
This guide demonstrates Keras' modular approach to solving image |
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.
NIT: Keras'->kerasHub's
@gowthamkpr, please make sure to run |
I already used autogen.py to generate the files. The issue is that autogen.py generates images but uses absolute paths for images. The only change I made to the .md file is to replace absolute image paths from my local file system to relative paths. |
target_lr=self.target_lr, | ||
hold=self.hold, | ||
) | ||
|
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.
Remove empty line
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.
Done.
hold=self.hold, | ||
) | ||
|
||
return ops.where(step > self.total_steps, 0.0, lr) |
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.
Why set the LR to 0? Should it not be a nonzero min_lr value?
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.
no, with cosine decay the lr decays to 0 at the end of training. Actually, we wouldn't need this conditional anyway, since training can't get past total_steps
. I assume this was mainly for plotting purposes (it's been copied from the old version of this guide).
Adds the KerasHub image classification guide.
The guide is copied from https://keras.io/guides/keras_cv/classification_with_keras_cv/ and adapted for KerasHub.