# DeepCreamPy *Decensoring Hentai with Deep Neural Networks.* [![GitHub release](https://img.shields.io/github/release/gguilt/DeepCreamPy.svg)](https://github.com/gguilt/DeepCreamPy/releases/latest) [![GitHub downloads](https://img.shields.io/github/downloads/gguilt/DeepCreamPy/latest/total.svg)](https://github.com/gguilt/DeepCreamPy/releases/latest) [![GitHub downloads](https://img.shields.io/github/downloads/gguilt/DeepCreamPy/total.svg)](https://github.com/gguilt/DeepCreamPy/releases) [![GitHub issues](https://img.shields.io/github/issues/gguilt/DeepCreamPy.svg)](https://github.com/gguilt/DeepCreamPy/issues) A deep learning-based tool to automatically replace censored artwork in hentai with plausible reconstructions. Before DeepCreamPy can be used, the user must color censored regions in their hentai green with an image editing program (e.g. GIMP, Photoshop). DeepCreamPy takes the green colored images as input, and a neural network automatically fills in the censored regions. You can download the latest release for Windows 64-bit [here](https://github.com/gguilt/DeepCreamPy/releases/latest). For users interested in compiling DeepCreamPy themselves, DeepCreamPy can run on Windows, Mac, and Linux. Please before you open a new issue check [closed issues](https://github.com/gguilt/DeepCreamPy/issues?q=is%3Aissue+is%3Aclosed) and check the [table of contents](https://github.com/gguilt/DeepCreamPy#table-of-contents).

## Features - Decensoring images of any size - Decensoring of ANY shaped censor (e.g. black lines, pink hearts, etc.) - Decensoring of mosaic decensors - Limited support for decensoring black and white/monochrome images - Generate multiple variations of decensors from the same image ## Limitations The decensorship is for color hentai images that have minor to moderate censorship of the human reproductive organs. If an organ is completely censored out, decensoring will be ineffective. It does NOT work with: - Hentai with screentones (e.g. printed hentai) - Real life pornographic material - Censorship of nipples - Censorship of lower orifice of the alimentary canal - Animated gifs/videos ## Table of Contents Setup: * [Running latest Window 64-bit release](docs/INSTALLATION_BINARY.md) * [Running code yourself](docs/INSTALLATION.md) Usage: * [Decensoring tutorial](docs/USAGE.md) * [Troubleshooting for installing](docs/TROUBLESHOOTING.md) * [Troubleshooting for poor quality decensors](docs/TROUBLESHOOTING_DECENSORS.md) Miscellaneous: * [FAQ](docs/FAQ.md) ## To do - Resolve all Tensorflow compatibility problems - Finish the user interface - Add error log ## Contributions If you want to make a pull request to DeepCreamPy, you must first sign our [Contributor License Agreement](https://github.com/deeppomf/contributing/blob/master/sign-cla.md#sign-the-cla) (the "CLA"). Then I can accept your pull requests. Special thanks to ccppoo, IAmTheRedSpy, 0xb8, deniszh, Smethan, harjitmoe, itsVale, StartleStars, and SoftArmpit for their contributions! ## License Source code and official releases/binaries are distributed under the [GNU Affero General Public License v3.0](LICENSE.md). ## Acknowledgements Example mermaid image by Shurajo & AVALANCHE Game Studio under [CC BY 3.0 License](https://creativecommons.org/licenses/by/3.0/). The example image is modified from the original, which can be found [here](https://opengameart.org/content/mermaid). Neural network code is modified from Forty-lock's project [PEPSI](https://github.com/Forty-lock/PEPSI), which is the official implementation of the paper [PEPSI : Fast Image Inpainting With Parallel Decoding Network](http://openaccess.thecvf.com/content_CVPR_2019/html/Sagong_PEPSI__Fast_Image_Inpainting_With_Parallel_Decoding_Network_CVPR_2019_paper.html). [PEPSI](https://github.com/Forty-lock/PEPSI) is licensed under the MIT license. Training data is modified from gwern's project [Danbooru2017: A Large-Scale Crowdsourced and Tagged Anime Illustration Dataset](https://www.gwern.net/Danbooru2017) and other sources. See [ACKNOWLEDGEMENTS.md](docs/ACKNOWLEDGEMENTS.md) for full license text of these projects.