open-mmlab / mmagic

OpenMMLab Multimodal Advanced, Generative, and Intelligent Creation Toolbox. Unlock the magic 🪄: Generative-AI (AIGC), easy-to-use APIs, awsome model zoo, diffusion models, for text-to-image generation, image/video restoration/enhancement, etc.
https://mmagic.readthedocs.io/en/latest/
Apache License 2.0
6.95k stars 1.06k forks source link

[CodeCamp2023-240]Adding support for Consistency Models #2086

Open xiaomile opened 11 months ago

xiaomile commented 11 months ago

clean the old commit message,open a new pr for https://github.com/open-mmlab/mmagic/pull/2045

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Please describe the motivation of this PR and the goal you want to achieve through this PR.

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repositories? If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

Submitting this pull request means that,

Before PR:

After PR:

codecov[bot] commented 11 months ago

Codecov Report

Attention: Patch coverage is 77.19088% with 190 lines in your changes are missing coverage. Please review.

Project coverage is 78.38%. Comparing base (ef68f11) to head (2659b89). Report is 17 commits behind head on main.

:exclamation: Current head 2659b89 differs from pull request most recent head b9c5000. Consider uploading reports for the commit b9c5000 to get more accurate results

Files Patch % Lines
...itors/consistency_models/consistencymodel_utils.py 74.86% 60 Missing and 30 partials :warning:
...ors/consistency_models/consistencymodel_modules.py 79.62% 53 Missing and 13 partials :warning:
...els/editors/consistency_models/consistencymodel.py 76.87% 16 Missing and 18 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2086 +/- ## ========================================== + Coverage 75.70% 78.38% +2.68% ========================================== Files 441 445 +4 Lines 32295 33189 +894 Branches 5082 5210 +128 ========================================== + Hits 24449 26016 +1567 + Misses 6775 5888 -887 - Partials 1071 1285 +214 ``` | [Flag](https://app.codecov.io/gh/open-mmlab/mmagic/pull/2086/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/open-mmlab/mmagic/pull/2086/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab) | `78.38% <77.19%> (+2.68%)` | :arrow_up: | 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=open-mmlab#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.