Skip to content

Fix DeiT Masked Image Modeling output#22173

Closed
alaradirik wants to merge 1 commit into
huggingface:mainfrom
alaradirik:fix-deit-mim-output
Closed

Fix DeiT Masked Image Modeling output#22173
alaradirik wants to merge 1 commit into
huggingface:mainfrom
alaradirik:fix-deit-mim-output

Conversation

@alaradirik
Copy link
Copy Markdown
Contributor

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 alaradirik requested a review from amyeroberts March 15, 2023 07:43
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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

@github-actions
Copy link
Copy Markdown
Contributor

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.

@alaradirik alaradirik closed this Apr 17, 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 this pull request may close these issues.

2 participants