Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support Pure Python style Configuration File #1071

Merged
merged 107 commits into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
1270fb4
experimental test
HAOCHENYE Feb 9, 2023
001950a
experimental test
HAOCHENYE Feb 10, 2023
9aa3aac
support remove ml_collections
HAOCHENYE Feb 10, 2023
a85e2ce
Support configure torch.backends.cudnn.deterministic when CUDA>=10.2
HAOCHENYE Feb 14, 2023
322f807
Fix: built duplicated instance
HAOCHENYE Feb 14, 2023
3290f04
tmp save
HAOCHENYE Feb 16, 2023
ccbe7ad
Support training mmrazor
HAOCHENYE Feb 16, 2023
41b49e3
Refactor lazy config
HAOCHENYE Feb 20, 2023
98719d0
add config
HAOCHENYE Feb 21, 2023
9df438e
add config
HAOCHENYE Feb 21, 2023
d3817d2
tmp save
HAOCHENYE Feb 21, 2023
59a9699
tmp save
HAOCHENYE Mar 8, 2023
df2d117
support training on mmdet
HAOCHENYE Apr 10, 2023
153d7c2
inherit by import 'base'
HAOCHENYE Apr 12, 2023
654f90a
remove lazy_config
HAOCHENYE Apr 12, 2023
dccdafc
remove experimental runner
HAOCHENYE Apr 12, 2023
48d0eb9
add docstring and rename
HAOCHENYE Apr 12, 2023
0c0e380
minor refine
HAOCHENYE Apr 13, 2023
cab091d
Hidden the LazyObject to user
HAOCHENYE Apr 14, 2023
4280160
Fix is_builtin_module
HAOCHENYE Apr 14, 2023
d2165b9
rename unwrap_lazy and add docstring
HAOCHENYE Apr 14, 2023
1ca12b0
1.Support define None default scope 2.Fix get callable functions from…
HAOCHENYE Apr 25, 2023
5661cb1
Automatically deduce lazy_import
HAOCHENYE Apr 23, 2023
8c246f1
Fix setitem and update
HAOCHENYE Apr 24, 2023
2b95fda
Update unit test
HAOCHENYE Apr 24, 2023
924647a
Fix mypy
HAOCHENYE Apr 24, 2023
52dfa24
remove torch dependency of config ut
HAOCHENYE Apr 24, 2023
b24f43f
Fix ut of config influence ut of other module
HAOCHENYE Apr 25, 2023
8fc875c
triggter CI
HAOCHENYE Apr 25, 2023
de8b15b
Merge remote-tracking branch 'origin/main' into new_config_type
HAOCHENYE May 4, 2023
c00c53e
revert runner/utils
HAOCHENYE May 4, 2023
5751484
Fix pretty text
HAOCHENYE May 4, 2023
9e6f9d1
minor refine _format_dict
HAOCHENYE May 4, 2023
0b57313
Deperate _module_ with type format module_name::class_name
HAOCHENYE May 4, 2023
94f2102
replace :: with :::
HAOCHENYE May 4, 2023
d30bfe2
catch all error raised by yapf
HAOCHENYE May 4, 2023
5d96b12
support get object from torch.optim.sgd.SGD
HAOCHENYE May 12, 2023
ca66813
update unit test for locate
HAOCHENYE May 12, 2023
565a1d0
update config docstring
HAOCHENYE May 15, 2023
9c2e5b6
1.Support wrap model without type in model_wrapper_cfg; 2. Raise erro…
HAOCHENYE May 16, 2023
509d2bd
Enhance error rasing
HAOCHENYE May 16, 2023
6272d0b
add descrition of scope in tutorial
HAOCHENYE May 16, 2023
2a22fdf
import obj with higher priority than module in 'locate'
HAOCHENYE May 22, 2023
4ac8b27
update alias
HAOCHENYE May 22, 2023
7900017
1. Record the imported object in Config.imported_name. There variable…
HAOCHENYE May 22, 2023
baae948
Package will be considered installed if it is added to to PYTHONPATH
HAOCHENYE May 22, 2023
e3720ea
remove unnecessary import in test_lazy.py
HAOCHENYE May 22, 2023
a80ea86
fix Registry unittest
HAOCHENYE May 22, 2023
30059e2
Update config tutorial
HAOCHENYE May 22, 2023
366fc6e
Fix cannot get lineno in ast.alias when python verison < 3.10
HAOCHENYE May 22, 2023
7851e6b
using rf'' to keep the escape charactor
HAOCHENYE May 25, 2023
19da622
fix ci
HAOCHENYE May 25, 2023
205e83e
see verbose error msg
HAOCHENYE May 25, 2023
d440c0b
try to fix ci
HAOCHENYE May 25, 2023
a61725d
try to fix ci
HAOCHENYE May 25, 2023
78d1491
Revert "try to fix ci"
HAOCHENYE May 25, 2023
1486b54
try to fix ci
HAOCHENYE May 25, 2023
01643db
debug
HAOCHENYE May 25, 2023
e8f4fc5
fix ci
HAOCHENYE May 25, 2023
6a86269
fix ci
HAOCHENYE May 25, 2023
12b4b12
debug ci
HAOCHENYE May 26, 2023
a628474
fix ci
HAOCHENYE May 26, 2023
0259410
fix ci
HAOCHENYE May 26, 2023
22d0ec7
fix ci
HAOCHENYE May 26, 2023
2ef2933
Refine migrate table head
HAOCHENYE May 29, 2023
3e350ab
Enhance error message
HAOCHENYE May 29, 2023
a812f12
Enhance error message
HAOCHENYE May 29, 2023
84cd657
Fix as comment
HAOCHENYE Jun 8, 2023
bb1474c
upload test data
HAOCHENYE Jun 8, 2023
ca772d2
refine error message
HAOCHENYE Jun 8, 2023
acc8418
refine error message
HAOCHENYE Jun 8, 2023
670f901
move unnecessary str in __str__
HAOCHENYE Jun 8, 2023
82b9902
double escaping for filename
HAOCHENYE Jun 8, 2023
5848073
refine comment
HAOCHENYE Jun 8, 2023
fe92f38
Fix CI
HAOCHENYE Jun 8, 2023
2f833ca
Minor refine
HAOCHENYE Jun 9, 2023
45ad42d
Fix escaping error
HAOCHENYE Jun 9, 2023
d87820d
1. Unified Variable Naming for AST.
HAOCHENYE Jun 9, 2023
c78a26b
Fix lint for escape
HAOCHENYE Jun 9, 2023
bd8bb9c
Fix docstring of config.utils
HAOCHENYE Jun 9, 2023
3513c1e
Refine docstring, comments and typehints
HAOCHENYE Jun 9, 2023
1fb505b
Try to fix escape error in windows
HAOCHENYE Jun 9, 2023
cfee6d5
Fix as comment
HAOCHENYE Jun 12, 2023
655d9d6
Fix error message in LazyAttr
HAOCHENYE Jun 12, 2023
f2d2498
remove unused code
HAOCHENYE Jun 12, 2023
3c787e6
remove description about LazyObject and LazyAttr in tutorial
HAOCHENYE Jun 12, 2023
617d620
refine tutorial
HAOCHENYE Jun 13, 2023
5bd90d5
Add just section level
HAOCHENYE Jun 13, 2023
3dc8efa
Update EN docs and rich the content of 'Advanced usage'
HAOCHENYE Jun 13, 2023
07bed20
Adjust indent
HAOCHENYE Jun 13, 2023
7c54e20
Refine docs as comments
HAOCHENYE Jun 14, 2023
85a9f5b
Refine unit test as comments
HAOCHENYE Jun 14, 2023
b559200
Fix code order in config docs
HAOCHENYE Jun 14, 2023
bf8eebc
add beta to Pure python style config
HAOCHENYE Jun 14, 2023
e38c133
Update unit test and fix small bugs
HAOCHENYE Jun 14, 2023
825168f
update test resources
HAOCHENYE Jun 14, 2023
066581e
Fix default scope will not be set if it is None
HAOCHENYE Jun 14, 2023
4779185
rename locate to get_object_from_string
HAOCHENYE Jun 14, 2023
0753c7b
refine comments
HAOCHENYE Jun 14, 2023
dbe90b6
refine docstring
HAOCHENYE Jun 14, 2023
7fde891
refine docstring
HAOCHENYE Jun 14, 2023
6602044
Refine docs
HAOCHENYE Jun 15, 2023
7f56367
Update unittest for get_install_path and is_install
HAOCHENYE Jun 15, 2023
add21c1
Fix submodule_search_locations is not subscritable in Python 3.7
HAOCHENYE Jun 15, 2023
78a75ce
Fix ut
HAOCHENYE Jun 15, 2023
12a8df9
Fix ut
HAOCHENYE Jun 15, 2023
18eb7c4
Fix ut
HAOCHENYE Jun 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
463 changes: 462 additions & 1 deletion docs/en/advanced_tutorials/config.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
'myst_parser',
'sphinx_copybutton',
'sphinx.ext.autodoc.typehints',
'sphinx_tabs.tabs',
] # yapf: disable
autodoc_typehints = 'description'
myst_heading_anchors = 4
Expand Down
465 changes: 465 additions & 0 deletions docs/zh_cn/advanced_tutorials/config.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/zh_cn/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
'myst_parser',
'sphinx_copybutton',
'sphinx.ext.autodoc.typehints',
'sphinx_tabs.tabs',
] # yapf: disable
autodoc_typehints = 'description'
myst_heading_anchors = 4
Expand Down
Loading