299 Commits

Author SHA1 Message Date
Tingquan Gao
5d06a88a36 Revert "refactor: simplify engine"
This reverts commit 376d83d46e54a03e96477d707a9d6addb8fee756.
2023-03-14 16:47:13 +08:00
Tingquan Gao
6aabb94d8c Revert "refactor: add ClassModel to unify model forward interface"
This reverts commit 75a20ba5574340fa5742eba8e41aebe4de6c5eb8.
2023-03-14 16:47:13 +08:00
Tingquan Gao
e7e4f68b5c Revert "refactor: build_train_func & build_eval_func"
This reverts commit 6bed0f5707e58dc02d71d3ea335a55cd1a454264.
2023-03-14 16:47:13 +08:00
Tingquan Gao
f2fc43baeb Revert "refactor: mv all dataloaders to engine.dataloader_dict"
This reverts commit 284e2a67564d4b1f5f4a9c04c7c1ab0e8d3ada75.
2023-03-14 16:47:13 +08:00
Tingquan Gao
a1e840e0da Revert "refactor: iter_per_epoch -> max_iter"
This reverts commit a38e42f644fcba8b60a9672762211b6f7054b290.
2023-03-14 16:47:13 +08:00
Tingquan Gao
0efda2c75e Revert "refactor: simpfy engine.train()"
This reverts commit fad5c8e348f748f047508226c3c23335874ef9dc.
2023-03-14 16:47:13 +08:00
Tingquan Gao
5a4ee1aec4 Revert "refactor"
This reverts commit 0e28a39da3952d10efaba71b1329459bb4df9db2.
2023-03-14 16:47:13 +08:00
Tingquan Gao
f42719afbb Revert "replace the arg engine with config"
This reverts commit f525cea006c66b11e6fee69b2088d0adc08ca57f.
2023-03-14 16:47:13 +08:00
Tingquan Gao
7243f1429b Revert "rm codes for compatibility with old version"
This reverts commit 6e77bd6cd5f154d448b0c86e29ff1179b30f2755.
2023-03-14 16:47:13 +08:00
Tingquan Gao
56e8c5a992 Revert "mv model_saver to __init__()"
This reverts commit 0d7e595fc79dab16c96d8df75c428a0aa50050d1.
2023-03-14 16:47:13 +08:00
Tingquan Gao
f1a7a22a34 Revert "mv some attrs to __init__()"
This reverts commit 73e2cde617df2a13ffe647d1fceb5ab4ec967f8b.
2023-03-14 16:47:13 +08:00
Tingquan Gao
339be96ef5 Revert "refactor"
This reverts commit 187f38ebdd63b0adae2abf72038dc4fb4fe4125c.
2023-03-14 16:47:13 +08:00
Tingquan Gao
915dde176a Revert "refactor: rm train and eval from engine"
This reverts commit 5a6fe171a7cfab842adc6a744f11a2e24deb5384.
2023-03-14 16:47:13 +08:00
Tingquan Gao
aa52682c55 Revert "rm amp code from train and eval & use decorator for amp training"
This reverts commit d3941dc1e9628fa7cc83de7c3a6da3dfcd03b5de.
2023-03-14 16:47:13 +08:00
Tingquan Gao
85e200edb6 Revert "refactor"
This reverts commit 32593b63751b922e17b59384ed64654e6fcef42d.
2023-03-14 16:47:13 +08:00
Tingquan Gao
03795249c1 Revert "revert for running"
This reverts commit d3374e897e162053d93a20c21142135c3e7ee11c.
2023-03-14 16:47:13 +08:00
Tingquan Gao
8002ccf4b6 Revert "support ShiTu"
This reverts commit 9beb154bc3d082f521b05df49d538f93d5e5c0d4.
2023-03-14 16:47:13 +08:00
Tingquan Gao
7865207096 Revert "revert for running"
This reverts commit 392b75b1acac742b74e808353059d0281df26dcc.
2023-03-14 16:47:13 +08:00
Tingquan Gao
7d41d24ce3 Revert "support Static"
This reverts commit c30df630356604fe0846de769d92a04d0130af61.
2023-03-14 16:47:13 +08:00
Tingquan Gao
b47fa5f50e Revert "debug"
This reverts commit 58daf805a9e206d03f2a49bed3cb90a56c85b1f3.
2023-03-14 16:47:13 +08:00
Tingquan Gao
578054dddd Revert "debug for infer"
This reverts commit 428edb6ff88fd5376a9262cfaec8f114f2d4327e.
2023-03-14 16:47:13 +08:00
Tingquan Gao
fee238ff8c Revert "debug"
This reverts commit 106ff27010a86e5fb6ac5a8fd31ad8335dcc90d2.
2023-03-14 16:47:13 +08:00
Tingquan Gao
0055ca2ffe Revert "debug"
This reverts commit 9e683d0d6934cae517bd73a0d3c4260cbef98e0c.
2023-03-14 16:47:13 +08:00
Tingquan Gao
876732fbcc Revert "debug"
This reverts commit ac27cb1917fcf9e7cb9ce2e817cec096369facab.
2023-03-14 16:47:13 +08:00
Tingquan Gao
97a8bb7fda Revert "debug"
This reverts commit 2a61ac65bf5d3853c3fb9a27669e265c1b1c7c01.
2023-03-14 16:47:13 +08:00
gaotingquan
2a61ac65bf debug 2023-03-10 16:56:55 +08:00
gaotingquan
ac27cb1917 debug 2023-03-10 16:56:55 +08:00
gaotingquan
9e683d0d69 debug 2023-03-10 16:56:55 +08:00
gaotingquan
106ff27010 debug 2023-03-10 16:56:55 +08:00
gaotingquan
428edb6ff8 debug for infer 2023-03-10 16:56:55 +08:00
gaotingquan
58daf805a9 debug 2023-03-10 16:56:55 +08:00
gaotingquan
c30df63035 support Static 2023-03-10 16:56:55 +08:00
gaotingquan
392b75b1ac revert for running 2023-03-10 16:56:55 +08:00
gaotingquan
9beb154bc3 support ShiTu 2023-03-10 16:56:55 +08:00
gaotingquan
d3374e897e revert for running 2023-03-10 16:56:55 +08:00
gaotingquan
32593b6375 refactor 2023-03-10 16:56:55 +08:00
gaotingquan
d3941dc1e9 rm amp code from train and eval & use decorator for amp training 2023-03-10 16:56:55 +08:00
gaotingquan
5a6fe171a7 refactor: rm train and eval from engine 2023-03-10 16:56:55 +08:00
gaotingquan
187f38ebdd refactor
1. rm Global.eval_mode
2. add Global.task
3. mv type_name to ppcls.utils
4. build dataloader, loss, metric by mode
2023-03-10 16:56:55 +08:00
gaotingquan
73e2cde617 mv some attrs to __init__() 2023-03-10 16:56:55 +08:00
gaotingquan
0d7e595fc7 mv model_saver to __init__() 2023-03-10 16:56:55 +08:00
gaotingquan
6e77bd6cd5 rm codes for compatibility with old version 2023-03-10 16:56:55 +08:00
gaotingquan
f525cea006 replace the arg engine with config 2023-03-10 16:56:55 +08:00
gaotingquan
0e28a39da3 refactor 2023-03-10 16:56:55 +08:00
gaotingquan
fad5c8e348 refactor: simpfy engine.train()
1. ModelSaver();
2. _build_ema_model();
3. _init_checkpoints();
4. others.
2023-03-10 16:56:55 +08:00
gaotingquan
a38e42f644 refactor: iter_per_epoch -> max_iter 2023-03-10 16:56:55 +08:00
gaotingquan
284e2a6756 refactor: mv all dataloaders to engine.dataloader_dict 2023-03-10 16:56:55 +08:00
gaotingquan
6bed0f5707 refactor: build_train_func & build_eval_func
1. rm engine.device and use paddle.device.get_device() instead;
2. mv some code to build_train_func or build_eval_func to simpfy engine.
2023-03-10 16:56:55 +08:00
gaotingquan
75a20ba557 refactor: add ClassModel to unify model forward interface 2023-03-10 16:56:55 +08:00
gaotingquan
376d83d46e refactor: simplify engine 2023-03-10 16:56:55 +08:00