# mmediting
**Repository Path**: open-mmlab/mmediting
## Basic Information
- **Project Name**: mmediting
- **Description**: 底层视觉工具箱,集成了超分辨率、视频插帧、补图、抠图等方向大量
SOTA 模型,架构灵活易于二次开发。
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 34
- **Forks**: 14
- **Created**: 2022-04-18
- **Last Updated**: 2025-05-23
## Categories & Tags
**Categories**: cv
**Tags**: None
## README
[](https://pypi.org/project/mmedit/)
[](https://mmediting.readthedocs.io/zh_CN/1.x/)
[](https://github.com/open-mmlab/mmediting/actions)
[](https://codecov.io/gh/open-mmlab/mmediting)
[](https://github.com/open-mmlab/mmediting/blob/1.x/LICENSE)
[](https://github.com/open-mmlab/mmediting/issues)
[](https://github.com/open-mmlab/mmediting/issues)
[📘使用文档](https://mmediting.readthedocs.io/en/1.x/) |
[🛠️安装教程](https://mmediting.readthedocs.io/zh_CN/1.x/get_started/install.html) |
[📊模型库](https://mmediting.readthedocs.io/zh_CN/1.x/model_zoo/overview.html) |
[🆕更新记录](https://mmediting.readthedocs.io/zh_CN/1.x/changelog.html) |
[🚀进行中的项目](https://github.com/open-mmlab/mmediting/projects) |
[🤔提出问题](https://github.com/open-mmlab/mmediting/issues)
[English](README.md) | 简体中文
## 🚀 最新进展
### 最新的 [**MMEditing v1.0.0rc6**](https://github.com/open-mmlab/mmediting/releases/tag/v1.0.0rc6) 版本已经在 \[02/03/2023\] 发布:
- 支持了 Inpainting 任务推理的 Gradio gui.
- 支持了图像上色、图像翻译和 GAN 模型的 inferencer.
**MMEditing** 已经支持了[MMGeneration](https://github.com/open-mmlab/mmgeneration)中的全量任务、模型、优化函数和评价指标 ,并基于[MMEngine](https://github.com/open-mmlab/mmengine)统一了各组件接口 😍。
如果想了解更多版本更新细节和历史信息,请阅读[更新日志](docs/zh_cn/changelog.md)。如果想从[旧版本](https://github.com/open-mmlab/mmediting/tree/master) MMEditing 0.x 迁移到新版本 MMEditing 1.x,请阅读[迁移文档](docs/zh_cn/migration/overview.md)。
## 📄 目录
- [📖 介绍](#📖-介绍)
- [🙌 参与贡献](#🙌-参与贡献)
- [🛠️ 安装](#🛠️-安装)
- [📊 模型库](#📊-模型库)
- [🤝 致谢](#🤝-致谢)
- [🖊️ 引用](#🖊️-引用)
- [🎫 许可证](#🎫-许可证)
- [🏗️ ️OpenMMLab 的其他项目](#🏗️-️openmmlab-的其他项目)
🔝返回顶部
## 📖 介绍
MMEditing 是基于 PyTorch 的图像&视频编辑和生成开源工具箱。是 [OpenMMLab](https://openmmlab.com/) 项目的成员之一。
目前 MMEditing 支持多种图像和视频的生成/编辑任务。
https://user-images.githubusercontent.com/12782558/217152698-49169038-9872-4200-80f7-1d5f7613afd7.mp4
主分支代码的最佳实践基于 **Python 3.8+** 和 **PyTorch 1.9+** 。
### ✨ 主要特性
- **SOTA**
MMEditing 提供了处理、编辑、生成图像和视频的SOTA算法。
- **强有力且流行的应用**
MMEditing 支持了流行的图像修复、图文生成、3D生成、图像修补、抠图、超分辨率和生成等任务的应用。特别是 MMEditing 支持了 GANs 的插值,投影和编辑和其他流行的应用。请用你的 GANs 尽情尝试!
- **灵活组合的模块化设计**
MMEditing 将编辑框架分解为不同的组件,并且可以通过组合不同的模块轻松地构建自定义的编辑器模型。
- **高效的分布式训练**
得益于 [MMSeparateDistributedDataParallel](https://github.com/open-mmlab/mmengine/blob/main/mmengine/model/wrappers/seperate_distributed.py), 动态模型结构的分布式训练可以轻松实现。
🔝返回顶部
## 🙌 参与贡献
越来越多社区贡献者的加入使我们的算法库日益发展。最近由社区贡献的项目包括:
- [GLIDE](projects/glide/configs/README.md) 来自 @Taited.
- [Restormer](configs/restormer/README.md) 来自 @AlexZou14.
- [SwinIR](configs/swinir/README.md) 来自 @Zdafeng.
为使向 MMEditing 中添加项目更加容易,我们开启了 [Projects](projects/README.md) 。
感谢您为改善 MMEditing 所做的所有贡献。请参阅 MMCV 中的 [CONTRIBUTING.md](https://github.com/open-mmlab/mmcv/tree/2.x/CONTRIBUTING.md) 和 MMEngine 中的 [CONTRIBUTING.md](https://github.com/open-mmlab/mmengine/blob/main/CONTRIBUTING_zh-CN.md) 以获取贡献指南。
🔝返回顶部
## 🛠️ 安装
MMEditing 依赖 [PyTorch](https://pytorch.org/),[MMEngine](https://github.com/open-mmlab/mmengine) 和 [MMCV](https://github.com/open-mmlab/mmcv),以下是安装的简要步骤。
**步骤 1.**
依照[官方教程](https://pytorch.org/get-started/locally/)安装 PyTorch 。
**步骤 2.**
使用 [MIM](https://github.com/open-mmlab/mim) 安装 MMCV 。
```
pip3 install openmim
# wait for more pre-compiled pkgs to release
mim install 'mmcv>=2.0.0rc1'
```
**步骤 3.**
从源码安装 MMEditing
```
git clone -b 1.x https://github.com/open-mmlab/mmediting.git
cd mmediting
pip3 install -e .
```
更详细的安装指南请参考 [安装指南](docs/zh_cn/get_started/install.md) 。
**开始使用**
请参考[快速运行](docs/zh_cn/get_started/quick_run.md)和[推理演示](docs/zh_cn/user_guides/inference.md)获取MMEditing的基本用法。
🔝Back to top
## 📊 模型库
支持的算法
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
|
|
|
|
|
请参考[模型库](https://mmediting.readthedocs.io/zh_CN/1.x/model_zoo/overview.html)了解详情。
🔝返回顶部
## 🤝 致谢
MMEditing 是一款由不同学校和公司共同贡献的开源项目。我们感谢所有为项目提供算法复现和新功能支持的贡献者,以及提供宝贵反馈的用户。我们希望该工具箱和基准测试可以为社区提供灵活的代码工具,供用户复现现有算法并开发自己的新模型,从而不断为开源社区提供贡献。
🔝返回顶部
## 🖊️ 引用
如果 MMEditing 对您的研究有所帮助,请按照如下 bibtex 引用它。
```bibtex
@misc{mmediting2022,
title = {{MMEditing}: {OpenMMLab} Image and Video Editing Toolbox},
author = {{MMEditing Contributors}},
howpublished = {\url{https://github.com/open-mmlab/mmediting}},
year = {2022}
}
```
🔝返回顶部
## 🎫 许可证
本项目开源自 [Apache 2.0 license](LICENSE)。
🔝返回顶部
## 🏗️ ️OpenMMLab 的其他项目
- [MMEngine](https://github.com/open-mmlab/mmengine): OpenMMLab MMEngine.
- [MMCV](https://github.com/open-mmlab/mmcv): OpenMMLab 计算机视觉基础库
- [MIM](https://github.com/open-mmlab/mim): MIM 是 OpenMMlab 项目、算法、模型的统一入口
- [MMClassification](https://github.com/open-mmlab/mmclassification): OpenMMLab 图像分类工具箱
- [MMDetection](https://github.com/open-mmlab/mmdetection): OpenMMLab 目标检测工具箱
- [MMDetection3D](https://github.com/open-mmlab/mmdetection3d): OpenMMLab 新一代通用 3D 目标检测平台
- [MMRotate](https://github.com/open-mmlab/mmrotate): OpenMMLab 旋转框检测工具箱与测试基准
- [MMSegmentation](https://github.com/open-mmlab/mmsegmentation): OpenMMLab 语义分割工具箱
- [MMOCR](https://github.com/open-mmlab/mmocr): OpenMMLab 全流程文字检测识别理解工具箱
- [MMPose](https://github.com/open-mmlab/mmpose): OpenMMLab 姿态估计工具箱
- [MMHuman3D](https://github.com/open-mmlab/mmhuman3d): OpenMMLab 人体参数化模型工具箱与测试基准
- [MMSelfSup](https://github.com/open-mmlab/mmselfsup): OpenMMLab 自监督学习工具箱与测试基准
- [MMRazor](https://github.com/open-mmlab/mmrazor): OpenMMLab 模型压缩工具箱与测试基准
- [MMFewShot](https://github.com/open-mmlab/mmfewshot): OpenMMLab 少样本学习工具箱与测试基准
- [MMAction2](https://github.com/open-mmlab/mmaction2): OpenMMLab 新一代视频理解工具箱
- [MMTracking](https://github.com/open-mmlab/mmtracking): OpenMMLab 一体化视频目标感知平台
- [MMFlow](https://github.com/open-mmlab/mmflow): OpenMMLab 光流估计工具箱与测试基准
- [MMEditing](https://github.com/open-mmlab/mmediting): OpenMMLab 图像视频编辑工具箱
- [MMGeneration](https://github.com/open-mmlab/mmgeneration): OpenMMLab 图片视频生成模型工具箱
- [MMDeploy](https://github.com/open-mmlab/mmdeploy): OpenMMLab 模型部署框架
🔝返回顶部
## 欢迎加入 OpenMMLab 社区
扫描下方的二维码可关注 OpenMMLab 团队的 [知乎官方账号](https://www.zhihu.com/people/openmmlab),加入 OpenMMLab 团队的 [官方交流 QQ 群](https://jq.qq.com/?_wv=1027&k=K0QI8ByU),或通过群主小喵加入微信官方交流群。
我们会在 OpenMMLab 社区为大家
- 📢 分享 AI 框架的前沿核心技术
- 💻 解读 PyTorch 常用模块源码
- 📰 发布 OpenMMLab 的相关新闻
- 🚀 介绍 OpenMMLab 开发的前沿算法
- 🏃 获取更高效的问题答疑和意见反馈
- 🔥 提供与各行各业开发者充分交流的平台
干货满满 📘,等你来撩 💗,OpenMMLab 社区期待您的加入 👬