Loading

class Loading(pathToData: File?, imageShape: ImageShape?, labelGenerator: LabelGenerator?, colorMode: ColorOrder)

This class defines the Loading operation.

Describes the initial phase of data and its labels loading. Could be applied to one file or whole directory.

Constructors

Loading
Link copied to clipboard
fun Loading(pathToData: File? = null, imageShape: ImageShape? = null, labelGenerator: LabelGenerator? = null, colorMode: ColorOrder = ColorOrder.BGR)

Properties

colorMode
Link copied to clipboard
var colorMode: ColorOrder

Keep channels in the given order after loading.

imageShape
Link copied to clipboard
var imageShape: ImageShape? = null

The shape of input image. If height and width are different for different images, need to skip the filling of these properties of ImageShape.

labelGenerator
Link copied to clipboard
var labelGenerator: LabelGenerator? = null

A way to generate labels.

pathToData
Link copied to clipboard
var pathToData: File? = null

The image will be cropped from the top by the given number of pixels.