MCPcopy Create free account
hub / github.com/PaddlePaddle/EasyData / sample_mask

Function sample_mask

deploy/python/dataaug/data/preprocess/ops/fmix.py:144–164  ·  view source on GitHub ↗

Samples a mean lambda from beta distribution parametrised by alpha, creates a low frequency image and binarises it based on this lambda :param alpha: Alpha value for beta distribution from which to sample mean of mask :param decay_power: Decay power for frequency decay prop 1/f**d

(alpha, decay_power, shape, max_soft=0.0, reformulate=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

__call__Method · 0.90
sample_and_applyFunction · 0.85

Calls 3

sample_lamFunction · 0.85
make_low_freq_imageFunction · 0.85
binarise_maskFunction · 0.85

Tested by

no test coverage detected