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
4aa630ee
Unverified
Commit
4aa630ee
authored
Nov 29, 2022
by
Francisco Kurucz
Committed by
GitHub
Nov 29, 2022
Browse files
Fix documentation code to import facebook/detr-resnet-50 model (#20491)
parent
86e435bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/en/model_doc/detr.mdx
docs/source/en/model_doc/detr.mdx
+1
-1
No files found.
docs/source/en/model_doc/detr.mdx
View file @
4aa630ee
...
@@ -119,7 +119,7 @@ Option 1: Instantiate DETR with pre-trained weights for entire model
...
@@ -119,7 +119,7 @@ Option 1: Instantiate DETR with pre-trained weights for entire model
```py
```py
>>> from transformers import DetrForObjectDetection
>>> from transformers import DetrForObjectDetection
>>> model = DetrForObjectDetection.from_pretrained("facebook/resnet-50")
>>> model = DetrForObjectDetection.from_pretrained("facebook/
detr-
resnet-50")
```
```
Option 2: Instantiate DETR with randomly initialized weights for Transformer, but pre-trained weights for backbone
Option 2: Instantiate DETR with randomly initialized weights for Transformer, but pre-trained weights for backbone
...
...
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