Skip to content

Commit

Permalink
Add image-feature-extraction task to transformers and timm lib->task …
Browse files Browse the repository at this point in the history
…mapping (#1120)

There's no pipeline snippet for models w/ the image-feature-extraction
task, probably because this mapping is missing?

cc @pcuenca re slack comment
  • Loading branch information
rwightman authored Jan 31, 2025
1 parent e288dbe commit 0a690a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tasks/src/library-to-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const LIBRARY_TASK_MAPPING: Partial<Record<ModelLibraryKey, PipelineType[
"text2text-generation",
],
stanza: ["token-classification"],
timm: ["image-classification"],
timm: ["image-classification", "image-feature-extraction"],
transformers: [
"audio-classification",
"automatic-speech-recognition",
Expand All @@ -52,6 +52,7 @@ export const LIBRARY_TASK_MAPPING: Partial<Record<ModelLibraryKey, PipelineType[
"feature-extraction",
"fill-mask",
"image-classification",
"image-feature-extraction",
"image-segmentation",
"image-to-image",
"image-to-text",
Expand Down

0 comments on commit 0a690a1

Please sign in to comment.