Skip to content

Conversation

@raimbekovm
Copy link
Contributor

Adds missing expected outputs to the DetrForSegmentation forward() docstring example.

The example now shows:

  • panoptic_seg.shapetorch.Size([300, 500])
  • len(panoptic_segments_info)5

The other DETR models (DetrModel and DetrForObjectDetection) already have expected outputs in their examples, but this one was missing them.

Related to #16292

The same TODO comment appeared twice in the file (lines 51 and 169).
Removed the duplicate from the load_audio_as function as the comment
at the import statement (line 51) is more contextually appropriate.
@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: detr

@ArthurZucker ArthurZucker enabled auto-merge (squash) January 5, 2026 15:33
@ArthurZucker ArthurZucker merged commit 1802c84 into huggingface:main Jan 5, 2026
25 checks passed
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

sniper35 pushed a commit to sniper35/transformers that referenced this pull request Jan 5, 2026
…gface#43035)

* Remove duplicate TODO comment in audio_utils.py

The same TODO comment appeared twice in the file (lines 51 and 169).
Removed the duplicate from the load_audio_as function as the comment
at the import statement (line 51) is more contextually appropriate.

* Add expected outputs to DetrForSegmentation docstring example
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.

3 participants