ArtMix
ArtMix
ArtMix (mask_path:str, holes_num:int=1, use_black:bool=True, modifier:RegionModifier=None, hole_maker:HoleMakerTechnique=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 | |
---|---|---|---|
mask_path | str | The path to the image that is going to be used as mask. | |
holes_num | int | 1 | The amount of holes to make. |
use_black | bool | True | Whether to use the black part of the mask or the white part of the mask. |
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. |
TranspareceMix
allows us to fuse two images with the transparence idea. That is: if the overlapping mask has some information (it is not 0 in that position), its value is selected. Otherwise, if the overlapping mask has no information in that pixel, the information of the second image is used to fulfill the final image. Thus allows us to preserve as maximum information as possible, since these information is selected before using the background class.
ArtMix.before_batch
ArtMix.before_batch ()
Applies the CutMix technique.