mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix doc tests (#18397)
Co-authored-by: Niels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
This commit is contained in:
parent
1141371103
commit
39e76d76fd
@ -1419,7 +1419,7 @@ class DetrForObjectDetection(DetrPreTrainedModel):
|
||||
... if score > 0.9:
|
||||
... print(
|
||||
... f"Detected {model.config.id2label[label.item()]} with confidence "
|
||||
... f"{round(score.item(), 3)} at location {box}."
|
||||
... f"{round(score.item(), 3)} at location {box}"
|
||||
... )
|
||||
Detected remote with confidence 0.998 at location [40.16, 70.81, 175.55, 117.98]
|
||||
Detected remote with confidence 0.996 at location [333.24, 72.55, 368.33, 187.66]
|
||||
|
Loading…
Reference in New Issue
Block a user