-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Revise file structure and add ut (#1145)
* refactor mmedit/models/utils/ * rename layers to base_archs * move fid-inception and inception_utils to evaluation/funcitonal * merge batch process to edit data processor * move misc to utils * rename loops.py to gen_loops.py * move log_processor to runner * move trans utils to utils * move some function from metric_utils to mmedit/utils * add unit test for inception utils.py * add unit test for average model * add unit test for base translation model * add more ut for sagan generator * add more unit test for biggan generator * add unit test for io_utils and revise the name of variable * add more unit test for biggan deep generator * remove useless ut files and revise some uts * add unit test for stylegan3 * add more unit test for cyclegan * add more unit test for stylegan2 module * skip unit test of CLIP loss on win-cuda env * omit ops under stylegan2 folder * fix ut of alpha.py to avoid the randomness * update base_archs * update base_archs * update ut * fix import error * add unit test for singan-modules * add unit test for sn module * add unit test for stylegan1 and stylegan3 * revise unit test of arcFace * add unit test for wgan-module * complete unit test of gen metric * remove useless unit test files * remove useless uts and revise ut checking script * revise omit file list in CI configs * update dev_scripts Co-authored-by: zenggyh1900 <[email protected]>
- Loading branch information
1 parent
ae31d9b
commit 69209e6
Showing
177 changed files
with
2,250 additions
and
1,518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Check UT | ||
|
||
Please check your UT by the following scripts: | ||
|
||
```python | ||
cd mmediting/ | ||
python .dev_script/update_ut.py | ||
``` | ||
|
||
Then, you will find some redundant UT, missing UT and blank UT. | ||
Please create UTs according to your package code implementation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Copyright (c) OpenMMLab. All rights reserved. | ||
from .hooks import * # noqa: F401, F403 | ||
from .logging import * # noqa: F401, F403 | ||
from .misc import * # noqa: F401, F403 | ||
from .optimizers import * # noqa: F401, F403 | ||
from .runner import * # noqa: F401, F403 | ||
from .schedulers import * # noqa: F401, F403 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Copyright (c) OpenMMLab. All rights reserved. | ||
from .loops import GenTestLoop, GenValLoop | ||
from .gen_loops import GenTestLoop, GenValLoop | ||
from .log_processor import GenLogProcessor | ||
from .multi_loops import MultiTestLoop, MultiValLoop | ||
|
||
__all__ = ['MultiValLoop', 'MultiTestLoop', 'GenTestLoop', 'GenValLoop'] | ||
__all__ = [ | ||
'MultiValLoop', 'MultiTestLoop', 'GenTestLoop', 'GenValLoop', | ||
'GenLogProcessor' | ||
] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
# Copyright (c) OpenMMLab. All rights reserved. | ||
from .fid_inception import InceptionV3 | ||
from .gaussian_funcs import gauss_gradient | ||
from .inception_utils import (disable_gpu_fuser_on_pt19, load_inception, | ||
prepare_inception_feat, prepare_vgg_feat) | ||
|
||
__all__ = ['gauss_gradient'] | ||
__all__ = [ | ||
'gauss_gradient', 'InceptionV3', 'disable_gpu_fuser_on_pt19', | ||
'load_inception', 'prepare_vgg_feat', 'prepare_inception_feat' | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.