mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Fix documentation code to import facebook/detr-resnet-50 model (#20491)
This commit is contained in:
parent
86e435bbb1
commit
4aa630eeab
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ Option 1: Instantiate DETR with pre-trained weights for entire model
|
|||
```py
|
||||
>>> 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue