Skip to main content

OpenMMLab Image and Video Editing Toolbox and Benchmark

Project description

🚀 What's New

New release MMEditing v1.0.0rc7 [07/04/2023]:

  • Support DiffuserWrapper
  • Support ControlNet (training and inference).
  • Support PyTorch 2.0 (successfully compile 33+ models on 'inductor' backend).

MMEditing has supported all the tasks, models, metrics, and losses in 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 our brand new 1.x version.

📄 Table of Contents

🔝Back to top

📖 Introduction

MMEditing is an open-source image and video editing&generating toolbox based on PyTorch. It is a part of the OpenMMLab project.

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

https://user-images.githubusercontent.com/12782558/217152698-49169038-9872-4200-80f7-1d5f7613afd7.mp4

The best practice on our main branch works with Python 3.8+ and PyTorch 1.9+.

✨ Major features

  • State of the Art

    MMEditing provides state-of-the-art generative models to process, edit and synthesize images and videos.

  • Powerful and Popular Applications

    MMEditing supports popular and contemporary image restoration, text-to-image, 3D-aware generation, inpainting, matting, super-resolution and generation applications. Specifically, MMEditing supports GAN interpolation, GAN projection, GAN manipulations and many other popular GAN’s applications. It’s time to play with your GANs!

  • New Modular Design for Flexible Combination

    We decompose the editing framework into different modules and one can easily construct a customized editor framework by combining different modules. Specifically, a new design for complex loss modules is proposed for customizing the links between modules, which can achieve flexible combinations among different modules.(Tutorial for losses)

  • Efficient Distributed Training

    With the support of MMSeparateDistributedDataParallel, distributed training for dynamic architectures can be easily implemented.

🔝Back to top

🙌 Contributing

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

  • GLIDE is contributed by @Taited.
  • Restormer is contributed by @AlexZou14.
  • SwinIR is contributed by @Zdafeng.

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

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

🔝Back to top

🛠️ Installation

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

Step 1. Install PyTorch following official instructions.

Step 2. Install MMCV with MIM.

pip3 install openmim
# wait for more pre-compiled pkgs to release
mim install 'mmcv>=2.0.0'

Step 3. Install MMEditing from source.

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

Please refer to installation for more detailed instruction.

Getting Started

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

🔝Back to top

📊 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 3D-aware Generation

Please refer to model_zoo for more details.

🔝Back to top

🤝 Acknowledgement

MMEditing 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 top

🖊️ Citation

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

@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 top

🎫 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 top

🏗️ ️OpenMMLab Family

  • MMEngine: OpenMMLab foundational library for training deep learning models.
  • MMCV: OpenMMLab foundational library for computer vision.
  • MIM: MIM installs OpenMMLab packages.
  • MMClassification: OpenMMLab image classification 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.
  • MMEditing: OpenMMLab image and video editing toolbox.
  • MMGeneration: OpenMMLab image and video generative models toolbox.
  • MMDeploy: OpenMMLab model deployment framework.

🔝Back to top

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mmedit-1.0.0rc7.tar.gz (735.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mmedit-1.0.0rc7-py2.py3-none-any.whl (1.2 MB view details)

Uploaded Python 2Python 3

File details

Details for the file mmedit-1.0.0rc7.tar.gz.

File metadata

  • Download URL: mmedit-1.0.0rc7.tar.gz
  • Upload date:
  • Size: 735.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for mmedit-1.0.0rc7.tar.gz
Algorithm Hash digest
SHA256 899db3cc32ba8ca443a303b196755bf8725203d3afd0cc9aaef2894154058f81
MD5 ad1b84ca1cc59f43a72e5ece69e56762
BLAKE2b-256 06ab8e883c2a9047997a6833cdec1a6f6169778eb6e6c556e3060641459c54b0

See more details on using hashes here.

File details

Details for the file mmedit-1.0.0rc7-py2.py3-none-any.whl.

File metadata

  • Download URL: mmedit-1.0.0rc7-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for mmedit-1.0.0rc7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6c00882fe7a23961fd958d4d38383d503076de3ead0fdcf836a55c69e9b80d5b
MD5 17c7e552737ca92d4f99524a5142358e
BLAKE2b-256 9b4a78f079ba6c124ae484e7eece6da0ccf661187cd744e1e3dbf85c31765ded

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page