Logo
Explore Help
Register Sign In
mirrors/mmclassification
1
0
Fork 0
You've already forked mmclassification
mirror of https://github.com/open-mmlab/mmclassification.git synced 2025-06-03 21:53:55 +08:00
Code Issues Projects Releases Wiki Activity
mmclassification/mmcls/models/utils/augment/__init__.py

7 lines
209 B
Python
Raw Normal View History

[Feature]Add augments to models/utils (#278) * 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
2021-06-20 09:44:51 +08:00
from .augments import Augments
from .cutmix import BatchCutMixLayer
from .identity import Identity
from .mixup import BatchMixupLayer
__all__ = ['Augments', 'BatchCutMixLayer', 'Identity', 'BatchMixupLayer']
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 1110ms Template: 14ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API