Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New task] Mask generation #990

Closed
xenova opened this issue Apr 20, 2023 · 2 comments
Closed

[New task] Mask generation #990

xenova opened this issue Apr 20, 2023 · 2 comments

Comments

@xenova
Copy link
Contributor

xenova commented Apr 20, 2023

Feature request

Currently, the mask-generation pipeline/task in transformers is not supported for onnx export:

_TASKS_TO_AUTOMODELS = {
"conversational": ("AutoModelForCausalLM", "AutoModelForSeq2SeqLM"),
"feature-extraction": "AutoModel",
"fill-mask": "AutoModelForMaskedLM",
"text-generation": "AutoModelForCausalLM",
"text2text-generation": "AutoModelForSeq2SeqLM",
"text-classification": "AutoModelForSequenceClassification",
"token-classification": "AutoModelForTokenClassification",
"multiple-choice": "AutoModelForMultipleChoice",
"object-detection": "AutoModelForObjectDetection",
"question-answering": "AutoModelForQuestionAnswering",
"image-classification": "AutoModelForImageClassification",
"image-segmentation": "AutoModelForImageSegmentation",
"masked-im": "AutoModelForMaskedImageModeling",
"semantic-segmentation": "AutoModelForSemanticSegmentation",
"automatic-speech-recognition": ("AutoModelForSpeechSeq2Seq", "AutoModelForCTC"),
"audio-classification": "AutoModelForAudioClassification",
"audio-frame-classification": "AutoModelForAudioFrameClassification",
"audio-xvector": "AutoModelForAudioXVector",
"image-to-text": "AutoModelForVision2Seq",
"stable-diffusion": "StableDiffusionPipeline",
"zero-shot-image-classification": "AutoModelForZeroShotImageClassification",
"zero-shot-object-detection": "AutoModelForZeroShotObjectDetection",
}

Motivation

I plan to implement SAM in Transformers.js, but I can't do any testing yet until it's supported by optimum :)

Your contribution

I'll implement it in Transformers.js once supported in optimum 👍

@fxmarty
Copy link
Contributor

fxmarty commented Apr 20, 2023

Hi @xenova , planning to work on it tomorrow and do a release of optimum in sync with transformers early next week!

@xenova
Copy link
Contributor Author

xenova commented May 31, 2023

Fixed by #1025

@xenova xenova closed this as completed May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants