← 开源
youyuge34

Anime-InPainting

An application tool of edge-connect, which can do anime inpainting and drawing. 动漫人物图片自动修复,去马赛克,填补,去瑕疵

ApplicationsContent creationPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.13k
Star
152
Fork
+-2
本周
1
贡献者
创建于 2019-01-07 · 更新于 2026-10-15 · 今日第 11476 名
主要开发者
youyuge34

youyuge34/Anime-InPainting 排名第 11,476,有 1,131 个星标。

同类别比较

youyuge34/Anime-InPainting 排名第 11,476,此处有 8 个同类条目;google-deepmind/dramatron 排名第 11,472。

同类别比较
名称排名指标
smthemex/ComfyUI_Sonic11,435
语言:
Python
星标数:
1,141
分叉数:
110
简介:
Sonic is a method about ' Shifting Focus to Global Audio Perception in Portrait Animation',you can use it in comfyUI
sugyan/claude-code-webui11,450
语言:
TypeScript
星标数:
1,137
分叉数:
258
简介:
Web-based interface for Claude CLI with streaming chat responses
cameraui/camera.ui11,466
语言:
TypeScript
星标数:
1,133
分叉数:
169
简介:
The modern, local-first platform for professional video surveillance.
google-deepmind/dramatron11,472
语言:
Jupyter Notebook
星标数:
1,132
分叉数:
179
简介:
Dramatron uses large language models to generate coherent scripts and screenplays.
erha19/ping-island11,482
语言:
Swift
星标数:
1,129
分叉数:
127
简介:
A Dynamic Island-style command center for managing all your AI coding agents on macOS.
kerberos-io/agent11,488
语言:
Go
星标数:
1,126
分叉数:
152
简介:
An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
Haleclipse/Claudix11,489
语言:
Vue
星标数:
1,125
分叉数:
79
简介:
Gorgeous Claude Code Extend for VS Code.
PromtEngineer/Verbi11,493
语言:
Python
星标数:
1,124
分叉数:
212
简介:
A modular voice assistant application for experimenting with state-of-the-art transcription, response generation, and text-to-speech models. Supports OpenAI, Groq, Elevanlabs, CartesiaAI, and Deepgram APIs, plus local models via Ollama. Ideal for research and development in voice technology.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Content creation
关键词Image production
星标数1,131
分叉数152
贡献者1
创建日期2019-01-07
更新日期2026-10-15
1 天星标数0
7 天星标数-2
排名11,476
上次排名19,265
排名变化7,789
7 天星标排名18,357
上次 7 天星标排名18,302
7 天星标排名变化-55
总星标排名10,158
上次总星标排名10,145
总星标排名变化-13
国家China
README 摘录

如果你想用最新的AI绘画黑科技,而非仅仅是修补图像,请点击上面的链接👆 简介 Tool效果看上面👆 | Bilibili视频教程:TO DO 这是图像修补方向最新研究成果Edge-Connect的~~阿姆斯特朗氮气加速魔改~~(优化)版。 我有个

大胆的想法🈲……别急,一步步来: **注意:以下模型是在动漫头像数据集上训练的,所以对动漫全身大图修补效果一般,想自己再训练的参考下面的训练指南** 1. 使用以下命令运行: 默认Tool: 带Edge编辑窗口的

Tool: 命令行参数帮助 PS. 你也能用tool跑别的任何模型,在这里下载原作更多模型Edge-Connect.

常见问题

记录了多少星标和分叉?

youyuge34/Anime-InPainting 有 1,131 个星标和 152 个分叉。

仓库排名是多少?

youyuge34/Anime-InPainting 排名第 11,476。

记录的语言和类别是什么?

youyuge34/Anime-InPainting 有 1,131 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

youyuge34/Anime-InPainting 与 google-deepmind/dramatron 比较,后者排名第 11,472,有 1,132 个星标。

README

Anime-InPainting: An application Tool based on Edge-Connect

	 ![Version](https://img.shields.io/badge/version-0.2-brightgreen.svg?style=flat-square) 
	 ![Status](https://img.shields.io/badge/status-Release-gold.svg?style=flat-square) 
	 ![Platform](https://img.shields.io/badge/platform-win | linux-lightgrey.svg?style=flat-square) 
	 ![PyTorch](https://img.shields.io/badge/PyTorch version-1.0-blue.svg?style=flat-square) 
	 ![License](https://img.shields.io/badge/License-CC BY·NC 4.0-green.svg?style=flat-square) 

English | 中文版介绍

Important

2019.3.27 Update:
Our latest drawing method PI-REC is more powerful.
Take a look on it, and I'm sure it won't disappoint you.

Tool show time 🏳️‍🌈

Outputs

Tool operation

Introduction:

This is an optimized application tool which has a frontend based on Opencv, whose backend used Edge-Connect. Make sure you have read their awesome work and license thoroughly. Compared with the original work, this project has such improvements :

  • Add tool application modes
  • Optimize the training phase
    • Auto-save and auto-load latest weights files
    • Add a fast training phase combined with origin phase 2 and 3
  • bugs fixed (most of them are merged into the original work)
  • Add utility files
  • Add configs in config.yml
    • PRINT_FREQUENCY
    • DEVICE : cpu or gpu
  • ... ...

You can do the amazing Anime inpainting conveniently here.

And detailed training manual is released. You may train your own dataset smoothly now.

Prerequisites

  • Python 3
  • PyTorch 1.0 (0.4 is not supported)
  • NVIDIA GPU + CUDA cuDNN

Installation

  • Clone this repo
  • Install PyTorch and dependencies from http://pytorch.org
  • Install python requirements:
pip install -r requirements.txt

Run the Tool

I want to run the tool! Calm down and follow such step:

Info: The following weights files are trained on anime face dataset which performs not good on a large whole anime character.

  1. Download the well trained model weights file --> Google Drive | Baidu
  2. Unzip the .7z and put it under your root directory. So make sure your path now is: ./model/getchu/
  3. Complete the above Prerequisites and Installation
  4. (Optional) Check and edit the ./model/getchu/config.yml config file as you wish
  5. Run the cooool tool:

Default Tool:

python tool_patch.py --path model/getchu/

Tool with edge window:

python tool_patch.py --edge --path model/getchu/

Args help

python tool_patch.py -h

PS. You can run any well trained model, not only above one. You can download more model weights files from the original work Edge-Connect. Then you can run the Tool as above. Only one thing to be careful: The config.yml in this project has some additional options than the config from the Edge-Connect.

Tool operation

For detailed manual, refer to your terminal prints or the __doc__ in tool_patch.py.

Below is the simplified tool operation manual:

Key description
Mouse Left To draw out the defective area in window input and to draw the edge in window edge
Mouse Right To erase edge in window edge
Key [ To make the brush thickness smaller
Key ] To make the brush thickness larger
Key 0 Todo
Key 1 Todo
Key n To patch the black part of image, just use input image
Key e To patch the black part of image, use the input image and edit edge (only work under edge window opened)
Key r To reset the setup
Key s To save the output
Key q To quit

Training manual

Click here --> Training manual by yourself

中文版介绍🇨🇳

重要

2019.3.27 更新:
我们的最新模型 PI-REC 更强大.
如果你想用最新的AI绘画黑科技,而非仅仅是修补图像,请点击上面的链接👆

简介

Tool效果看上面👆 | Bilibili视频教程:TO DO

这是图像修补方向最新研究成果Edge-Connect的阿姆斯特朗氮气加速魔改(优化)版。 用Opencv写了个前端部分,后端是Edge-Connect,方便当作工具使用。 此工具可以用来自动图像修补,去马赛克……同样优化了模型训练的过程。具体优化内容请看英文版Improvements。

更新:训练手册已经填坑完发布了!你可以照着指南训练自己数据集了~

基础环境

  • Python 3
  • PyTorch 1.0 (0.4 会报错)
  • NVIDIA GPU + CUDA cuDNN (当前版本已可选cpu,请修改config.yml中的DEVICE)

第三方库安装

  • Clone this repo
  • 安装PyTorch和torchvision --> http://pytorch.org
  • 安装 python requirements:
pip install -r requirements.txt

运行Tool

教练!我有个大胆的想法🈲……别急,一步步来:

注意:以下模型是在动漫头像数据集上训练的,所以对动漫全身大图修补效果一般,想自己再训练的参考下面的训练指南

  1. 下训练好的模型文件 --> Google Drive | Baidu
  2. 解压 .7z 放到你的根目录下. 确保你的目录现在是这样: ./model/getchu/
  3. 完成上面的基础环境和第三方库安装步骤
  4. (可选) 检查并编辑 ./model/getchu/config.yml 配置文件
  5. 使用以下命令运行:

默认Tool:

python tool_patch.py --path model/getchu/

带Edge编辑窗口的Tool:

python tool_patch.py --edge --path model/getchu/

命令行参数帮助

python tool_patch.py -h

PS. 你也能用tool跑别的任何模型,在这里下载原作更多模型Edge-Connect. 文件组织方式参考上面,其余运行命令都一样。唯一注意的是这个项目的 config.yml 比原作的多了几个选项,报错了的话注意修改。

Tool操作指南

详细内容请翻看控制台的打印内容,或查看tool_patch.py里的__doc__
简略版tool使用指南:

按键 说明
鼠标左键 Input窗口:画出瑕疵区域的遮盖,Edge窗口:手动画边缘
鼠标右键 Edge窗口:橡皮擦
按键 [ 笔刷变细 (控制台打印粗细大小)
按键 ] 笔刷变粗
按键 0 Todo
按键 1 Todo
按键 n 修补黑色涂抹区域,只使用一张输入图片
按键 e 修补黑色涂抹区域,使用输入图片和边缘图片(仅当edge窗口启动时有效)
按键 r 全部重置
按键 s 保存输出图片
按键 q 退出

训练指南

训练指南 --> 阅读

License

Licensed under a Creative Commons Attribution-NonCommercial 4.0 International.

Except where otherwise noted, this content is published under a CC BY-NC license, which means that you can copy, remix, transform and build upon the content as long as you do not use the material for commercial purposes and give appropriate credit and provide a link to the license.

Citation

If you use this code for your research, please cite our paper EdgeConnect: Generative Image Inpainting with Adversarial Edge Learning:

@inproceedings{nazeri2019edgeconnect,
  title={EdgeConnect: Generative Image Inpainting with Adversarial Edge Learning},
  author={Nazeri, Kamyar and Ng, Eric and Joseph, Tony and Qureshi, Faisal and Ebrahimi, Mehran},
  journal={arXiv preprint},
  year={2019},
}
排名相邻
同类项目