https://github.com/Mukosame/Anime2Sketch Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Project management - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] [search-key] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} Mukosame / Anime2Sketch * Notifications * Star 604 * Fork 27 A sketch extractor for anime/illustration. MIT License 604 stars 27 forks Star Notifications * Code * Issues 1 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Nothing to show {{ refName }} default View all branches Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code Clone HTTPS GitHub CLI [https://github.com/M] Use Git or checkout with SVN using the web URL. [gh repo clone Mukosa] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio If nothing happens, download the GitHub extension for Visual Studio and try again. Go back Latest commit @Mukosame Mukosame add gif demos ... a9dd323 May 2, 2021 add gif demos a9dd323 Git stats * 5 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time demos add gif demos May 3, 2021 test_samples add test scripts May 1, 2021 weights upload pretrained weights Apr 11, 2021 LICENSE add demos Apr 9, 2021 README.md add gif demos May 3, 2021 data.py add test scripts May 1, 2021 model.py add test scripts May 1, 2021 requirements.txt add test scripts May 1, 2021 test.py add test scripts May 1, 2021 View code Anime2Sketch Updates Introduction Prerequisites Get Started Installation Download Pretrained Weights Test Train More Results Contact License Citations README.md Anime2Sketch Anime2Sketch: A sketch extractor for illustration, anime art, manga By Xiaoyu Xiang teaser demo Updates * 2021.5.2: Upload more example results of anime video. * 2021.4.30: Upload the test scripts. Now our repo is ready to run! * 2021.4.11: Upload the pretrained weights, and more test results. * 2021.4.8: Create the repo. Introduction The repository contains the testing codes and pretrained weights for Anime2Sketch. Anime2Sketch is a sketch extractor that works well on illustration, anime art, and manga. It is an application based on the paper "Adversarial Open Domain Adaption for Sketch-to-Photo Synthesis". Prerequisites * Linux or macOS * Python 3 (Recommend to use Anaconda) * CPU or NVIDIA GPU + CUDA CuDNN * Pillow, PyTorch Get Started Installation Install the required packages: pip install -r requirements.txt Download Pretrained Weights Please download the weights from GoogleDrive, and put it into the weights/ folder. Test python3 test.py --dataroot /your_input/dir --load_size 512 --output_dir /your_output/dir The above command includes three arguments: * dataroot: your test file or directory * load_size: due to the memory limit, we need to resize the input image before processing. By default, we resize it to 512x512. * output_dir: path of the output directory Run our example: python3 test.py --dataroot test_samples/madoka.jpg --load_size 512 --output_dir results/ Train This project is a sub-branch of AODA. Please check it for the training instructions. More Results Our model works well on illustration arts: madoka demo demo1 Turn handrawn photos to clean linearts: demo2 Simplify freehand sketches: demo3 And more anime results: demo4 demo5 Contact Xiaoyu Xiang. You can also leave your questions as issues in the repository. I will be glad to answer them! License This project is released under the MIT License. Citations @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}} } @misc{xiang2021adversarial, title={Adversarial Open Domain Adaption for Sketch-to-Photo Synthesis}, author={Xiang, Xiaoyu and Liu, Ding and Yang, Xiao and Zhu, Yiheng and Shen, Xiaohui and Allebach, Jan P}, year={2021}, eprint={2104.05703}, archivePrefix={arXiv}, primaryClass={cs.CV} } About A sketch extractor for anime/illustration. Resources Readme License MIT License Releases No releases published Packages 0 No packages published Languages * Python 100.0% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.