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
f5f1e52f
"src/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "83fae834c4a09a323ada78a35c08d5b9cb8aa287"
Unverified
Commit
f5f1e52f
authored
Aug 05, 2024
by
Francisco Kurucz
Committed by
GitHub
Aug 05, 2024
Browse files
Fix documentation references to google/bit-50 model (#32407)
parent
ea5da52e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/bit/modeling_bit.py
src/transformers/models/bit/modeling_bit.py
+2
-2
No files found.
src/transformers/models/bit/modeling_bit.py
View file @
f5f1e52f
...
@@ -870,8 +870,8 @@ class BitBackbone(BitPreTrainedModel, BackboneMixin):
...
@@ -870,8 +870,8 @@ class BitBackbone(BitPreTrainedModel, BackboneMixin):
>>> 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)
>>> processor = AutoImageProcessor.from_pretrained("google/
resnetnv2
-50")
>>> processor = AutoImageProcessor.from_pretrained("google/
bit
-50")
>>> model = AutoBackbone.from_pretrained("google/
resnetnv2
-50")
>>> model = AutoBackbone.from_pretrained("google/
bit
-50")
>>> inputs = processor(image, return_tensors="pt")
>>> inputs = processor(image, return_tensors="pt")
>>> outputs = model(**inputs)
>>> outputs = model(**inputs)
...
...
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