transformers icon indicating copy to clipboard operation
transformers copied to clipboard

Fix DeiT Masked Image Modeling output

Open alaradirik opened this issue 2 years ago • 1 comments

What does this PR do?

Fixes the output of DeiTForMaskedImageModeling and TFDeiTForMaskedImageModeling by replacing the inaccurate MaskedLMOutput with the MaskedImageCompletionOutput class.

Follow-up PR on #22152

Before submitting

  • [ X] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • [ X] Did you read the contributor guideline, Pull Request section?
  • [ X] Was this discussed/approved via a Github issue or the forum? Please add a link to it if that's the case.
  • [ ] Did you make sure to update the documentation with your changes? Here are the documentation guidelines, and here are tips on formatting docstrings.
  • [ ] Did you write any new necessary tests?

alaradirik avatar Mar 15 '23 07:03 alaradirik

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Apr 14 '23 15:04 github-actions[bot]