Anime2Sketch
1.0.0
Anime2sketch:插图,动漫艺术,漫画的素描提取器
Xiaoyu Xiang


存储库包含测试代码和动漫2sketch的预算权重。
Anime2sketch是一种素描提取器,可在插图,动漫艺术和漫画中效果很好。它是基于“对抗性开放域的适应素描至光学合成”的纸张的应用程序。
安装所需的软件包: pip install -r requirements.txt
请从GoogleDrive下载权重,然后将其放入权重/文件夹中。
我们还有一个无伪影的模型版本,可与深色 /低对比度图像一起使用。您可以从GoogleDrive下载权重,然后将其放入权重/文件夹中。
python3 test.py --dataroot /your_input/dir --load_size 512 --output_dir /your_output/dir以上命令包括三个参数:
512x512 。运行我们的示例:
python3 test.py --dataroot test_samples/madoka.jpg --load_size 512 --output_dir results/如果要在Docker上运行,则可以通过自定义输入/输出图像目录来轻松地进行操作。
构建Docker图像
make docker-build设置输入/输出目录
您可以通过makefile自定义输入/输出图像的安装量。请设置目标目录。
docker run -it --rm --gpus all -v `pwd`:/workspace -v {your_input_dir}:/input -v {your_output_dir}:/output anime2sketch
例子:
docker run -it --rm --gpus all -v `pwd`:/workspace -v `pwd`/test_samples:/input -v `pwd`/output:/output anime2sketch
跑步
make docker-run如果您只想运行CPU ,则需要修复两件事(删除GPU选项)。
CMD [ "python", "test.py", "--dataroot", "/input", "--load_size", "512", "--output_dir", "/output" ]docker run -it --rm -v `pwd`:/workspace -v `pwd`/images/input:/input -v `pwd`/images/output:/output anime2sketch该项目是AODA的子分支。请检查一下培训说明。
我们的模型在插图艺术上效果很好: 
将手工绘画的照片转到清洁线路:
简化徒手草图:
还有更多动漫结果: 

Xiaoyu Xiang。
您也可以将问题作为存储库中的问题。我很高兴回答他们!
该项目根据麻省理工学院许可发布。
@misc { Anime2Sketch ,
author = { Xiaoyu Xiang, Ding Liu, Xiao Yang, Yiheng Zhu, Xiaohui Shen } ,
title = { Anime2Sketch: A Sketch Extractor for Anime Arts with Deep Networks } ,
year = { 2021 } ,
publisher = { GitHub } ,
journal = { GitHub repository } ,
howpublished = { url{https://github.com/Mukosame/Anime2Sketch} }
}
@inproceedings { xiang2022adversarial ,
title = { Adversarial Open Domain Adaptation for Sketch-to-Photo Synthesis } ,
author = { Xiang, Xiaoyu and Liu, Ding and Yang, Xiao and Zhu, Yiheng and Shen, Xiaohui and Allebach, Jan P } ,
booktitle = { Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision } ,
year = { 2022 }
}