Skip to content

Fix INT8 calibrator offset indexing#690

Open
xalil8 wants to merge 1 commit intomarcoslucianops:masterfrom
xalil8:fix/int8-calibrator-offset-index
Open

Fix INT8 calibrator offset indexing#690
xalil8 wants to merge 1 commit intomarcoslucianops:masterfrom
xalil8:fix/int8-calibrator-offset-index

Conversation

@xalil8
Copy link

@xalil8 xalil8 commented Mar 7, 2026

This fixes the INT8 calibrator preprocessing for 3-channel input.

calibrator.cpp currently uses offsets[3] for the third channel:
cv::Scalar(offsets[0] / 255, offsets[1] / 255, offsets[3] / 255)

The sample configs define three offsets, so the third value should be offsets[2].

This change only affects the INT8 calibration path.

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.

1 participant