<p align="center">
<img src="assets/logo.webp" height=200>
</p>
## <div align="center"><b><a href="README.md">English</a> | <a href="README_CN.md">ç®ä½ä¸æ</a></b></div>
An amazing manga colorization project | 漫ç»AIä¸è²
If Manga-Colorization-FJ is helpful, please help to â this repo or recommend it to your friends ð <br>
# New features
- [x] Skip color img just copy to output.
- [x] Replace the offered "zipfile" weight to old "pt" format to support pytorch version >=1.0
- [x] Add tile img option for small cuda memory gpu.
- [x] Add Real-ESRGAN (support tile) for output super-resolution.
# Automatic colorization
1. Download [generator](https://cubeatic.com/index.php/s/PcB4WgBnHXEKJrE). Put 'generator.pt' in `./networks/`
```bash
wget https://cubeatic.com/index.php/s/PcB4WgBnHXEKJrE/download -O ./networks/generator.pt
```
2. Put imgs into "./input/"
3. To colorize image or folder of images, use the following command:
USE CPU:
```
$ python inference.py
```
USE GPU:
```
$ python inference.py -g
```
4. Colorized image saved to "./output/"
---
# Usage of python script
```
usage: inference.py [-h] [-p PATH] [-op OUTPUTPATH] [-gen GENERATOR]
[-sur SURPERPATH] [-ext EXTRACTOR] [-g] [-nd]
[-ds DENOISER_SIGMA] [-s SIZE] [-ct COLORTILE]
[-st SRTILE] [--tile_pad TILE_PAD] [-sr]
optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH input dir/file
-op OUTPUTPATH, --outputpath OUTPUTPATH
output dir
-gen GENERATOR, --generator GENERATOR
-sur SURPERPATH, --surperpath SURPERPATH
-ext EXTRACTOR, --extractor EXTRACTOR
-g, --gpu Use gpu
-nd, --no_denoise No denoiser before color
-ds DENOISER_SIGMA, --denoiser_sigma DENOISER_SIGMA
Denoiser_sigma
-s SIZE, --size SIZE Color output size
-ct COLORTILE, --colortile COLORTILE
Color Tile size, 0 for no tile
-st SRTILE, --srtile SRTILE
SR Tile size, 0 for no tile
--tile_pad TILE_PAD Tile padding
-sr, --superr SR or not SR by RealESRGAN_x4plus_anime_6B
aftercolored
```
# Samples
| Original | Colorization |
|------------|-------------|
| <img src="input/0084.jpg" width="512"> | <img src="input/0083.jpg" width="512"> |
| <img src="output/0084.webp" width="512"> | <img src="output/0083.webp" width="512"> |
| <img src="input/017.jpg" width="512"> | <img src="input/016.jpg" width="512"> |
| <img src="output/017.webp" width="512"> | <img src="output/016.webp" width="512"> |
| <img src="input/bw2.jpg" width="512"> | <img src="output/bw2.webp" width="512"> |
| <img src="input/bw5.jpg" width="512"> | <img src="output/bw5.webp" width="512"> |
## ð¤ Acknowledgement
Based on https://github.com/qweasdd/manga-colorization-v2
Thx https://github.com/xinntao/Real-ESRGAN
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
自动跳过彩色图片 将彩色图片复制到到输出文件夹。 将原版提供的“zipfile”权重替换为旧的“pt”格式以支持 pytorch 版本 >=1.0 为小显存 GPU 添加图片分块 选项。 添加超分辨率 Real-ESRGAN(支持 分块)默认输出75 webp减少体积。
资源推荐
资源详情
资源评论
收起资源包目录
Manga-Colorization-FJ-main.zip (33个子文件)
README_CN.md 3KB
networks
extractor.py 4KB
RealESRGAN_x4plus_anime_6B.pt 17.11MB
models.py 13KB
put generator.pt here.txt 0B
RRDBNet.py 6KB
assets
logo.png 10KB
readme.md 43B
logo.webp 86KB
colorizator.py 9KB
input
0084.jpg 971KB
bw2.jpg 403KB
0083.jpg 965KB
016.jpg 1.31MB
bw5.jpg 493KB
017.jpg 1.37MB
input_dir.txt 0B
utils
utils.py 1KB
output
0084.webp 639KB
016.webp 622KB
bw5.webp 390KB
bw2.webp 688KB
0083.webp 643KB
output_dir.txt 1B
017.webp 614KB
inference.py 5KB
requirements.txt 175B
denoising
utils.py 2KB
denoiser.py 4KB
models.py 4KB
functions.py 4KB
models
net_rgb.pth 3.28MB
README.md 3KB
共 33 条
- 1
资源评论
Meta.Qing
- 粉丝: 2w+
- 资源: 121
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 王姿.html
- 51单片机学习(1)-软件keil下载
- 历届(第1-21届)希望杯数学竞赛初一试题及答案(最新整理).doc全国数学邀请赛(264页资料)
- 水滴.psd
- TokenPocket_V2.1.2_release.apk
- Apache-druid-kafka-rce.yaml
- 基于C#的ASP.NET数据库原理及应用技术课程指导平台的开发
- 基于ROS的智能车轨迹跟踪算法的仿真与设计源码运用PID跟踪算法.zip.zip
- Bug Bounty Tip - i春秋Self-XSS变废为宝的奇思妙想
- 1991-2015年全国初中化学竞赛复赛试题汇编(212页)(24年竞赛复赛真题).docx天原杯
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功