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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MeanAveragePrecisionObjectDetection(classes: Int, topK: Int = -1, iouThres: Array[Float] = scala.Array.apply(0.5), 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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(output: Activity, target: Activity): ValidationResult

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): ValidationMethod[T]

    Definition Classes
    ValidationMethod → AnyRef
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def format(): String

    Attributes
    protected
    Definition Classes
    MeanAveragePrecisionObjectDetectionValidationMethod
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

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

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    ValidationMethod → AnyRef → Any
  21. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ValidationMethod[T]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped