Class/Object

com.intel.analytics.zoo.pipeline.inference

InferenceModel

Related Docs: object InferenceModel | package inference

Permalink

class InferenceModel extends InferenceSupportive with Serializable

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

Instance Constructors

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

    Permalink

    create an InferenceModel with specified autoScalingEnabled, supportedConcurrentNum and maxConcurrentNum

    create an InferenceModel with specified autoScalingEnabled, supportedConcurrentNum and maxConcurrentNum

    autoScalingEnabled

    if auto-scaling is enabled

    concurrentNum

    the concurrentNum of the InferenceModel

    returns

    a specified InferenceModel

  2. new InferenceModel(concurrentNum: Int)

    Permalink

    create an auto-scaling disabled InferenceModel with supportedConcurrentNum

    create an auto-scaling disabled InferenceModel with supportedConcurrentNum

    concurrentNum

    the concurrentNum of the InferenceModel

    returns

    an auto-scaling disabled InferenceModel

  3. new InferenceModel()

    Permalink

    default constructor, will create a InferenceModel with auto-scaling enabled.

    default constructor, will create a InferenceModel with auto-scaling enabled.

    returns

    an auto-scaling enabled InferenceModel

  4. new InferenceModel(autoScalingEnabled: Boolean = true, concurrentNum: Int = 20, originalModel: AbstractModel = null, modelQueue: LinkedBlockingQueue[AbstractModel] = null)

    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

  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

  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

  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

  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.

  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

  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

  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

  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

  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

  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

  18. def doPredict(inputActivity: Activity): Activity

    Permalink

    predicts the inference result

    predicts the inference result

    inputActivity

    the input activity

    returns

    the output activity

  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

  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

  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

  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

  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
  28. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  30. def makeMetaModel(original: AbstractModule[Activity, Activity, Float]): AbstractModule[Activity, Activity, Float]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  35. def release(): Unit

    Permalink

    release original model and all the cloned ones in the queue

  36. def releaseWeightBias(model: Module[Float]): Unit

    Permalink
    Definition Classes
    InferenceSupportive
  37. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. 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
    Annotations
    @deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from InferenceSupportive

Inherited from AnyRef

Inherited from Any

Ungrouped