Skip to content

Add LW-DETR object detection models#334

Merged
cregouby merged 9 commits into
mlverse:mainfrom
srishtiii28:feature/lw-detr-clean
Jul 4, 2026
Merged

Add LW-DETR object detection models#334
cregouby merged 9 commits into
mlverse:mainfrom
srishtiii28:feature/lw-detr-clean

Conversation

@srishtiii28

Copy link
Copy Markdown
Contributor

Closes #328

Implements LW-DETR (https://arxiv.org/abs/2406.03459), a real-time detection transformer

Adds model_lw_detr_tiny(), model_lw_detr_small(), model_lw_detr_medium(), and model_lw_detr_large() with COCO-pretrained weights. The architecture comprises a ViT backbone, a C2f multi-scale projector, and a two-stage deformable-attention decoder. All four variants load the official weights with exact key/shape match and reproduce reference detections; pixel_mask is supported for letterboxed (non-square) inputs.

@srishtiii28 srishtiii28 marked this pull request as draft June 24, 2026 17:59
@srishtiii28 srishtiii28 marked this pull request as ready for review June 24, 2026 18:08
Comment thread NEWS.md

@cregouby cregouby left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

praise again an impressive contribution
todo see inline

Comment thread R/models-lw_detr.R Outdated
Comment thread R/models-lw_detr.R Outdated
Comment thread R/models-lw_detr.R
Comment thread R/models-lw_detr.R Outdated
Comment thread R/models-lw_detr.R Outdated
Comment thread R/models-lw_detr.R Outdated
Comment thread R/models-lw_detr.R Outdated
Comment thread R/models-lw_detr.R Outdated
Comment thread tests/testthat/test-models-lw_detr.R Outdated
Comment thread tests/testthat/test-models-lw_detr.R
@srishtiii28 srishtiii28 requested a review from cregouby July 2, 2026 04:26
@cregouby cregouby merged commit 8d19bac into mlverse:main Jul 4, 2026
0 of 3 checks passed
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.

[Object Detection Model] Please implement LW-DETR

2 participants