public static class PtSSDTranslator.Builder
extends ai.djl.modality.cv.translator.SingleShotDetectionTranslator.Builder
imageHeight, imageWidth, threshold| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PtSSDTranslator |
build()
Builds the translator.
|
PtSSDTranslator.Builder |
setBoxes(int figSize,
int[] featSize,
int[] steps,
int[] scale,
int[][] aspectRatio)
Set the box parameter to reconstruct the anchor box.
|
selfgetImageHeight, getImageWidth, getThreshold, optRescaleSize, optThresholdoptSynset, optSynsetArtifactName, optSynsetUrl, validatepublic PtSSDTranslator.Builder setBoxes(int figSize, int[] featSize, int[] steps, int[] scale, int[][] aspectRatio)
figSize - image sizefeatSize - feature sizesteps - steps to create boxesscale - scale between different level of generated boxesaspectRatio - parameter go along with scalepublic PtSSDTranslator build()
build in class ai.djl.modality.cv.translator.SingleShotDetectionTranslator.Builder