Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
af2c3679
Unverified
Commit
af2c3679
authored
Jun 01, 2023
by
Sheon Han
Committed by
GitHub
Jun 01, 2023
Browse files
Fix doc string nits (#23929)
parent
9a35a7b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/transformers/configuration_utils.py
src/transformers/configuration_utils.py
+1
-1
src/transformers/models/vit/image_processing_vit.py
src/transformers/models/vit/image_processing_vit.py
+1
-1
No files found.
src/transformers/configuration_utils.py
View file @
af2c3679
...
@@ -136,7 +136,7 @@ class PretrainedConfig(PushToHubMixin):
...
@@ -136,7 +136,7 @@ class PretrainedConfig(PushToHubMixin):
diversity_penalty (`float`, *optional*, defaults to 0.0):
diversity_penalty (`float`, *optional*, defaults to 0.0):
Value to control diversity for group beam search. that will be used by default in the `generate` method of
Value to control diversity for group beam search. that will be used by default in the `generate` method of
the model. 0 means no diversity penalty. The higher the penalty, the more diverse are the outputs.
the model. 0 means no diversity penalty. The higher the penalty, the more diverse are the outputs.
temperature (`float`, *optional*, defaults to 1):
temperature (`float`, *optional*, defaults to 1
.0
):
The value used to module the next token probabilities that will be used by default in the `generate` method
The value used to module the next token probabilities that will be used by default in the `generate` method
of the model. Must be strictly positive.
of the model. Must be strictly positive.
top_k (`int`, *optional*, defaults to 50):
top_k (`int`, *optional*, defaults to 50):
...
...
src/transformers/models/vit/image_processing_vit.py
View file @
af2c3679
...
@@ -56,7 +56,7 @@ class ViTImageProcessor(BaseImageProcessor):
...
@@ -56,7 +56,7 @@ class ViTImageProcessor(BaseImageProcessor):
rescale_factor (`int` or `float`, *optional*, defaults to `1/255`):
rescale_factor (`int` or `float`, *optional*, defaults to `1/255`):
Scale factor to use if rescaling the image. Can be overridden by the `rescale_factor` parameter in the
Scale factor to use if rescaling the image. Can be overridden by the `rescale_factor` parameter in the
`preprocess` method.
`preprocess` method.
do_normalize:
do_normalize
(`bool`, *optional*, defaults to `True`)
:
Whether to normalize the image. Can be overridden by the `do_normalize` parameter in the `preprocess`
Whether to normalize the image. Can be overridden by the `do_normalize` parameter in the `preprocess`
method.
method.
image_mean (`float` or `List[float]`, *optional*, defaults to `IMAGENET_STANDARD_MEAN`):
image_mean (`float` or `List[float]`, *optional*, defaults to `IMAGENET_STANDARD_MEAN`):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment