Improve ANSCV
This commit is contained in:
@@ -534,8 +534,12 @@ namespace ANSCENTER {
|
||||
|
||||
_ocrModelConfig.inpHeight = 640;
|
||||
_ocrModelConfig.inpWidth = 640;
|
||||
_ocrModelConfig.gpuOptBatchSize = 8;
|
||||
_ocrModelConfig.gpuMaxBatchSize = 32; // desired max; engine builder auto-caps by GPU VRAM
|
||||
// Max=4 chosen to fit typical plate counts per frame on 8 GB GPUs.
|
||||
// Was opt=8/max=32 which sized TRT workspace for 32 concurrent plates
|
||||
// (~1 GB for this model alone). Cap of 4 is still >= the usual 1–3
|
||||
// plates visible per camera frame, amortized throughput unchanged.
|
||||
_ocrModelConfig.gpuOptBatchSize = 4;
|
||||
_ocrModelConfig.gpuMaxBatchSize = 4; // desired max; engine builder auto-caps by GPU VRAM
|
||||
_ocrModelConfig.maxInputHeight = 640;
|
||||
_ocrModelConfig.maxInputWidth = 640;
|
||||
_ocrModelConfig.minInputHeight = 640;
|
||||
@@ -545,8 +549,9 @@ namespace ANSCENTER {
|
||||
|
||||
_lpColourModelConfig.inpHeight = 224;
|
||||
_lpColourModelConfig.inpWidth = 224;
|
||||
_lpColourModelConfig.gpuOptBatchSize = 8;
|
||||
_lpColourModelConfig.gpuMaxBatchSize = 32; // desired max; engine builder auto-caps by GPU VRAM
|
||||
// See _ocrModelConfig above — matching batch cap for consistency.
|
||||
_lpColourModelConfig.gpuOptBatchSize = 4;
|
||||
_lpColourModelConfig.gpuMaxBatchSize = 4; // desired max; engine builder auto-caps by GPU VRAM
|
||||
_lpColourModelConfig.maxInputHeight = 224;
|
||||
_lpColourModelConfig.maxInputWidth = 224;
|
||||
_lpColourModelConfig.minInputHeight = 224;
|
||||
|
||||
Reference in New Issue
Block a user