-
Notifications
You must be signed in to change notification settings - Fork 309
minor modify #2386
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
minor modify #2386
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,9 @@ def __init__( | |
| self.activation = activation | ||
|
|
||
| self.positional_embedding_layer = RandomFrequencyPositionalEmbeddings( | ||
| num_positional_features=self.hidden_size // 2, scale=1 | ||
| num_positional_features=self.hidden_size // 2, | ||
| scale=1, | ||
| dtype=self.dtype, | ||
| ) | ||
|
Comment on lines
69
to
73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Passing For example, the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have tested it, just need to modify it here. |
||
|
|
||
| self.foreground_point_embed = keras.layers.Embedding( | ||
|
|
||
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's a small typo in the description for the ModelScope handle. It should be
ModelScope handleinstead ofModelScope Face handlefor consistency with other parts of the codebase (e.g.,keras_hub/src/utils/preset_utils.py) and to avoid confusion with Hugging Face.