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

Function binarise_mask

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

Binarises a given low frequency image such that it has mean lambda. :param mask: Low frequency image, usually the result of `make_low_freq_image` :param lam: Mean value of final mask :param in_shape: Shape of inputs :param max_soft: Softening value between 0 and 0.5 which smooths h

(mask, lam, in_shape, max_soft=0.0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sample_maskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected