c

com.intel.analytics.bigdl.optim

MeanAveragePrecisionObjectDetection

class MeanAveragePrecisionObjectDetection[T] extends ValidationMethod[T]

MeanAveragePrecision for Object Detection The class label begins with 0

The expected output from the last layer should be a Tensor[Float] or a Table If output is a tensor, it should be [num_of_batch X (1 + maxDetection * 6)] matrix The format of the matrix should be [<batch>, <batch>, ...], where each row vector is <batch> = [<size_of_batch>, <sample>,...]. Each sample has format: <sample> = <label, score, bbox x4> imgId is the batch number of the sample. imgId begins with 0. Multiple samples may share one imgId

If output is a table, it is a table of tables. output(i) is the results of the i-th image in the batch, where i = 1 to sizeof(batch) output(i) is a table, which contains the same keys (fields) of image info in the "target" Please refer to RoiMiniBatch/RoiImageInfo's documents. Besides, the inner tables also contain the scores for the detections in the image.

The "target" (Ground truth) is a table with the same structure of "output", except that it does not have "score" field

Linear Supertypes
ValidationMethod[T], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MeanAveragePrecisionObjectDetection
  2. ValidationMethod
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MeanAveragePrecisionObjectDetection(classes: Int, topK: Int = -1, iouThres: Array[Float] = Array(0.5f), theType: MAPType = MAPPascalVoc2010, skipClass: Int = -1, isSegmentation: Boolean = false)(implicit arg0: ClassTag[T], ev: TensorNumeric[T])

    classes

    the number of classes

    topK

    only take topK confident predictions (-1 for all predictions)

    iouThres

    the IOU thresholds

    theType

    the type of MAP algorithm. (voc2007/voc2010/COCO)

    skipClass

    skip calculating on a specific class (e.g. background) the class index starts from 0, or is -1 if no skipping

    isSegmentation

    if check the IOU of segmentations instead of bounding boxes. If true, the output and target must have "masks" data

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(output: Activity, target: Activity): ValidationResult
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): ValidationMethod[T]
    Definition Classes
    ValidationMethod → AnyRef
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def format(): String
    Attributes
    protected
    Definition Classes
    MeanAveragePrecisionObjectDetectionValidationMethod
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    ValidationMethod → AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from ValidationMethod[T]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped