SSD

This model is a real-time neural network for object detection that detects 80 different classes (labels are available in org.jetbrains.kotlinx.dl.dataset.handler.cocoCategoriesForSSD).

The model have an input with the shape is (1x3x1200x1200).

The model has 3 outputs:

  • boxes: (1x'nbox'x4)

  • labels: (1x'nbox')

  • scores: (1x'nbox')

See also

Functions

model
Link copied to clipboard
open fun model(modelHub: ModelHub): OnnxInferenceModel
preInit
Link copied to clipboard
open override fun preInit(): SSDObjectDetectionModel
preprocessInput
Link copied to clipboard
open fun preprocessInput(imageFile: File, preprocessing: Preprocessing): FloatArray
open override fun preprocessInput(data: FloatArray, tensorShape: LongArray): FloatArray
pretrainedModel
Link copied to clipboard
open override fun pretrainedModel(modelHub: ModelHub): SSDObjectDetectionModel

Properties

channelsFirst
Link copied to clipboard
open override val channelsFirst: Boolean
modelRelativePath
Link copied to clipboard
open override val modelRelativePath: String