mirror of
https://github.com/open-mmlab/mmclassification.git
synced 2025-06-03 19:00:58 +08:00
* add mytrain.py for test * test before layers * test attr in layers * test classifier * delete mytrain.py * add rand_bbox_minmax rand_bbox and cutmix_bbox_and_lam to BaseCutMixLayer * add mixup_prob to BatchMixupLayer * add cutmixup * add cutmixup to __init__ * test classifier with cutmixup * delete some comments * set mixup_prob default to 1.0 * add cutmixup to classifier * use cutmixup * use cutmixup * fix bugs * test cutmixup * move mixup and cutmix to augment * inherit from BaseAugment * add BaseAugment * inherit from BaseAugment * rename identity.py * add @ * build augment * register module * rename to augment.py * delete cutmixup.py * do not inherit from BaseAugment * add augments * use augments in classifier * prob default to 1.0 * add comments * use augments * use augments * assert sum of augmentation probabilities should equal to 1 * augmentation probabilities equal to 1 * calculate Identity prob * replace xxx with self.xxx * add comments * sync with augments * for BC-breaking * delete useless comments in mixup.py
7 lines
209 B
Python
7 lines
209 B
Python
from .augments import Augments
|
|
from .cutmix import BatchCutMixLayer
|
|
from .identity import Identity
|
|
from .mixup import BatchMixupLayer
|
|
|
|
__all__ = ['Augments', 'BatchCutMixLayer', 'Identity', 'BatchMixupLayer']
|