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
- Alphabetic
- By Inheritance
- MeanAveragePrecisionObjectDetection
- ValidationMethod
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(output: Activity, target: Activity): ValidationResult
- Definition Classes
- MeanAveragePrecisionObjectDetection → ValidationMethod
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): ValidationMethod[T]
- Definition Classes
- ValidationMethod → AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
format(): String
- Attributes
- protected
- Definition Classes
- MeanAveragePrecisionObjectDetection → ValidationMethod
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- ValidationMethod → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )