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
8b6bba54
Unverified
Commit
8b6bba54
authored
Oct 10, 2022
by
Yih-Dar
Committed by
GitHub
Oct 10, 2022
Browse files
Fix `ViTMSNForImageClassification` doctest (#19275)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
d92e22d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/vit_msn/modeling_vit_msn.py
src/transformers/models/vit_msn/modeling_vit_msn.py
+1
-1
No files found.
src/transformers/models/vit_msn/modeling_vit_msn.py
View file @
8b6bba54
...
@@ -632,7 +632,7 @@ class ViTMSNForImageClassification(ViTMSNPreTrainedModel):
...
@@ -632,7 +632,7 @@ class ViTMSNForImageClassification(ViTMSNPreTrainedModel):
>>> from PIL import Image
>>> from PIL import Image
>>> import requests
>>> import requests
>>> torch.manual_seed(2)
>>> torch.manual_seed(2)
# doctest: +IGNORE_RESULT
>>> url = "http://images.cocodataset.org/val2017/000000039769.jpg"
>>> url = "http://images.cocodataset.org/val2017/000000039769.jpg"
>>> image = Image.open(requests.get(url, stream=True).raw)
>>> image = Image.open(requests.get(url, stream=True).raw)
...
...
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