roboflow / roboflow/inference

Inconsistent RF-DETR Inference Results Between Roboflow UI and Local Inference (Preprocessing and Post-processing Clarification)

Open
#2,302 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
2.5k
Forks
320
Avg merge
1d 14h
Merged PRs (30d)
133

Description

Search before asking
  • I have searched the Inference issues and found no similar feature requests.
Question

Hi Roboflow Team,

I’m using an RF-DETR model trained on Roboflow and observed inconsistent inference results between the Roboflow UI and my local inference setup.

Specifically:

When running inference via the Roboflow UI, detections are accurate and as expected.
However, when I run inference locally (using the HTTP API and other methods), the same images produce noticeably different results (missed detections / shifted boxes / confidence variations).

I suspect this might be due to differences in preprocessing (e.g., resizing, normalization, color handling) that are internally handled in the Roboflow pipeline but not clearly exposed for local replication.

Could you please clarify:

What exact preprocessing steps are applied during RF-DETR inference in the Roboflow UI?
Are these same steps automatically applied in the hosted inference API, or do we need to manually replicate them for local/custom inference?
Is there any documentation or reference implementation to ensure preprocessing consistency?

Understanding this would help ensure consistent results across environments and avoid performance discrepancies.

Thanks in advance!

Additional

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named in the issue. Start by locating the RF-DETR inference preprocessing and post-processing paths, then compare them with the Roboflow UI and hosted HTTP API behavior; done means documenting the exact steps and whether local callers must reproduce any of them.

Written by the indexing model from the issue text.

Assessment

Domain
api, computer-vision
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.