open-mmlab/mmagic

★ 7,466⑂ 0

OpenMMLab Multimodal Advanced, Generative, and Intelligent Creation Toolbox. Unlock the magic 🪄: Generative-AI (AIGC), easy-to-use APIs, awsome model zoo, diffusion models

About open-mmlab/mmagic

open-mmlab/mmagic is an open-source project on GitHub, mainly written in Jupyter Notebook. OpenMMLab Multimodal Advanced, Generative, and Intelligent Creation Toolbox. Unlock the magic 🪄: Generative-AI (AIGC), easy-to-use APIs, awsome model zoo It currently holds 7,466 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Image Projects board and on the AI AI Image Projects list.

GitHub Repository Details

Repository open-mmlab/mmagic · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

 
Multimodal Advanced, Generative, and Intelligent Creation (MMagic [em'mædʒɪk])
 
OpenMMLab website HOT      OpenMMLab platform TRY IT OUT
 

PyPI docs badge codecov license open issues issue resolution Open in OpenXLab

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

English | 简体中文

https://github.com/open-mmlab/mmagic/blob/HEAD/ https://github.com/open-mmlab/mmagic/blob/HEAD/ https://github.com/open-mmlab/mmagic/blob/HEAD/ https://github.com/open-mmlab/mmagic/blob/HEAD/ https://github.com/open-mmlab/mmagic/blob/HEAD/ https://github.com/open-mmlab/mmagic/blob/HEAD/ https://github.com/open-mmlab/mmagic/blob/HEAD/

🚀 What's New

New release MMagic v1.2.0 \[18/12/2023\]:

We are excited to announce the release of MMagic v1.0.0 that inherits from MMEditing and MMGeneration.

After iterative updates with OpenMMLab 2.0 framework and merged with MMGeneration, MMEditing has become a powerful tool that supports low-level algorithms based on both GAN and CNN. Today, MMEditing embraces Generative AI and transforms into a more advanced and comprehensive AIGC toolkit: MMagic (Multimodal Advanced, Generative, and Intelligent Creation). MMagic will provide more agile and flexible experimental support for researchers and AIGC enthusiasts, and help you on your AIGC exploration journey.

We highlight the following new features.

1. New Models

We support 11 new models in 4 new tasks.

2. Magic Diffusion Model

For the Diffusion Model, we provide the following "magic" :

3. Upgraded Framework

By using MMEngine and MMCV of OpenMMLab 2.0 framework, MMagic has upgraded in the following new features:

MMagic has supported all the tasks, models, metrics, and losses in MMEditing and MMGeneration and unifies interfaces of all components based on MMEngine 😍.

Please refer to changelog.md for details and release history.

Please refer to migration documents to migrate from old version MMEditing 0.x to new version MMagic 1.x .

📄 Table of Contents

📖 Introduction

MMagic (Multimodal Advanced, Generative, and Intelligent Creation) is an advanced and comprehensive AIGC toolkit that inherits from MMEditing and MMGeneration. It is an open-source image and video editing&generating toolbox based on PyTorch. It is a part of the OpenMMLab project.

Currently, MMagic support multiple image and video generation/editing tasks.

https://user-images.githubusercontent.com/49083766/233564593-7d3d48ed-e843-4432-b610-35e3d257765c.mp4

✨ Major features

MMagic provides state-of-the-art generative models to process, edit and synthesize images and videos. MMagic supports popular and contemporary image restoration, text-to-image, 3D-aware generation, inpainting, matting, super-resolution and generation applications. Specifically, MMagic supports fine-tuning for stable diffusion and many exciting diffusion's application such as ControlNet Animation with SAM. MMagic also supports GAN interpolation, GAN projection, GAN manipulations and many other popular GAN’s applications. It’s time to begin your AIGC exploration journey! By using MMEngine and MMCV of OpenMMLab 2.0 framework, MMagic decompose the editing framework into different modules and one can easily construct a customized editor framework by combining different modules. We can define the training process just like playing with Legos and provide rich components and strategies. In MMagic, you can complete controls on the training process with different levels of APIs. With the support of MMSeparateDistributedDataParallel, distributed training for dynamic architectures can be easily implemented.

✨ Best Practice

🔝Back to Table of Contents

🙌 Contributing

More and more community contributors are joining us to make our repo better. Some recent projects are contributed by the community including:

Projects is opened to make it easier for everyone to add projects to MMagic.

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

🔝Back to Table of Contents

🛠️ Installation

MMagic depends on PyTorch, MMEngine and MMCV. Below are quick steps for installation.

Step 1. Install PyTorch following official instructions.

Step 2. Install MMCV, MMEngine and MMagic with MIM.

pip3 install openmim
mim install mmcv>=2.0.0
mim install mmengine
mim install mmagic

Step 3. Verify MMagic has been successfully installed.

cd ~
python -c "import mmagic; print(mmagic.__version__)"

Example output: 1.0.0

Getting Started

After installing MMagic successfully, now you are able to play with MMagic! To generate an image from text, you only need several lines of codes by MMagic!

from mmagic.apis import MMagicInferencer
sd_inferencer = MMagicInferencer(model_name='stable_diffusion')
text_prompts = 'A panda is having dinner at KFC'
result_out_dir = 'output/sd_res.png'
sd_inferencer.infer(text=text_prompts, result_out_dir=result_out_dir)

Please see quick run and inference for the basic usage of MMagic.

Install MMagic from source

You can also experiment on the latest developed version rather than the stable release by installing MMagic from source with the following commands:

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

Please refer to installation for more detailed instruction.

🔝Back to Table of Contents

📊 Model Zoo

Supported algorithms
Conditional GANs Unconditional GANs Image Restoration Image Super-Resolution
Video Super-Resolution Video Interpolation Image Colorization Image Translation
Inpainting Matting Text-to-Image(Video) 3D-aware Generation

Please refer to model_zoo for more details.

🔝Back to Table of Contents

🤝 Acknowledgement

MMagic is an open source project that is contributed by researchers and engineers from various colleges and companies. We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and develop their own new methods.

We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks. Thank you all!

🔝Back to Table of Contents

🖊️ Citation

If MMagic is helpful to your research, please cite it as below.

@misc{mmagic2023,
    title = {{MMagic}: {OpenMMLab} Multimodal Advanced, Generative, and Intelligent Creation Toolbox},
    author = {{MMagic Contributors}},
    howpublished = {\url{https://github.com/open-mmlab/mmagic}},
    year = {2023}
}
@misc{mmediting2022,
    title = {{MMEditing}: {OpenMMLab} Image and Video Editing Toolbox},
    author = {{MMEditing Contributors}},
    howpublished = {\url{https://github.com/open-mmlab/mmediting}},
    year = {2022}
}

🔝Back to Table of Contents

🎫 License

This project is released under the Apache 2.0 license. Please refer to LICENSES for the careful check, if you are using our code for commercial matters.

🔝Back to Table of Contents

🏗️ ️OpenMMLab Family

🔝Back to Table of Contents

GitHub Stars & Activity

7,466Stars
0Forks
0Open issues
Jupyter NotebookLanguage

GitHub Popularity

GitHub stars7,466
Forks0
Open issues0
Primary languageJupyter Notebook
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

microsoft / AI-For-Beginners

Jupyter Notebook★ 68,541⑂ 0
2

AccumulateMore / CV

Jupyter Notebook★ 23,714⑂ 0
3

spmallick / learnopencv

Jupyter Notebook★ 23,152⑂ 0
4

ShusenTang / Dive-into-DL-PyTorch

Jupyter Notebook★ 19,500⑂ 0
5

virgili0 / Virgilio

Jupyter Notebook★ 14,982⑂ 0
6

NVIDIA / DeepLearningExamples

Jupyter Notebook★ 14,843⑂ 0
7

advimman / lama

Jupyter Notebook★ 10,260⑂ 0
8

microsoft / computervision-recipes

Jupyter Notebook★ 9,880⑂ 0

More AI Rankings