datumaro.plugins.synthetic_data.utils#

Functions

augment(rng, image, colors)

colorize(frame, net)

fill_background(rng, image, colors)

rgb2lab(frame)

suppress_computation_warnings()

Classes

IFSFunction(rng, prev_x, prev_y)

class datumaro.plugins.synthetic_data.utils.IFSFunction(rng, prev_x, prev_y)[source]#

Bases: object

NUM_PARAMS = 6#
add_param(params, proba, weights=None)[source]#
calculate(iterations)[source]#
static process_nans(data)[source]#
rescale(image_x, image_y, pad_x, pad_y)[source]#
draw(image_x, image_y, draw_point, pad_x=6, pad_y=6)[source]#
datumaro.plugins.synthetic_data.utils.rgb2lab(frame: ndarray) ndarray[source]#
datumaro.plugins.synthetic_data.utils.colorize(frame, net)[source]#
datumaro.plugins.synthetic_data.utils.augment(rng: Random, image: ndarray, colors: ndarray) ndarray[source]#
datumaro.plugins.synthetic_data.utils.fill_background(rng: Random, image: ndarray, colors: ndarray) ndarray[source]#
datumaro.plugins.synthetic_data.utils.suppress_computation_warnings() ContextManager[source]#