@@ -168,7 +168,6 @@ class TasksManager:
168
168
"feature-extraction" : "AutoModel" ,
169
169
"fill-mask" : "AutoModelForMaskedLM" ,
170
170
"image-classification" : "AutoModelForImageClassification" ,
171
- "image-feature-extraction" : "AutoModel" ,
172
171
"image-segmentation" : ("AutoModelForImageSegmentation" , "AutoModelForSemanticSegmentation" ),
173
172
"image-to-image" : "AutoModelForImageToImage" ,
174
173
"image-to-text" : "AutoModelForVision2Seq" ,
@@ -257,6 +256,7 @@ class TasksManager:
257
256
"translation" : "text2text-generation" ,
258
257
"vision2seq-lm" : "image-to-text" ,
259
258
"zero-shot-classification" : "text-classification" ,
259
+ "image-feature-extraction" : "feature-extraction" ,
260
260
}
261
261
262
262
# Reverse dictionaries str -> str, where several model loaders may map to the same task
@@ -463,13 +463,11 @@ class TasksManager:
463
463
),
464
464
"convnext" : supported_tasks_mapping (
465
465
"feature-extraction" ,
466
- "image-feature-extraction" ,
467
466
"image-classification" ,
468
467
onnx = "ConvNextOnnxConfig" ,
469
468
),
470
469
"convnextv2" : supported_tasks_mapping (
471
470
"feature-extraction" ,
472
- "image-feature-extraction" ,
473
471
"image-classification" ,
474
472
onnx = "ConvNextV2OnnxConfig" ,
475
473
),
@@ -486,7 +484,6 @@ class TasksManager:
486
484
"data2vec-vision" : supported_tasks_mapping (
487
485
"feature-extraction" ,
488
486
"image-classification" ,
489
- "image-feature-extraction" ,
490
487
# ONNX doesn't support `adaptive_avg_pool2d` yet
491
488
# "semantic-segmentation",
492
489
onnx = "Data2VecVisionOnnxConfig" ,
@@ -520,15 +517,13 @@ class TasksManager:
520
517
),
521
518
"deit" : supported_tasks_mapping (
522
519
"feature-extraction" ,
523
- "image-feature-extraction" ,
524
520
"image-classification" ,
525
521
"masked-im" ,
526
522
onnx = "DeiTOnnxConfig" ,
527
523
),
528
524
"detr" : supported_tasks_mapping (
529
525
"feature-extraction" ,
530
526
"object-detection" ,
531
- "image-feature-extraction" ,
532
527
"image-segmentation" ,
533
528
onnx = "DetrOnnxConfig" ,
534
529
),
@@ -555,7 +550,6 @@ class TasksManager:
555
550
),
556
551
"dpt" : supported_tasks_mapping (
557
552
"feature-extraction" ,
558
- "image-feature-extraction" ,
559
553
"depth-estimation" ,
560
554
"image-segmentation" ,
561
555
"semantic-segmentation" ,
@@ -614,7 +608,6 @@ class TasksManager:
614
608
),
615
609
"glpn" : supported_tasks_mapping (
616
610
"feature-extraction" ,
617
- "image-feature-extraction" ,
618
611
"depth-estimation" ,
619
612
onnx = "GlpnOnnxConfig" ,
620
613
),
@@ -682,7 +675,6 @@ class TasksManager:
682
675
),
683
676
"imagegpt" : supported_tasks_mapping (
684
677
"feature-extraction" ,
685
- "image-feature-extraction" ,
686
678
"image-classification" ,
687
679
onnx = "ImageGPTOnnxConfig" ,
688
680
),
@@ -714,9 +706,7 @@ class TasksManager:
714
706
"token-classification" ,
715
707
onnx = "LiltOnnxConfig" ,
716
708
),
717
- "levit" : supported_tasks_mapping (
718
- "feature-extraction" , "image-classification" , "image-feature-extraction" , onnx = "LevitOnnxConfig"
719
- ),
709
+ "levit" : supported_tasks_mapping ("feature-extraction" , "image-classification" , onnx = "LevitOnnxConfig" ),
720
710
"longt5" : supported_tasks_mapping (
721
711
"feature-extraction" ,
722
712
"feature-extraction-with-past" ,
@@ -780,19 +770,17 @@ class TasksManager:
780
770
"mobilevit" : supported_tasks_mapping (
781
771
"feature-extraction" ,
782
772
"image-classification" ,
783
- "image-feature-extraction" ,
784
773
"image-segmentation" ,
785
774
onnx = "MobileViTOnnxConfig" ,
786
775
),
787
776
"mobilenet-v1" : supported_tasks_mapping (
788
777
"feature-extraction" ,
789
- "image-feature-extraction" ,
790
778
"image-classification" ,
791
779
onnx = "MobileNetV1OnnxConfig" ,
792
780
),
793
781
"mobilenet-v2" : supported_tasks_mapping (
782
+ "feature-extraction" ,
794
783
"image-classification" ,
795
- "image-feature-extraction" ,
796
784
onnx = "MobileNetV2OnnxConfig" ,
797
785
),
798
786
"mpnet" : supported_tasks_mapping (
@@ -901,20 +889,17 @@ class TasksManager:
901
889
),
902
890
"poolformer" : supported_tasks_mapping (
903
891
"feature-extraction" ,
904
- "image-feature-extraction" ,
905
892
"image-classification" ,
906
893
onnx = "PoolFormerOnnxConfig" ,
907
894
),
908
895
"regnet" : supported_tasks_mapping (
909
896
"feature-extraction" ,
910
- "image-feature-extraction" ,
911
897
"image-classification" ,
912
898
onnx = "RegNetOnnxConfig" ,
913
899
),
914
900
"resnet" : supported_tasks_mapping (
915
901
"feature-extraction" ,
916
902
"image-classification" ,
917
- "image-feature-extraction" ,
918
903
onnx = "ResNetOnnxConfig" ,
919
904
tflite = "ResNetTFLiteConfig" ,
920
905
),
@@ -950,7 +935,6 @@ class TasksManager:
950
935
"segformer" : supported_tasks_mapping (
951
936
"feature-extraction" ,
952
937
"image-classification" ,
953
- "image-feature-extraction" ,
954
938
"image-segmentation" ,
955
939
"semantic-segmentation" ,
956
940
onnx = "SegformerOnnxConfig" ,
@@ -995,14 +979,12 @@ class TasksManager:
995
979
),
996
980
"swin" : supported_tasks_mapping (
997
981
"feature-extraction" ,
998
- "image-feature-extraction" ,
999
982
"image-classification" ,
1000
983
"masked-im" ,
1001
984
onnx = "SwinOnnxConfig" ,
1002
985
),
1003
986
"swin2sr" : supported_tasks_mapping (
1004
987
"feature-extraction" ,
1005
- "image-feature-extraction" ,
1006
988
"image-to-image" ,
1007
989
onnx = "Swin2srOnnxConfig" ,
1008
990
),
@@ -1015,7 +997,6 @@ class TasksManager:
1015
997
),
1016
998
"table-transformer" : supported_tasks_mapping (
1017
999
"feature-extraction" ,
1018
- "image-feature-extraction" ,
1019
1000
"object-detection" ,
1020
1001
onnx = "TableTransformerOnnxConfig" ,
1021
1002
),
@@ -1048,7 +1029,7 @@ class TasksManager:
1048
1029
onnx = "VisionEncoderDecoderOnnxConfig" ,
1049
1030
),
1050
1031
"vit" : supported_tasks_mapping (
1051
- "feature-extraction" , "image-classification" , "image-feature-extraction" , " masked-im" , onnx = "ViTOnnxConfig"
1032
+ "feature-extraction" , "image-classification" , "masked-im" , onnx = "ViTOnnxConfig"
1052
1033
),
1053
1034
"wavlm" : supported_tasks_mapping (
1054
1035
"feature-extraction" ,
@@ -1108,7 +1089,6 @@ class TasksManager:
1108
1089
),
1109
1090
"yolos" : supported_tasks_mapping (
1110
1091
"feature-extraction" ,
1111
- "image-feature-extraction" ,
1112
1092
"object-detection" ,
1113
1093
onnx = "YolosOnnxConfig" ,
1114
1094
),
0 commit comments