takuoko
aa522f4309
[Feature] Support CUB dataset. ( #703 )
...
* support cub dataset
* support cub dataset
* fix train lint error
* add docs
* fix class label
Co-authored-by: Ezra-Yu <1105212286@qq.com>
* del debug code
* skip docformatter problem
* add unit tests
* add CUB baseline configs and chpts
* fix some typos
* fix name style
* update flops
Co-authored-by: Ezra-Yu <1105212286@qq.com>
2022-03-16 16:22:28 +08:00
Ma Zerun
1a28f9ace6
[Feature] Add `evaluate` function for ConcatDataset. ( #650 )
...
* Add `evaluate` function for ConcatDataset
* Remove newline in log.
* Fix lint
* Specify mmcv version in Windows CI
2022-02-28 12:46:17 +08:00
Ma Zerun
fcd57913ae
[Enhance] Upgrade isort pre-commit hooks. ( #687 )
...
* Use new version flake8 and isort hooks
* Fix missing copyright
2022-02-17 02:17:20 +08:00
Ma Zerun
bca695b684
[Refactor] Remove deprecation. ( #633 )
...
* Remove deprecated `--options` in some tools
* Remove deprecated eval hooks and fp16 hooks
* Remove deprecated mixup&cutmix, pretrained and return_tuple arguments.
* Remove deprecated `deprecated_options` in multi label dataset
* Remove deprecated `formating.py`
* Remove deprecated default mode of `LabelSmoothLoss`
* Revert pretrained argument, and remove it's deprecation sign.
* Update unit test
2022-02-10 09:30:18 +08:00
xiatao
8488a784f0
[Fix] Fix potential unexcepted behaviors if `metric_options` is not specified in multi-label evaluation. ( #647 )
...
* Update multi_label.py
* Fix lint
Co-authored-by: mzr1996 <mzr1996@163.com>
2022-01-27 10:27:38 +08:00
Ma Zerun
b39885d953
[Feature] Support K-fold cross-validation ( #563 )
...
* Support to use `indices` to specify which samples to evaluate.
* Add KFoldDataset wrapper
* Rename 'K' to 'num_splits' accroding to sklearn
* Add `kfold-cross-valid.py`
* Add unit tests
* Add help doc and docstring
2022-01-19 18:32:55 +08:00
Zhicheng Chen
da39ca6898
[Fix] Fix test sampler bug. ( #611 )
...
* sampler bugfixes
* sampler bugfixes
* reorganize code
* minor fixes
* reorganize code
* minor fixes
* Use `mmcv.runner.get_dist_info` instead of `dist` package to get rank
and world size.
* Add `build_dataloader` unit tests and fix sampler's unit tests.
* Fix unit tests
* Fix unit tests
Co-authored-by: mzr1996 <mzr1996@163.com>
2021-12-23 18:07:41 +08:00
Zhicheng Chen
d5ae255061
[Feature] Repeated Aug and Sampler Registry ( #588 )
2021-12-21 15:26:28 +08:00
mzr1996
5078869b4b
[Fix] Fix cal_acc bug caused by the return type of accuracy.
2021-12-14 16:21:25 +08:00
Ma Zerun
e3cf1881bb
[Enhance] Imporve efficiency of precision, recall, f1_score and support. ( #595 )
...
* [Enhance] Imporve efficiency of precision, recall, f1_score and support.
* Fix bugs
* Use np.maximum since torch doesn't have maximum before torch 1.7
* Fix bug
2021-12-13 17:24:59 +08:00
Ma Zerun
f2c1c57398
[Docs] Fix docs build dependency. ( #584 )
...
* Fix docs.
* Add MMHuman3D
2021-12-07 11:16:33 +08:00
Ezra-Yu
4b2128fdbd
[Fix] Fix bug when using `ClassBalancedDataset` ( #555 )
...
* fix dataset wrapper bug and add unit tests
* fix dataset wrapper bug and add unit tests
* update unit tests
* fix lint
* align interface to mmdet
* update unit tests
2021-11-26 09:40:00 +08:00
LeoXing1996
49cbfd776a
[Fix] Fix interpolation method checking in `Resize` ( #547 )
...
* fix interpolation method checking in resize
* revise docstring + add unit test
2021-11-19 17:38:25 +08:00
Zhicheng Chen
9ab9d4ff31
[Refactor] Refactor `Resize` transform and add `Pad` transform. ( #506 )
...
* refactor resize, test tobe done
* resize reimpl according to discussion; add pad
* minor fixes and add tests
* minor fixes on docstring
* add additional unit test
* reformat resize and pad
* revise code and docstr according to the comments
2021-11-10 16:46:49 +08:00
Ma Zerun
fffa30dd48
[Feature] Add Tokens-to-Token ViT backbone and converted checkpoints. ( #467 )
...
* add t2t backbone
* register t2t_vit
* add t2t_vit config
* [Temp] Align posterize transform with timm.
* Fix lint
* Refactor t2t-vit
* Add config for t2t-vit
* Add metafile and README for t2t-vit
* Add unit tests
* configs
* Update metafile and README
* Improve docstring
* Fix batch size which should be 8x64 instead of 8x128
* Fix typo
* Update model zoo
* Update training augments config.
* Move some arguments of T2TModule to T2TViT
* Update docs.
* Update unit test
Co-authored-by: HIT-cwh <2892770585@qq.com>
2021-10-29 10:37:16 +08:00
Ezra-Yu
2ce5825ef1
[Feature] Support ImageNet21k dataset. ( #461 )
...
* add imagnet21k
* Update unit test
* update imaenet21k
* use slots
* use slots
* rename Data_item to ImageInfo
* add unit tests
* Update unit tests
* rm some print
* update unit tests
* fix lint
* remove default value of pipeline
2021-10-28 15:22:08 +08:00
imyhxy
671414becb
[Fix] Fix missing import `Compose` and `Normalize`.
...
* Fixed missing import 'Compose'
* Fixed mistype `Compose` in `mmcls/datasets/__init__.py`
* Fixed missing import `Normalize`
* [Docs] Fix typos in doctest
* [Fix] Sort import module
2021-10-28 15:21:05 +08:00
Ma Zerun
7eeb54ce9c
[Fix] Fix version check in dataset builder. ( #474 )
...
* Fix version check in dataset builder.
* Use mmcv version check function.
2021-10-13 14:34:56 +08:00
Ma Zerun
2e6c7cf87d
[Docs] Add code-spell pre-commit hook and fix a large mount of typos. ( #470 )
...
* Add code spell check hook
* Add codespell config
* Fix a lot of typos.
* Add formating.py to keep compatibility.
2021-10-13 14:33:07 +08:00
Ezra-Yu
f865c725f2
[Docs] Fix typo in transforms.py docstring ( #455 )
2021-09-22 11:09:23 +08:00
Charlyo
8024f81de2
[Docs] Fix a typo in transforms ( #454 )
2021-09-22 10:46:59 +08:00
Ma Zerun
6a0a76af0c
[Enhance] Add `hparams` argument in `AutoAugment` and `RandAugment` and some other improvement. ( #398 )
...
* Add hparams argument in `AutoAugment` and `RandAugment`.
And `pad_val` supports sequence instead of tuple only.
* Add unit tests for `AutoAugment` and `hparams` in `RandAugment`.
* Use smaller test image to speed up uni tests.
* Use hparams to simplify RandAugment config in swin-transformer.
* Rename augment config name from `pipeline` to `pipelines`.
* Add some commnet ad docstring.
2021-08-24 18:15:54 +08:00
Ma Zerun
f9eb9b409b
[Docs] Add Copyright information. ( #413 )
2021-08-17 19:52:42 +08:00
Azad Baykara
5c4da16084
[Docs] Fix typo 'metirc' ( #411 )
2021-08-17 10:35:26 +08:00
Vladislav Sovrasov
b54acfd5c4
[Enhance] Avoid unnecessary listdir when building ImageNet. ( #396 )
2021-08-06 10:38:36 +08:00
Ma Zerun
e8822ebaec
[Docs] Fix some bugs in readthedocs pdf build. ( #383 )
...
* Add escape symbols for underscores in formulas.
* Support Chinese characters in pdf output.
2021-07-31 14:49:36 +08:00
pvys
db856df43e
[Fix] Fix ImageNet dataset annotation file parse bug. ( #370 )
...
Co-authored-by: mzr1996 <mzr1996@163.com>
2021-07-29 10:21:22 +08:00
Ma Zerun
15cd34bbef
[Fix] Use zero as default value of `thrs` in metrics. ( #341 )
...
* Use zero as default value of `thrs` in metrics. And it accepcts a number
instead of float now.
* Fix unit test comment
* Don't pass thrs if no thrs.
2021-07-18 16:57:21 +08:00
Ma Zerun
76c5d34dcc
[Feature] Support two options in `build_dataloader`. ( #349 )
...
* Support presistent_works in dataloader.
* Use pin_memory by default
2021-07-14 15:21:49 +08:00
Ma Zerun
d04ebc1eb5
[Docs] Add API Reference in the docs ( #342 )
...
* Add API inference in the docs and fix readthedocs config.
* Replace some relative link in docs.
* Format docstring for reStructuredText syntax.
* Fix vit paper link
* Fix docstring of `show_results` function in `BaseClassifier`.
2021-07-14 15:06:50 +08:00
Ma Zerun
53c0df271f
Fix magnitude_std bug in RandAugment, and update unit tests. ( #309 )
2021-06-21 11:25:11 +08:00
LXXXXR
2c9e12f850
[Feature] Add an argument `efficientnet_style` to `RandomResizedCrop` and `CenterCrop` ( #268 )
...
* add config for resnest test
* fix config
* add label smoothing
* add memcached
* minor fix
* fix bug
* fix config
* add config
* minor fix
* fix configs
* use EResize
* change interpolation
* add more configs
* add docsting
* add unittest
* remove unnecessary changes
* minor fix
* add more docstring
* fix linting
* refactor
* add resize in crop to ensure crop size is output size
* fix bug and add comments
* fix bug
2021-05-31 14:10:57 +08:00
LXXXXR
bd9411d743
[Bug] Download dataset only on rank 0 ( #273 )
...
* only download dataset on rank 0
* download only on rank 0
* fix bug
* fix error message
2021-05-29 10:45:58 +08:00
Ma Zerun
09597e5a4c
Add transform `RandomErasing` ( #248 )
...
* Add transform `RandomErasing`.
* Add unittests of `RandomErasing`
* Fix typo in docstring
* Improve docstring and unittests.
2021-05-19 22:35:26 +08:00
LXXXXR
8c90a879ce
[Fix] Fix magnitude_range in RandAug ( #249 )
...
* add increasing in solarize and posterize
* fix linting
* Revert "add increasing in solarize and posterize"
This reverts commit 128af36e9b
.
* revise according to comments
2021-05-12 15:21:55 +08:00
mzr1996
a3b8d6015d
[Feature] Add RandAUG magnitude noise ( #240 )
...
* Add paramater magnitude_std in RandAugment to allow randomly movement of magnitude_value
* Add unittest for magnitude_std
* Improve docstring of magnitude_std
2021-05-10 17:13:41 +08:00
mzr1996
b7b520881f
Update CONTRIBUTING.md according to mmcv ( #210 )
...
* Update CONTRIBUTING.md according to mmcv
* Docstring formatting by docformatter
* Update openmmlab website.
2021-04-14 21:22:37 +08:00
LXXXXR
5195932952
[Feature] Support random augmentation ( #201 )
...
* support random augmentation
* minor fix on posterize
* minor fix on posterize
* minor fix on cutout
* minor fix on cutout
* fix bug in solarize add
* revised according to comments
2021-04-09 14:02:50 +08:00
LXXXXR
4d1fb1a662
[Feature] ColorJitter and Lighting ( #190 )
...
* add configs
* remove config
* add color jitter and lighting
* revised according to comments
2021-04-02 19:23:39 +08:00
LXXXXR
93cd960466
[Feature] Support AutoAug, AutoContrast, Equalize, Contrast, Brightness and Sharpness ( #179 )
...
* add AutoContrast, Equalize, Contrast, Brightness and Sharpness pipelines
* add ImageNetPolicy
* add configs
* add unittest
* remove config
* rerun CI
* rerun CI
* [Fix] Update pip install mmcv command in ci (#187 )
* update pip install mmcv command in ci
* update pip install mmcv command in ci
* fix ci
* fix ci
2021-03-30 15:38:55 +08:00
LXXXXR
f3b9380cbc
[Feature] Support solarize and posterize pipelines ( #172 )
...
* support Solarize and Posterize
* revised according to comments
* fix conflicts
2021-03-09 19:45:13 +08:00
LXXXXR
9614787fc4
[Feature] Add color pipeline ( #171 )
...
* add ColorTransform pipeline
* fix docstring
* minor change
* revised according to comments
2021-03-09 19:28:50 +08:00
LXXXXR
c8033ece8e
add invert pipeline ( #168 )
2021-03-02 16:46:57 +08:00
LXXXXR
b1fa298a66
add Rotate pipeline ( #167 )
2021-03-01 21:49:07 +08:00
LXXXXR
bc50a7927b
reslove conflicts ( #165 )
2021-02-26 11:48:13 +08:00
LXXXXR
8c11c01fdb
[Feature] Add shear pipeline ( #163 )
...
* half-done auto_augmentation
* remove auto_augcode and support shear pipeline
* fix typo
* fix typo
* use a non-square toy data instead
2021-02-25 16:00:46 +08:00
David de la Iglesia Castro
fb11a23cfe
Show results in test api ( #162 )
...
* Initial support show in single_gpu_test
* Add result_show
* Add ori_filename meta_key
* test ori_filename
* Add show, show-dir, show-options
2021-02-25 16:00:22 +08:00
LXXXXR
ddc2a14177
[Feature] Add --eval-options in test.py ( #158 )
...
* add --eval-options in test.py
* fix typo
* revise according to commnets
2021-02-05 17:46:43 +08:00
LXXXXR
3e5a9513be
[Bug] Fix bug in Collect ( #149 )
...
* fix bug in Collect
* add metakeys
2021-01-25 20:29:28 +08:00
LXXXXR
fc82c31b2f
fix RandomCrop and RandomResizedCrop ( #151 )
2021-01-25 20:28:16 +08:00