Class

com.intel.analytics.zoo.pipeline.inference

AbstractInferenceModel

Related Doc: package inference

Permalink

abstract class AbstractInferenceModel extends InferenceModel with Serializable

Linear Supertypes
InferenceModel, Serializable, Serializable, InferenceSupportive, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractInferenceModel
  2. InferenceModel
  3. Serializable
  4. Serializable
  5. InferenceSupportive
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractInferenceModel(autoScalingEnabled: Boolean, concurrentNum: Int)

    Permalink
  2. new AbstractInferenceModel(concurrentNum: Int)

    Permalink
  3. new AbstractInferenceModel()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clearWeightBias(model: Module[Float]): Unit

    Permalink
    Definition Classes
    InferenceSupportive
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def doLoad(modelPath: String, weightPath: String = null): Unit

    Permalink

    loads a bigdl, analytics-zoo model

    loads a bigdl, analytics-zoo model

    modelPath

    the file path of the model

    weightPath

    the file path of the weights

    Definition Classes
    InferenceModel
  8. def doLoadCaffe(modelPath: String, weightPath: String): Unit

    Permalink

    loads a caffe model

    loads a caffe model

    modelPath

    the path of the prototxt file

    weightPath

    the path of the caffemodel file

    Definition Classes
    InferenceModel
  9. def doLoadOpenVINO(modelPath: String, weightPath: String): Unit

    Permalink

    loads a openvino IR

    loads a openvino IR

    modelPath

    the path of openvino ir xml file

    weightPath

    the path of openvino ir bin file

    Definition Classes
    InferenceModel
  10. def doLoadOpenVINOInt8(modelPath: String, weightPath: String, batchSize: Int): Unit

    Permalink

    loads a openvino IR Int8

    loads a openvino IR Int8

    modelPath

    the path of openvino ir xml file

    weightPath

    the path of openvino ir bin file

    Definition Classes
    InferenceModel
  11. def doLoadTF(modelPath: String, imageClassificationModelType: String, checkpointPath: String, inputShape: Array[Int], ifReverseInputChannels: Boolean, meanValues: Array[Float], scale: Float): Unit

    Permalink

    load TF model as OpenVINO IR

    load TF model as OpenVINO IR

    modelPath

    the path of the tensorflow model

    imageClassificationModelType

    the type of the tensorflow model

    checkpointPath

    the path of the tensorflow checkpoint file

    inputShape

    input shape that should be fed to an input node(s) of the model

    ifReverseInputChannels

    the boolean value of if need reverse input channels. switch the input channels order from RGB to BGR (or vice versa).

    meanValues

    all input values coming from original network inputs will be divided by this value.

    scale

    the scale value, to be used for the input image per channel.

    Definition Classes
    InferenceModel
  12. def doLoadTF(modelPath: String, objectDetectionModelType: String, pipelineConfigPath: String, extensionsConfigPath: String): Unit

    Permalink

    loads a TF model as OpenVINO

    loads a TF model as OpenVINO

    modelPath

    the path of the tensorflow model

    objectDetectionModelType

    the type of the tensorflow model, please refer to ModelType e.g. faster_rcnn_resnet101_coco, mask_rcnn_inception_v2_coco, rfcn_resnet101_coco, ssd_inception_v2_coco

    pipelineConfigPath

    the path of the pipeline configure file

    extensionsConfigPath

    the path of the extensions configure file

    Definition Classes
    InferenceModel
  13. def doLoadTF(modelPath: String, pipelineConfigPath: String, extensionsConfigPath: String): Unit

    Permalink

    loads a TF model as OpenVINO

    loads a TF model as OpenVINO

    modelPath

    the path of the tensorflow model

    pipelineConfigPath

    the path of the pipeline configure file

    extensionsConfigPath

    the path of the extensions configure file

    Definition Classes
    InferenceModel
  14. def doLoadTF(modelPath: String, objectDetectionModelType: String): Unit

    Permalink

    loads a TF model as OpenVINO

    loads a TF model as OpenVINO

    modelPath

    the path of the tensorflow model

    objectDetectionModelType

    the type of the tensorflow model, please refer to ModelType e.g. faster_rcnn_resnet101_coco, mask_rcnn_inception_v2_coco, rfcn_resnet101_coco, ssd_inception_v2_coco

    Definition Classes
    InferenceModel
  15. def doLoadTF(modelPath: String, intraOpParallelismThreads: Int, interOpParallelismThreads: Int, usePerSessionThreads: Boolean): Unit

    Permalink

    loads a TF model as TFNet

    loads a TF model as TFNet

    modelPath

    the path of the tensorflow model

    intraOpParallelismThreads

    the num of intraOpParallelismThreads

    interOpParallelismThreads

    the num of interOpParallelismThreads

    usePerSessionThreads

    whether to perSessionThreads

    Definition Classes
    InferenceModel
  16. def doLoadTF(modelPath: String): Unit

    Permalink

    loads a TF model as TFNet

    loads a TF model as TFNet

    modelPath

    the path of the tensorflow model file

    Definition Classes
    InferenceModel
  17. def doLoadTFAsCalibratedOpenVINO(modelPath: String, modelType: String, checkpointPath: String, inputShape: Array[Int], ifReverseInputChannels: Boolean, meanValues: Array[Float], scale: Float, networkType: String, validationFilePath: String, subset: Int, opencvLibPath: String): Unit

    Permalink

    load TF model as Calibrated OpenVINO IR

    load TF model as Calibrated OpenVINO IR

    modelPath

    the path of the tensorflow model

    modelType

    the type of the tensorflow model

    checkpointPath

    the path of the tensorflow checkpoint file

    inputShape

    input shape that should be fed to an input node(s) of the model

    ifReverseInputChannels

    the boolean value of if need reverse input channels. switch the input channels order from RGB to BGR (or vice versa).

    meanValues

    all input values coming from original network inputs will be divided by this value.

    scale

    the scale value, to be used for the input image per channel.

    networkType

    Type of an inferred network, "C" to calibrate Classification, "OD" to calibrate Object Detection, "RawC" to collect only statistics for Classification, "RawOD" to collect only statistics for Object Detection

    validationFilePath

    Path to a file with validation images

    subset

    Number of pictures from the whole validation set to create the calibration dataset.

    opencvLibPath

    the lib path whwere libopencv_imgcodecs.so.4.0, libopencv_core.so.4.0 and libopencv_imgproc.so.4.0 can be found

    Definition Classes
    InferenceModel
  18. def doPredict(inputActivity: Activity): Activity

    Permalink

    predicts the inference result

    predicts the inference result

    inputActivity

    the input activity

    returns

    the output activity

    Definition Classes
    InferenceModel
  19. def doPredict(inputs: List[List[JTensor]]): List[List[JTensor]]

    Permalink

    predicts the inference result

    predicts the inference result

    inputs

    the input tensor with batch

    returns

    the output tensor with batch

    Definition Classes
    InferenceModel
  20. def doPredictInt8(inputActivity: Activity): Activity

    Permalink

    predicts int8 the inference result

    predicts int8 the inference result

    inputActivity

    the input activity

    returns

    the output activity

    Definition Classes
    InferenceModel
  21. def doPredictInt8(inputs: List[List[JTensor]]): List[List[JTensor]]

    Permalink

    predicts int8 the inference result

    predicts int8 the inference result

    inputs

    the input tensor with batch

    returns

    the output tensor with batch

    Definition Classes
    InferenceModel
  22. def doReload(modelPath: String, weightPath: String): Unit

    Permalink

    reloads the bigdl, analytics-zoo model

    reloads the bigdl, analytics-zoo model

    modelPath

    the file path of the model

    weightPath

    the file path of the weights

    Definition Classes
    InferenceModel
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def getOriginalModel: AbstractModel

    Permalink
    Definition Classes
    InferenceModel
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def load(modelPath: String, weightPath: String): Unit

    Permalink
  31. def load(modelPath: String): Unit

    Permalink
  32. def loadCaffe(modelPath: String, weightPath: String): Unit

    Permalink
  33. def loadCaffe(modelPath: String): Unit

    Permalink
  34. def loadOpenVINO(modelFilePath: String, weightFilePath: String): Unit

    Permalink
  35. def loadOpenVINOInt8(modelFilePath: String, weightFilePath: String, batchSize: Int): Unit

    Permalink
  36. def loadTF(modelPath: String, imageClassificationModelType: String, checkpointPath: String, inputShape: Array[Int], ifReverseInputChannels: Boolean, meanValues: Array[Float], scale: Float): Unit

    Permalink
  37. def loadTF(modelPath: String, objectDetectionModelType: String, pipelineConfigFilePath: String, extensionsConfigFilePath: String): Unit

    Permalink
  38. def loadTF(modelPath: String, pipelineConfigFilePath: String, extensionsConfigFilePath: String): Unit

    Permalink
  39. def loadTF(modelPath: String, objectDetectionModelType: String): Unit

    Permalink
  40. def loadTF(modelPath: String, intraOpParallelismThreads: Int, interOpParallelismThreads: Int, usePerSessionThreads: Boolean): Unit

    Permalink
  41. def loadTF(modelPath: String): Unit

    Permalink
  42. def loadTFAsCalibratedOpenVINO(modelPath: String, modelType: String, checkpointPath: String, inputShape: Array[Int], ifReverseInputChannels: Boolean, meanValues: Array[Float], scale: Float, networkType: String, validationFilePath: String, subset: Int, opencvLibPath: String): Unit

    Permalink
  43. def makeMetaModel(original: AbstractModule[Activity, Activity, Float]): AbstractModule[Activity, Activity, Float]

    Permalink
    Definition Classes
    InferenceSupportive
  44. def makeUpModel(clonedModel: Module[Float], weightBias: Array[Tensor[Float]]): AbstractModule[Activity, Activity, Float]

    Permalink
    Definition Classes
    InferenceSupportive
  45. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  46. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  48. def predict(inputs: Array[List[JTensor]]): List[List[JTensor]]

    Permalink
  49. def predict(inputs: List[List[JTensor]]): List[List[JTensor]]

    Permalink
  50. def predict(input: List[Float], shape: <repeated...>[Int]): List[Float]

    Permalink
  51. def predictInt8(inputs: Array[List[JTensor]]): List[List[JTensor]]

    Permalink
  52. def predictInt8(inputs: List[List[JTensor]]): List[List[JTensor]]

    Permalink
  53. def release(): Unit

    Permalink

    release original model and all the cloned ones in the queue

    release original model and all the cloned ones in the queue

    Definition Classes
    AbstractInferenceModelInferenceModel
  54. def releaseWeightBias(model: Module[Float]): Unit

    Permalink
    Definition Classes
    InferenceSupportive
  55. def reload(modelPath: String, weightPath: String): Unit

    Permalink
  56. def reload(modelPath: String): Unit

    Permalink
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  58. def timing[T](name: String)(f: ⇒ T): T

    Permalink
    Definition Classes
    InferenceSupportive
  59. def toString(): String

    Permalink
    Definition Classes
    AbstractInferenceModelInferenceModel → AnyRef → Any
  60. def transferBatchTableToJListOfJListOfJTensor(batchTable: Table, batchSize: Int): List[List[JTensor]]

    Permalink
    Definition Classes
    InferenceSupportive
  61. def transferBatchTensorToJListOfJListOfJTensor(batchTensor: Tensor[Float], batchSize: Int): List[List[JTensor]]

    Permalink
    Definition Classes
    InferenceSupportive
  62. def transferListOfActivityToActivityOfBatch(inputs: List[List[JTensor]], batchSize: Int): Activity

    Permalink
    Definition Classes
    InferenceSupportive
  63. def transferTensorToJTensor(input: Tensor[Float]): JTensor

    Permalink
    Definition Classes
    InferenceSupportive
  64. def transferTensorsToTensorOfBatch(tensors: Array[JTensor]): Tensor[Float]

    Permalink
    Definition Classes
    InferenceSupportive
  65. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def doPredict(input: List[Float], shape: List[Integer]): List[Float]

    Permalink
    Definition Classes
    InferenceModel
    Annotations
    @deprecated
    Deprecated

Inherited from InferenceModel

Inherited from Serializable

Inherited from Serializable

Inherited from InferenceSupportive

Inherited from AnyRef

Inherited from Any

Ungrouped