opendilab / DI-engine

OpenDILab Decision AI Engine. The Most Comprehensive Reinforcement Learning Framework B.P.
https://di-engine-docs.readthedocs.io
Apache License 2.0
2.82k stars 352 forks source link

feature(zjow): add qgpo policy for new DI-engine pipeline #757

Closed zjowowen closed 5 months ago

zjowowen commented 7 months ago

Add qgpo policy for new DI-engine pipeline based on the implementation of repo https://github.com/ChenDRAG/CEP-energy-guided-diffusion.

codecov[bot] commented 6 months ago

Codecov Report

Attention: 739 lines in your changes are missing coverage. Please review.

Comparison is base (acd23e5) 76.82% compared to head (8002cd6) 75.80%. Report is 3 commits behind head on main.

:exclamation: Current head 8002cd6 differs from pull request most recent head e28b1c5. Consider uploading reports for the commit e28b1c5 to get more accurate results

Files Patch % Lines
...ng/torch_utils/diffusion_SDE/dpm_solver_pytorch.py 6.35% 427 Missing :warning:
ding/model/template/qgpo.py 20.49% 128 Missing :warning:
ding/policy/qgpo.py 24.09% 63 Missing :warning:
ding/framework/middleware/functional/evaluator.py 1.61% 61 Missing :warning:
.../framework/middleware/functional/data_processor.py 10.71% 50 Missing :warning:
ding/torch_utils/network/res_block.py 27.27% 8 Missing :warning:
ding/framework/middleware/functional/logger.py 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #757 +/- ## ========================================== - Coverage 76.82% 75.80% -1.03% ========================================== Files 676 679 +3 Lines 54328 55272 +944 ========================================== + Hits 41737 41897 +160 - Misses 12591 13375 +784 ``` | [Flag](https://app.codecov.io/gh/opendilab/DI-engine/pull/757/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opendilab) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/opendilab/DI-engine/pull/757/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opendilab) | `75.80% <12.95%> (-1.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opendilab#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.