Fix doc tests (#18397)

Co-authored-by: Niels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
This commit is contained in:
NielsRogge 2022-08-01 15:56:10 +02:00 committed by GitHub
parent 1141371103
commit 39e76d76fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]