diff --git a/src/transformers/models/auto/modeling_auto.py b/src/transformers/models/auto/modeling_auto.py index 82c2f5dbe7f9d..cb244d8b16ebf 100644 --- a/src/transformers/models/auto/modeling_auto.py +++ b/src/transformers/models/auto/modeling_auto.py @@ -427,7 +427,6 @@ MODEL_FOR_OBJECT_DETECTION_MAPPING_NAMES = OrderedDict( [ # Model for Object Detection mapping - ("deformable_detr", "DeformableDetrForObjectDetection"), ("detr", "DetrForObjectDetection"), ("yolos", "YolosForObjectDetection"), ] diff --git a/utils/check_repo.py b/utils/check_repo.py index 3bbac489eef8b..34b8e040779d5 100644 --- a/utils/check_repo.py +++ b/utils/check_repo.py @@ -126,6 +126,7 @@ # should **not** be the rule. IGNORE_NON_AUTO_CONFIGURED = PRIVATE_MODELS.copy() + [ # models to ignore for model xxx mapping + "DeformableDetrForObjectDetection", "DPTForDepthEstimation", "DecisionTransformerGPT2Model", "GLPNForDepthEstimation",