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
d5af5a0c
Unverified
Commit
d5af5a0c
authored
Dec 05, 2022
by
Francisco Kurucz
Committed by
GitHub
Dec 05, 2022
Browse files
Fix link to swin transformers v2 microsoft model (#20558)
parent
ac3bccdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/transformers/models/swinv2/configuration_swinv2.py
src/transformers/models/swinv2/configuration_swinv2.py
+5
-5
No files found.
src/transformers/models/swinv2/configuration_swinv2.py
View file @
d5af5a0c
...
...
@@ -21,8 +21,8 @@ from ...utils import logging
logger
=
logging
.
get_logger
(
__name__
)
SWINV2_PRETRAINED_CONFIG_ARCHIVE_MAP
=
{
"microsoft/swinv2
_
tiny
_
patch4
_
window
s8_
256"
:
(
"https://huggingface.co/microsoft/swinv2
_
tiny
_
patch4
_
window
s8_
256/resolve/main/config.json"
"microsoft/swinv2
-
tiny
-
patch4
-
window
8-
256"
:
(
"https://huggingface.co/microsoft/swinv2
-
tiny
-
patch4
-
window
8-
256/resolve/main/config.json"
),
}
...
...
@@ -32,7 +32,7 @@ class Swinv2Config(PretrainedConfig):
This is the configuration class to store the configuration of a [`Swinv2Model`]. It is used to instantiate a Swin
Transformer v2 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 Swin Transformer v2
[microsoft/swinv2
_
tiny
_
patch4
_
window
s8_
256](https://huggingface.co/microsoft/swinv2
_
tiny
_
patch4
_
window
s8_
256)
[microsoft/swinv2
-
tiny
-
patch4
-
window
8-
256](https://huggingface.co/microsoft/swinv2
-
tiny
-
patch4
-
window
8-
256)
architecture.
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
...
...
@@ -82,10 +82,10 @@ class Swinv2Config(PretrainedConfig):
```python
>>> from transformers import Swinv2Config, Swinv2Model
>>> # Initializing a Swinv2 microsoft/swinv2
_
tiny
_
patch4
_
window
s8_
256 style configuration
>>> # Initializing a Swinv2 microsoft/swinv2
-
tiny
-
patch4
-
window
8-
256 style configuration
>>> configuration = Swinv2Config()
>>> # Initializing a model (with random weights) from the microsoft/swinv2
_
tiny
_
patch4
_
window
s8_
256 style configuration
>>> # Initializing a model (with random weights) from the microsoft/swinv2
-
tiny
-
patch4
-
window
8-
256 style configuration
>>> model = Swinv2Model(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