From 237ff80387ef453b1bb341c0b5d6cbcb5e60758d Mon Sep 17 00:00:00 2001 From: StevenBucaille Date: Mon, 9 Jun 2025 15:40:46 +0200 Subject: [PATCH] Fixed modeling_auto.py MODEL_FOR_MASK_GENERATION_MAPPING_NAMES variable (#38664) fix: grouped the two MODEL_FOR_MASK_GENERATION_MAPPING_NAMES variables --- src/transformers/models/auto/modeling_auto.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/transformers/models/auto/modeling_auto.py b/src/transformers/models/auto/modeling_auto.py index e28e978ca8d..0998af55921 100644 --- a/src/transformers/models/auto/modeling_auto.py +++ b/src/transformers/models/auto/modeling_auto.py @@ -1529,11 +1529,6 @@ MODEL_FOR_BACKBONE_MAPPING_NAMES = OrderedDict( MODEL_FOR_MASK_GENERATION_MAPPING_NAMES = OrderedDict( [ ("sam", "SamModel"), - ] -) - -MODEL_FOR_MASK_GENERATION_MAPPING_NAMES = OrderedDict( - [ ("sam_hq", "SamHQModel"), ] )