SelfMix
SelfMix
SelfMix (holes_num:int=1, ROI_class:int=-1, modifier:RegionModifier=None, p:float=0.5)
Defines the amount of holes, the technique used to make them and the probability of apply the technique.
Type | Default | Details | |
---|---|---|---|
holes_num | int | 1 | The amount of holes to make. |
ROI_class | int | -1 | The class to be used to select the ROI. |
modifier | RegionModifier | None | The modifier that defines the traditional augments to apply to the selected regions. |
p | float | 0.5 | The probability of applying this technique. |
SelfMix
technique extracts a ROI and overlaps it, with transparece, in another image.
In our library, SelfMix
is just a particular case of TranspareceMix
with a HoleMakerROI
technique.
The definition and implementation of this technique can be found here.
TransparenceMix.before_batch
TransparenceMix.before_batch ()
Applies the CutMix technique.