open-mmlab/mmagic là dự án Jupyter Notebook với 7.5k sao trong nhóm AI Tools. 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.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
An advanced and powerful inpainting algorithm named PowerPaint is released in our repository. Click to View
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.
Text2Image / Diffusion
ControlNet
DreamBooth
Stable Diffusion
Disco Diffusion
GLIDE
Guided Diffusion
3D-aware Generation
EG3D
Image Restoration
NAFNet
Restormer
SwinIR
Image Colorization
InstColorization
2. Magic Diffusion Model
For the Diffusion Model, we provide the following "magic" :
Support image generation based on Stable Diffusion and Disco Diffusion.
Support Finetune methods such as Dreambooth and DreamBooth LoRA.
Support controllability in text-to-image generation using ControlNet.
Support acceleration and optimization strategies based on xFormers to improve training and inference efficiency.
Support video generation based on MultiFrame Render.
Support calling basic models and sampling strategies through DiffuserWrapper.
3. Upgraded Framework
By using MMEngine and MMCV of OpenMMLab 2.0 framework, MMagic has upgraded in the following new features:
Refactor DataSample to support the combination and splitting of batch dimensions.
Refactor DataPreprocessor and unify the data format for various tasks during training and inference.
Refactor MultiValLoop and MultiTestLoop, supporting the evaluation of both generation-type metrics (e.g. FID) and reconstruction-type metrics (e.g. SSIM), and supporting the evaluation of multiple datasets at once.
Support visualization on local files or using tensorboard and wandb.
Support for 33+ algorithms accelerated by Pytorch 2.0.
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
🙌 Contributing
🛠️ Installation
📊 Model Zoo
🤝 Acknowledgement
🖊️ Citation
🎫 License
🏗️ ️OpenMMLab Family
📖 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.
MMagic provides state-of-the-art generative models to process, edit and synthesize images and videos.
Powerful and Popular Applications
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!
Efficient Framework
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
The best practice on our main branch works with Python 3.9+ and PyTorch 2.0+.
🔝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:
SDXL is contributed by @okotaku.
AnimateDiff is contributed by @ElliotQi.
ViCo is contributed by @FerryHuang.
DragGan is contributed by @qsun1.
FastComposer is contributed by @xiaomile.
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.
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
SNGAN/Projection GAN (ICLR'2018)
SAGAN (ICML'2019)
BIGGAN/BIGGAN-DEEP (ICLR'2018)
DCGAN (ICLR'2016)
WGAN-GP (NeurIPS'2017)
LSGAN (ICCV'2017)
GGAN (ArXiv'2017)
PGGAN (ICLR'2018)
SinGAN (ICCV'2019)
StyleGANV1 (CVPR'2019)
StyleGANV2 (CVPR'2019)
StyleGANV3 (NeurIPS'2021)
DragGan (2023)
SwinIR (ICCVW'2021)
NAFNet (ECCV'2022)
Restormer (CVPR'2022)
SRCNN (TPAMI'2015)
SRResNet&SRGAN (CVPR'2016)
EDSR (CVPR'2017)
ESRGAN (ECCV'2018)
RDN (CVPR'2018)
DIC (CVPR'2020)
TTSR (CVPR'2020)
GLEAN (CVPR'2021)
LIIF (CVPR'2021)
Real-ESRGAN (ICCVW'2021)
Video Super-Resolution
Video Interpolation
Image Colorization
Image Translation
EDVR (CVPR'2018)
TOF (IJCV'2019)
TDAN (CVPR'2020)
BasicVSR (CVPR'2021)
IconVSR (CVPR'2021)
BasicVSR++ (CVPR'2022)
RealBasicVSR (CVPR'2022)
TOFlow (IJCV'2019)
CAIN (AAAI'2020)
FLAVR (CVPR'2021)
InstColorization (CVPR'2020)
Pix2Pix (CVPR'2017)
CycleGAN (ICCV'2017)
Inpainting
Matting
Text-to-Image(Video)
3D-aware Generation
Global&Local (ToG'2017)
DeepFillv1 (CVPR'2018)
PConv (ECCV'2018)
DeepFillv2 (CVPR'2019)
AOT-GAN (TVCG'2019)
Stable Diffusion Inpainting (CVPR'2022)
DIM (CVPR'2017)
IndexNet (ICCV'2019)
GCA (AAAI'2020)
GLIDE (NeurIPS'2021)
Guided Diffusion (NeurIPS'2021)
Disco-Diffusion (2022)
Stable-Diffusion (2022)
DreamBooth (2022)
Textual Inversion (2022)
Prompt-to-Prompt (2022)
Null-text Inversion (2022)
ControlNet (2023)
ControlNet Animation (2023)
Stable Diffusion XL (2023)
AnimateDiff (2023)
ViCo (2023)
FastComposer (2023)
PowerPaint (2023)
EG3D (CVPR'2022)
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
MMEngine: OpenMMLab foundational library for training deep learning models.
MMCV: OpenMMLab foundational library for computer vision.
MIM: MIM installs OpenMMLab packages.
MMPreTrain: OpenMMLab Pre-training Toolbox and Benchmark.
MMDetection: OpenMMLab detection toolbox and benchmark.
MMDetection3D: OpenMMLab's next-generation platform for general 3D object detection.
MMRotate: OpenMMLab rotated object detection toolbox and benchmark.
MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark.
MMOCR: OpenMMLab text detection, recognition, and understanding toolbox.
MMPose: OpenMMLab pose estimation toolbox and benchmark.
MMHuman3D: OpenMMLab 3D human parametric model toolbox and benchmark.
MMSelfSup: OpenMMLab self-supervised learning toolbox and benchmark.
MMRazor: OpenMMLab model compression toolbox and benchmark.
MMFewShot: OpenMMLab fewshot learning toolbox and benchmark.
MMAction2: OpenMMLab's next-generation action understanding toolbox and benchmark.
MMTracking: OpenMMLab video perception toolbox and benchmark.
MMFlow: OpenMMLab optical flow toolbox and benchmark.
MMagic: OpenMMLab Multimodal Advanced, Generative, and Intelligent Creation Toolbox.
open-mmlab/mmagic thuộc nhóm AI Tools trên TopGit, cùng 19 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về open-mmlab/mmagic ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/open-mmlab/mmagic là nguồn chính thức.
open-mmlab/mmagic có bao nhiêu sao?
open-mmlab/mmagic có 7.5k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/open-mmlab/mmagic. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
open-mmlab/mmagic có phải mã nguồn mở không?
Có — open-mmlab/mmagic phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/open-mmlab/mmagic.
open-mmlab/mmagic còn đang phát triển không?
Commit gần nhất trên open-mmlab/mmagic là 2.2 năm trước (theo timestamp GitHub). Repo có 1.1k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
open-mmlab/mmagic dùng license gì?
open-mmlab/mmagic phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
open-mmlab/mmagic là gì?
open-mmlab/mmagic (open-mmlab/mmagic) là dự án Jupyter Notebook trên GitHub. Theo mô tả gốc: 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.
open-mmlab/mmagic viết bằng ngôn ngữ gì?
open-mmlab/mmagic chủ yếu viết bằng Jupyter Notebook. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
mmagic có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về mmagic.