CutMixSemantic
CutMixSemantic
CutMixSemantic (holes_num=1, occlusion_class=-1, modifier:RegionModifier=None, hole_maker:HoleMakerTechnique=None, p=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. |
occlusion_class | int | -1 | The class to remove. If -1, selects it randomly in each use. |
modifier | RegionModifier | None | The modifier that defines the traditional augments to apply to the selected regions. |
hole_maker | HoleMakerTechnique | None | The strategy used to make the holes. |
p | float | 0.5 | The probability of applying this technique. |
The default technique used to make those holes is the HoleMakerRandom
technique.
CutMix
technique was defined and implemented here.
CutMixSemantic.before_batch
CutMixSemantic.before_batch ()
Applies the CutMix technique with semantic information (only applies the CutMix to a selected class).