CodeFormer
18,228
Stars
3,717
Forks
314
Watchers
283
Open Issues
NOASSERTION
许可证
Python
语言
2022-06-21
创建时间
2025-11-18
最近更新
项目能做什么
NeurIPS 2022 成果,基于预设码本的鲁棒盲人脸修复与图像复原算法。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center"> <img src="assets/CodeFormer_logo.png" height=110> </p> ## Towards Robust Blind Face Restoration with Codebook Lookup Transformer (NeurIPS 2022) [Paper](https://arxiv.org/abs/2206.11253) | [Project Page](https://shangchenzhou.com/projects/CodeFormer/) | [Video](https://youtu.be/d3VDpkXlueI) <a href="https://colab.research.google.com/drive/1m52PNveE4PBhYrecj34cnpEeiHcC5LTb?usp=sharing"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="google colab logo"></a> [](https://huggingface.co/spaces/sczhou/CodeFormer) [](https://replicate.com/sczhou/codeformer) [](https://openxlab.org.cn/apps/detail/ShangchenZhou/CodeFormer)  [Shangchen Zhou](https://shangchenzhou.com/), [Kelvin C.K. Chan](https://ckkelvinchan.github.io/), [Chongyi Li](https://li-chongyi.github.io/), [Chen Change Loy](https://www.mmlab-ntu.com/person/ccloy/) S-Lab, Nanyang Technological University <img src="assets/network.jpg" width="800px"/> :star: If CodeFormer is helpful to your images or projects, please help star this repo. Thanks! :hugs: ### Update - **2023.07.20**: Integrated to :panda_face: [OpenXLab](https://openxlab.org.cn/apps). Try out online demo! [](https://openxlab.org.cn/apps/detail/ShangchenZhou/CodeFormer) - **2023.04.19**: :whale: Training codes and config files are public available now. - **2023.04.09**: Add features of inpainting and colorization for cropped and aligned face images. - **2023.02.10**: Include `dlib` as a new face detector option, it produces more accurate face identity. - **2022.10.05**: Support video input `--input_path [YOUR_VIDEO.mp4]`. Try it to enhance your videos! :clapper: - **2022.09.14**: Integrated to :hugs: [Hugging Face](https://huggingface.co/spaces). Try out online demo! [](https://huggingface.co/spaces/sczhou/CodeFormer) - **2022.09.09**: Integrated to :rocket: [Replicate](https://replicate.com/explore). Try out online demo! [](https://replicate.com/sczhou/codeformer) - [**More**](docs/history_changelog.md) ### TODO - [x] Add training code and config files - [x] Add checkpoint and script for face inpainting - [x] Add checkpoint and script for face colorization - [x] ~~Add background image enhancement~~ #### :panda_face: Try Enhancing Old Photos / Fixing AI-arts [<img src="assets/imgsli_1.jpg" height="226px"/>](https://imgsli.com/MTI3NTE2) [<img src="assets/imgsli_2.jpg" height="226px"/>](https://imgsli.com/MTI3NTE1) [<img阅读完整原文
商业机会分析 规则生成(AI 未配置)
综合评分 42.7 分。该项目在“个人可实施性”维度得 20 分,“付费可能性”维度得 20.0 分,差异化空间 100.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 CodeFormer 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| blopker/codebook | 中文介绍暂未生成 An unholy spell checker for code |
929 | Rust |
| patrickmineault/codebook | 中文介绍暂未生成 The Good Research Code Handbook |
661 | Python |
| fudan-generative-vision/DicFace | 中文介绍暂未生成 [ICCV2025 Highlight] DicFace: Dirichlet-Constrained Variatio |
466 | Python |
| t3nsor/codebook | 中文介绍暂未生成 Reference material for ACM-ICPC |
464 | C++ |
| RQ-Wu/RIDCP_dehazing | 中文介绍暂未生成 [CVPR 2023] | RIDCP: Revitalizing Real Image Dehazing via Hi |
281 | Python |
| worldbank/metadata-editor | 中文介绍暂未生成 Web tool to edit, validate, and manage metadata for Microdat |
279 | PHP |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2022-06-21,最近推送 2025-11-18,发布过 1 个 Release |
| 社区活跃 | Star 18,228 / Fork 3,717 / Issue 283(数据支持,可自行核实) |
| 许可证 | NOASSERTION |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/sczhou/CodeFormer.git cd CodeFormer # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。