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
70ba10e6
Unverified
Commit
70ba10e6
authored
Sep 16, 2022
by
Yih-Dar
Committed by
GitHub
Sep 16, 2022
Browse files
Fix `LeViT` checkpoint (#19069)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
bc5d0b10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/transformers/models/levit/configuration_levit.py
src/transformers/models/levit/configuration_levit.py
+3
-3
No files found.
src/transformers/models/levit/configuration_levit.py
View file @
70ba10e6
...
...
@@ -37,7 +37,7 @@ class LevitConfig(PretrainedConfig):
This is the configuration class to store the configuration of a [`LevitModel`]. It is used to instantiate a LeViT
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
defaults will yield a similar configuration to that of the LeViT
[facebook/levit-
base-192
](https://huggingface.co/facebook/levit-
base-192
) architecture.
[facebook/levit-
128S
](https://huggingface.co/facebook/levit-
128S
) architecture.
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
documentation from [`PretrainedConfig`] for more information.
...
...
@@ -78,10 +78,10 @@ class LevitConfig(PretrainedConfig):
```python
>>> from transformers import LevitModel, LevitConfig
>>> # Initializing a LeViT levit-
base-192
style configuration
>>> # Initializing a LeViT levit-
128S
style configuration
>>> configuration = LevitConfig()
>>> # Initializing a model from the levit-
base-192
style configuration
>>> # Initializing a model from the levit-
128S
style configuration
>>> model = LevitModel(configuration)
>>> # Accessing the model configuration
...
...
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