Home

Awesome

<div align="center"> <img src="https://user-images.githubusercontent.com/12726765/114528756-de55af80-9c7b-11eb-94d7-d3224ada1585.png" width="400"/> <div>&nbsp;</div> <div align="center"> <b><font size="5">OpenMMLab website</font></b> <sup> <a href="https://openmmlab.com"> <i><font size="4">HOT</font></i> </a> </sup> &nbsp;&nbsp;&nbsp;&nbsp; <b><font size="5">OpenMMLab platform</font></b> <sup> <a href="https://platform.openmmlab.com"> <i><font size="4">TRY IT OUT</font></i> </a> </sup> </div> <div>&nbsp;</div> </div>

PyPI docs badge codecov license open issues issue resolution

📘Documentation | 🛠️Installation | 👀Model Zoo | 🆕Update News | 🚀Ongoing Projects | 🤔Reporting Issues

English | 简体中文

What's New

MMGeneration has been merged in MMEditing. And we have supported new generation tasks and models. We highlight the following new features:

Introduction

MMGeneration is a powerful toolkit for generative models, especially for GANs now. It is based on PyTorch and MMCV. The master branch works with PyTorch 1.5+.

<div align="center"> <img src="https://user-images.githubusercontent.com/12726765/114534478-9a65a900-9c81-11eb-8087-de8b6816eed8.png" width="800"/> </div>

Major Features

<table> <thead> <tr> <td> <div align="center"> <b> Training Visualization</b> <br/> <img src="https://user-images.githubusercontent.com/12726765/114509105-b6f4e780-9c67-11eb-8644-110b3cb01314.gif" width="200"/> </div></td> <td> <div align="center"> <b> GAN Interpolation</b> <br/> <img src="https://user-images.githubusercontent.com/12726765/114679300-9fd4f900-9d3e-11eb-8f37-c36a018c02f7.gif" width="200"/> </div></td> <td> <div align="center"> <b> GAN Projector</b> <br/> <img src="https://user-images.githubusercontent.com/12726765/114524392-c11ee200-9c77-11eb-8b6d-37bc637f5626.gif" width="200"/> </div></td> <td> <div align="center"> <b> GAN Manipulation</b> <br/> <img src="https://user-images.githubusercontent.com/12726765/114523716-20302700-9c77-11eb-804e-327ae1ca0c5b.gif" width="200"/> </div></td> </tr> </thead> </table>

Highlight

Changelog

v0.7.3 was released on 14/04/2023. Please refer to changelog.md for details and release history.

Installation

MMGeneration depends on PyTorch and MMCV. Below are quick steps for installation.

Step 1. Install PyTorch following official instructions, e.g.

pip3 install torch torchvision

Step 2. Install MMCV with MIM.

pip3 install openmim
mim install mmcv-full

Step 3. Install MMGeneration from source.

git clone https://github.com/open-mmlab/mmgeneration.git
cd mmgeneration
pip3 install -e .

Please refer to get_started.md for more detailed instruction.

Getting Started

Please see get_started.md for the basic usage of MMGeneration. docs/en/quick_run.md can offer full guidance for quick run. For other details and tutorials, please go to our documentation.

ModelZoo

These methods have been carefully studied and supported in our frameworks:

<details open> <summary>Unconditional GANs (click to collapse)</summary> </details> <details open> <summary>Conditional GANs (click to collapse)</summary> </details> <details open> <summary>Tricks for GANs (click to collapse)</summary> </details> <details open> <summary>Image2Image Translation (click to collapse)</summary> </details> <details open> <summary>Internal Learning (click to collapse)</summary> </details> <details open> <summary>Denoising Diffusion Probabilistic Models (click to collapse)</summary> </details>

Related-Applications

Contributing

We appreciate all contributions to improve MMGeneration. Please refer to CONTRIBUTING.md in MMCV for more details about the contributing guideline.

Citation

If you find this project useful in your research, please consider cite:

@misc{2021mmgeneration,
    title={{MMGeneration}: OpenMMLab Generative Model Toolbox and Benchmark},
    author={MMGeneration Contributors},
    howpublished = {\url{https://github.com/open-mmlab/mmgeneration}},
    year={2021}
}

License

This project is released under the Apache 2.0 license. Some operations in MMGeneration are with other licenses instead of Apache2.0. Please refer to LICENSES.md for the careful check, if you are using our code for commercial matters.

Projects in OpenMMLab