Skip to content

[Experiment] Plan A: Configurable inference resolution for P2 model validation#362

Draft
xiaotianlou wants to merge 2 commits intomainfrom
experiment/planA_highres
Draft

[Experiment] Plan A: Configurable inference resolution for P2 model validation#362
xiaotianlou wants to merge 2 commits intomainfrom
experiment/planA_highres

Conversation

@xiaotianlou
Copy link
Copy Markdown
Collaborator

⚠️ EXPERIMENTAL - DO NOT MERGE

Adds --scale-factor parameter to convert_tensorrt.py and accuracy_benchmark.py to test P2 model at higher deployment resolutions.

Changes

  • src/benchmark/convert_tensorrt.py: Added --scale-factor arg, configurable height scaling with fixed width=960
  • src/benchmark/accuracy_benchmark.py: Passes scale_factor to engine conversion

Results

Resolution mAP50-95 mAP50 mAP50-95 (small)
544x960 (baseline) 0.539 0.791 0.149
736x960 0.525 0.782 0.150
816x960 pending - -

Conclusion

Increasing resolution does NOT recover P2 accuracy. FP16 quantization loss on 43K anchors dominates. Plan A is not viable for deployment improvement.

Allows testing P2 models at higher resolutions (e.g. 736x960, 816x960)
to evaluate if increased resolution recovers P2 small-target advantage.
Previous implementation scaled both W and H, producing 1305x734 at
scale=0.68 which exceeds Orin memory. Now width stays at WIDTH/2=960,
only height scales: 0.68 -> 736x960, 0.76 -> 816x960.
@xiaotianlou xiaotianlou added the experiment Experimental branch - do not merge label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

experiment Experimental branch - do not merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant