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

[DETR] Improve code examples #18262

Merged
merged 4 commits into from Jul 27, 2022

Conversation

NielsRogge
Copy link
Contributor

What does this PR do?

As a follow-up of #17786, this PR improves the code examples of DETR to showcase the post_process methods.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 22, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@alaradirik alaradirik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! The example snippets were my main source of information before joining the team, they really make a difference

src/transformers/models/detr/modeling_detr.py Show resolved Hide resolved
src/transformers/models/detr/modeling_detr.py Outdated Show resolved Hide resolved
src/transformers/models/detr/modeling_detr.py Show resolved Hide resolved
src/transformers/models/detr/modeling_detr.py Outdated Show resolved Hide resolved
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
@NielsRogge NielsRogge merged commit 47c2af0 into huggingface:main Jul 27, 2022
LysandreJik pushed a commit that referenced this pull request Jul 27, 2022
* Improve doc test

* Improve code example of segmentation model

* Apply suggestion

* Update src/transformers/models/detr/modeling_detr.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

Co-authored-by: Niels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
oneraghavan pushed a commit to oneraghavan/transformers that referenced this pull request Sep 26, 2022
* Improve doc test

* Improve code example of segmentation model

* Apply suggestion

* Update src/transformers/models/detr/modeling_detr.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

Co-authored-by: Niels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
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.

None yet

4 participants