r/AnimeResearch • • Oct 20 '22

DeepCreamPy & Hent-AI Guide: Installation and anime censorship removal (Version 2) NSFW

187 Upvotes

06/23/2025 UPDATE: Hello everyone. After making my 01/13 update, I have received a tidal wave of private messages. These messages have informed me of two things:

  1. Stable Diffusion's barrier to entry is much steeper for new users than I expected.

  2. People value simplicity.

In light of these revelations, I have decided to reignite this project. If you're reading this, it means that I have already finished an update for DeepCreamPy that will allow anyone to use it with minimal fuss. I will be making a new guide for Version 3. Once it is done, you can find it here: LINK TO NEW GUIDE.

Please don't hesitate to reach out if you have questions. Thanks!

01/13/2025 UPDATE: Once in a while I get questions about this project through email or Reddit DMs, so I want to give everyone a quick update. In the past, decensoring hentai was equally difficult across the board, but has since become trivial with the introduction of consumer GUIs like ForgUI and Automatic1111 for Stable Diffusion. Because of this, there isn't much a huge need for DeepCreamPy and Hent-AI... Stable Diffusion is just better, and learning how to utilize it will be more effective than spending your time getting this project to work. My guide will (probably) still work if you follow everything perfectly, but I will not be providing much support for it in the future. If you have any questions about Stable Diffusion please let me know, and good luck in your future hentai adventures!

Hey everyone, welcome back. This guide is the updated version of my older, now deprecated revival project for DeepCreamPy and Hent-AI. I highly recommend following this version instead. For archival purposes, here is a link to the outdated version.

This project began when I discovered the unfortunate story behind DeepCreamPy, a tool for decensoring censored hentai. Thanks to the GitHub community I was able to recover recent versions from before the developer went dark, but the program itself was in bad shape and needed a unique environment to function. This effectively put it out of reach for casual users, so I'm hoping this guide will serve as an easy way to get everyone involved.

Please be sure to read Chapter 1: Introduction, it contains valuable information. It's important if you want to avoid problems and errors.

Index

  1. Introduction

  2. Preparing Python and Anaconda.

  3. Installing Hent-AI.

  4. Installing CenDetect.

  5. Installing DeepCreamPy.

  6. Using Hent-AI.

  7. Using CenDetect.

  8. Using DeepCreamPy.

  9. Quick Start

  10. Masking by Hand

  11. FAQ

  12. Notes & Updates

  13. Sources and Credits

 

1. Introduction (Read this first)

This guide is divided into several chapters describing how to set up and use Anaconda3, Python, Hent-AI, CenDetect and DeepCreamPy (DCP). Each chapter assumes that you have read previous chapters. I understand that not everyone has the time or patience to go though all of this, so I'll be including a chapter called "Quick Start" which should do most of the work for you. I personally recommend following the full guide instead, since it will give you a better understand of where everything is.

Occasionally you will be given instructions, which are categorized by their chapter number and alphabetical position (for example, 2.B). This is so I can reference them later if anyone needs help, or if you need to communicate issues to me. Unless otherwise stated, always perform these tasks.

You will use the Anaconda Powershell Prompt many times throughout this tutorial. This is similar to Windows Command Prompt (CMD) and both are commonly referred to as a terminal. Whenever I say "Change your terminal directory to [DIRECTORY]" or "Open your terminal in [DIRECTORY]", what I mean is that you must navigate to that folder within Anaconda Powershell Prompt. This is what the Anaconda Powershell Prompt normally looks like, and this is what it looks like when you're "in the Hent-AI folder". You can change your terminal directory by inputting "cd", followed by folder's address surrounded in quotations. For example: cd "D:\Archive\900 - Software\Hent-AI"

I will also assume that you're running Anaconda as Administrator at all times.

 

What do these tools do? (Optional reading)

DeepCreamPy (DCP) is a neural network trained to "remove" censorship in manga and anime images/video. It does this by accepting pre-masked images and then filling in the masked areas. To my knowledge it's the only neural network built specifically for hentai, so it's a valuable resource if you want to decensor collections without hiring an artist or doing the work yourself.

Hent-AI is a tool designed to work with DCP by detecting the location of censorship and then applying a mask to it. Without Hent-AI you are forced to manually mask censorship by hand with an outside program like GIMP or Photoshop. Hent-AI can do this for you at a small cost to accuracy, but it generally gets the job done and even sends finished images to DCP's input folder.

CenDetect is an alternative to Hent-AI that could be considered a direct successor. It's faster, more efficient, relatively new and very flexible when it comes to package version compatibility. Both tools behave similarly but Hent-AI seems to have a slight edge when it comes to accuracy. That being said, I don't think either program should be used without user intervention, since both tend to miss spots occasionally. My setup will allow you to use both, so don't worry too much about which to choose.

 

2. Preparing Python and Anaconda

First we need to find out which Python version (if any) you currently have installed. Open Windows' Command Prompt (CMD) as Administrator, then input and run python --version (you can also use py --list to see all versions you have installed). If you see "Python 3.9" in the output then you can skip section 2.A of this chapter. Otherwise continue reading.

 

Requirements:

 

2.A

Download and install Python 3.9.13:

  1. If you aren't using them, uninstall all other Python versions from your system, then restart.

  2. Download Python 3.9 and start the installation.

  3. Tick the "Add Python 3.9 to PATH" checkbox.

  4. Select "Custom Installation" and make sure all of the boxes are ticked.

  5. Finish installing, then restart your computer.

 

2.B

Download and install Anaconda:

  1. Download Anaconda and start the installation.

  2. Install for "All Users" if possible. Otherwise choose "Just Me".

  3. When you arrive at Advanced Options, make sure the "Register Anaconda3 as the system Python 3.9" checkbox is ticked. Do not tick the "Add Anaconda3 to the system PATH environment variable" checkbox.

  4. Install, then restart your computer.

 

2.C

Anaconda allows us to create environments to run our code and install packages in. You can think of these environments like boxes that prevent stuff from spilling out or altering other important things on your system. Before we do that, let's make sure Anaconda is ready:

  1. Open your Start Menu and run "Anaconda Powershell Prompt (Anaconda3)" as Administrator. This window should pop up.

  2. Input and run conda update -n base -c defaults conda -y.

  3. Input and run conda config --append channels conda-forge.

  4. Input and run python -m pip install --upgrade pip.

  5. Keep this window open, we'll use it in the next steps.

 

2.D

Now that Anaconda is updated and ready, we can create our first environment. You can have multiple environments, but each should have a unique name. We'll be calling ours "deepcreambox" for simplicity.

  1. Input and run conda create -n deepcreambox python=3.7 -y.

  2. Input and run conda env list. You should see two environments, "base" and "deepcreambox". Make sure "deepcreambox" is there before continuing.

 

2.E

We now have an Anaconda environment called "deepcreambox" that runs on Python 3.7. This is completely separate from your computer's Python installation, which is 3.9. Before doing anything, we need to activate deepcreambox in order to run commands in it. You must perform this step each time you start Anaconda, make changes, install packages or run your programs, so pay attention!

  1. Input and run conda activate deepcreambox.

Good, you are now inside the deepcreambox environment. We can verify this by checking the text in parenthesis to the left of our command line.

 

2.F

We're now going to install some requirements for DeepCreamPy, Hent-AI and CenDetect. We will have Python do this automatically using a text file I've created called "hyenatrash-requirements.txt".

  1. Download hyenatrash-requirements.txt.

  2. Change your terminal directory to the folder where you downloaded hyenatrash-requirements.txt.

  3. Input and run pip install -r hyenatrash-requirements.txt -f https://download.pytorch.org/whl/torch_stable.html. This may take a few minutes to finish, so give it time.

  4. When that's done, input and run mim install mmcv-full==1.4.0.

  5. Restart your Anaconda terminal.

 

Congratulations, the hard part is over. Feel free to keep your Anaconda terminal open throughout this tutorial and remember to conda activate deepcreambox after restarting it. If you want to exit the environment, input and run conda deactivate.

 

3. Installing Hent-AI.

This chapter will guide you through installing Hent-AI. If you don't want to use Hent-AI, skip this chapter.

 

Requirements:

 

3.A

Download and extract Hent-AI, it's weights and the model:

  1. Download Hent-AI_v1.6.9.zip and extract it somewhere nice.

  2. Download weights268.zip and extract it to your Hent-AI directory.

  3. Download 4x_FatalPixels_340000_G.pth and place it in your Hent-AI directory.

 

3.B

Run the setup.py script:

  1. Open Anaconda Powershell Prompt (Anaconda3) as Administrator.

  2. Input and run conda activate deepcreambox if you haven't already.

  3. Change your terminal directory to Hent-AI's directory.

  4. Input and run python setup.py install.

 

3.C

Create input folder and clean others:

  1. Open your file explorer and navigate to Hent-AI's directory.

  2. Create a folder called "input" in Hent-AI's directory.

  3. Open the "ESR_output" folder and move/remove all images.

 

Hent-AI is now ready to use. To test it, open Anaconda Powershell Prompt (Anaconda3) as Administrator and run conda activate deepcreambox if you haven't already, then change your terminal directory to Hent-AI's directory. Input and run python main.py. A small GUI that looks like this should appear; if it doesn't then something went wrong and you should check your logs.

 

4. Installing CenDetect

This chapter will guide you through installing CenDetect. If you don't want to use CenDetect, skip this chapter.

 

Requirements:

4.A

Download CenDetect and it's models:

  1. Download CenDetect_v1.0.zip and extract it somewhere nice.

  2. Download CenDetect_models.zip and extract it to the "models" folder in CenDetect's directory.

 

CenDetect is now ready to use. To test it, open Anaconda Powershell Prompt (Anaconda3) as Administrator and run conda activate deepcreambox if you haven't already, then change your terminal directory to DenDetect's directory. Input and run python det.py. CenDetect should run in your terminal, there is no GUI.

 

5. Installing DeepCreamPy

This chapter will guide you through installing DeepCreamPy. Unlike Hent-AI and CenDetect, this tool is required to decensor your files.

 

Requirements:

5.A

Download and extract DCP and it's models:

  1. Download DeepCreamPy-v2.2.0-beta.zip and extract it somewhere nice.

  2. Download 09-11-2019_DCPv2.zip and extract it to DeepCreamPy's "models" folder.

5.B

Clean out these folders:

  1. Open your file explorer and navigate to DeepCreamPy's directory.

  2. Open "decensor_input" and move/remove all images.

  3. Open "decensor_input_original" and move/remove all images.

  4. Open "decensor_output" and move/remove all images.

DeepCreamPy is now ready to use. To test it, open Anaconda Powershell Prompt as Administrator and run conda activate deepcreambox if you haven't already, then change your terminal directory to DeepCreamPy's directory. Input and run python main.py. A GUI that looks like this should appear; if it doesn't then something went wrong and you should check your logs.

 

6. Using Hent-AI.

Hent-AI works by taking an image with mosaic or bar censorship, detecting the censorship location, and then placing a green mask over it. Hent-AI then sends the image(s) to DCP for processing. In this chapter we'll explore Hent-AI's various options and how to utilize them.

While Hent-AI does a good job at detecting censorship, it's not perfect. It struggles with manga, weird shapes, screentones, Ben Day dots and censorship bars of any color other than black. This means you should always check the masks on finished images to see if they require refinement. If they do, you will need to mask the missed portions by hand using an outside program like GIMP or Photoshop (see Chapter 10: Masking by Hand).

 

6.A

Place your censored image(s) in the right location:

  1. Find censored image(s) you would like to mask (or download this image if you're lazy like me).

  2. Place your image(s) into the "input" folder in Hent-AI's directory.

Warning: DO NOT place more than one type of censorship inside "input" at once. For example:

  • BAD: 3 images with bar censorship and 2 images with mosaic censorship.

  • GOOD: 6 images with bar censorship.

  • GOOD: 8 images with mosaic censorship.

 

6.B

Start Hent-AI:

  1. Open Anaconda Powershell Prompt as Administrator.

  2. Input and run conda activate deepcreambox.

  3. Change your terminal directory to Hent-AI's directory.

  4. Input and run python main.py.

  5. Wait for this window to open.

This is Hent-AI's main GUI and it gives us some options. We'll be focusing exclusively on images since I haven't messed with video yet, but I imagine the same principles can be applied.

  • Bar: Use this when masking images with bar censorship. They will usually look something like this.

  • Mosaic (DCP): Use this when masking images with mosaic censorship. They will usually look something like this.

  • Mosaic (ESRGAN): Hent-AI's stand-alone decensor process. DCP does a better job so I wouldn't recommend this option, but if you want a quick fix it's available. The resulting image will be saved to the "ESR_output" folder in Hent-AI's directory.

 

6.C

Process the image(s):

  1. Press Mosaic (DCP) or Bar, depending on your needs. This window should appear.

  2. Next to "Your own input image folder:", press Browse and navigate to the "input" folder in Hent-AI's directory, then press Select Folder.

  3. Next to "DeepCreamPy install folder:", press Browse and navigate to DeepCreamPy's directory, then press Select Folder.

  4. Set your "Grow detection mask amount" (0 means no expansion, while 10 makes it expand a lot). 3 is a good default.

  5. Press Go!

This process can take anywhere between a few seconds and a few minutes. When it's complete, a window should appear with the message, "Process executed successfully! Now you can run DeepCreamPy."

To test whether the masking was successful open your file explorer, navigate to DeepCreamPy's directory and look inside the "decensor_input" folder. You should see the processed image, it will contain a bright green mask where the censorship once was (like this).

 

7. Using CenDetect

CenDetect is a direct successor to Hent-AI. Like it's predecessor, it's a tool that can detect the location of mosaic/bar censorship and then apply a mask. It has a slight edge in terms of flexibility, speed and being newer.

Unfortunately there are some downsides. For example, it performs significantly worse with bar censorship during tests, despite picking up on a wider variety of bar shapes and colors than Hent-AI is able to. When it came to mosaics the results were competitive but I still believe Hent-AI is better.

It could be argued that the difference in quality doesn't matter, since you should be checking masked images and making necessary modifications either way. My build will allow you to use both tools, so don't be afraid to perform your own experiments.

 

7.A

Unlike other tools you've been working with up to this point, CenDetect does not have a GUI. You will need to learn how to use command line parameters in order to make it run. This is what a typical initialization command looks like:

python det.py --confidence 0.5 --input_path "C:\Archive\09 - Software\CenDetect\input" --output_path "C:\Archive\09 - Software\CenDetect\output" --model "mask_rcnn_r50_fpn"

This may seem confusing, but it will get clearer once we break it down.

  • python det.py is familiar, you've been using similar commands to start other tools. This simply runs the "det.py" script, which initializes CenDetect.

  • --confidence [FLOAT] is optional and tells CenDetect how confident we are in it's ability to detect censorship. 0.0 will not change anything (default), while 1.0 will indicate we have no confidence (nothing will get masked). Adjusting this number somewhere in-between (such as 0.5) can lead to highly customizable results, which is a huge point in favor of CenDetect over Hent-AI.

  • --input_path "[PATH]"tells CenDetect where to look for censored images.

  • --output_path "[PATH]" tells CenDetect where to send finished images when it's done masking them.

  • --model "[MODEL_NAME]" is optional, but useful. CenDetect comes with 4 unique models that each take different approaches to masking. After running some tests, here are my observations:

    • mask_rcnn_r50_fpn | This is the default model CenDetect will use if you don't choose one. It's a good all-rounder model but it's terrible at detecting bar censorship and tends to leave some open edges around the masked area.

    • point_rend_r50_fpn | This model seems to work best for detecting bar censorship, so I think that's it's purpose. It doesn't work well with mosaics.

    • mask_rcnn_r101_fpn | This model can detect both bar and mosaic censorship, but I found that it works better for mosaic. This one is my personal favorite because it's masking is similar to Hent-AI's quality.

    • cascade_mask_rcnn_r50_fpn_dconv | I have mixed feelings about this one. It's not supposed to work with a CPU, but it seems to do fine. It performs exceedinly well when it gets things right, but very badly when it gets them wrong. A wildcard, for sure.

Check out CenDet's GitHub page for more information.

 

7.B

Now that you understand how the command parameters work, it's time to try them out:

  1. Open Anaconda Powershell Prompt as Administrator.

  2. Input and run conda activate deepcreambox if you haven't already.

  3. Change your terminal directory to CenDetect's directory.

  4. Input python det.py but do not run it yet.

  5. Add --input_path "[PATH]" and --output_path "[PATH]".

  6. (Optional) Feel free to add more options such as --confidence [FLOAT] or choose a model with --model [MODEL_NAME].

  7. Run the command.

 

To test whether masking was successful open your file explorer and navigate to the folder you set in --output_path. You should see the processed image, it will contain a bright green mask where the censorship once was (like this).

 

8. Using DeepCreamPy.

DeepCreamPy works by taking masked images in it's "decensor_input" folder and attempting to fill in the masked area using it's trained neural network. Masks are areas of an image that have been painted over in a bright green shade, either by hand or automatically with Hent-AI/CenDetect.

There are three important folders in the DCP directory:

  • "decensor_input", where masked images are placed. These masked images must be PNGs.

  • "decensor_input_original", where you should place the original unmasked images in JPG or PNG format.

  • "decensor_output", where decensored images are sent once DCP is done processing them.

 

8.A

Place your image(s) in the correct locations:

  1. Open your file explorer and navigate to DeepCreamPy's directory.

  2. Place your masked image(s) in the "decensor_input" folder. If you used Hent-AI, check to make sure the image(s) are there.

  3. Place your original unmasked image(s) in the "decensor_input_original" folder. If you used Hent-AI, check to make sure the image(s) are there.

 

8.B

Start DeepCreamPy:

  1. Open Anaconda Powershell Prompt as Administrator.

  2. Input and run conda activate deepcreambox if you haven't already.

  3. Change your terminal directory to DeepCreamPy's directory.

  4. Input and run python main.py.

  5. Wait for this window to appear.

This is DCP's main GUI. On the left side we can tell DCP what kind of censorship it's dealing with, and on the right side we can tell it how many variations to generate. Each variation uses a slightly different but predictable approach to decensoring. More variations increases the chance of a high-quality outcome.

 

8.C

Process the image(s):

  1. Under Censor Type, select the correct censor type (Bar censor or Mosaic censor).

  2. Under Number of Decensor Variations, select how many variations you would like.

  3. Press the Decensor Your Images button.

This window should appear, which contains two loading bars. The top bar shows your overall progress while the bottom bar displays the progress of each image DCP is currently working on. The neural network will take a while to load, but the actual decensoring process is rather quick. Be patient.

Once DCP is complete, finished image(s) can be found in the "decensor_output" folder.

It's good practice to move or delete finished images from all folders at this point, you don't want any surprises later on. With a little practice this process isn't very long, the only real bottlenecks are your CPU and time.

When you're ready to do another batch, close out DCP and go back to your Anaconda Powershell Prompt terminal. Press CTRL+C to reset the command line, then input and run python main.py to start again.

Now go forth and do dirty things.

 

9. Quick Guide

Still a WIP, but it will be far easier to create now so expect an update soon.

 

10. Masking by Hand

This chapter will be short, it mainly exists to provide a reference on how to correctly mask images. This is important because poor masks can lead to poor results, and nobody wants that.

Let's go over the rules:

  • You must use this color of green for masking: RGB 0,255,0 (#00ff00).

  • Your brush must have perfectly hard edges, not blurred. If you're using Photoshop try the Pencil tool instead.

  • Your mask must completely cover the censored area, especially in the case of bars.

  • Save all of your images in PNG format to avoid artifacts, which can lead to bad results.

  • When in doubt, consult the troubleshooting guide.

 

11. Frequently Asked Questions

"I'm getting a lot of errors, what should I do?"

Errors are often caused by faulty installations or missing packages. You should first try Googling the error to see if anyone else has an answer, usually Stack Exchange will have nifty solutions you can try. If that doesn't work you can always create a new Conda environment to play around in. Don't be afraid to experiment, that's the joy of Conda environments; if you mess up, just start over.

 

12. Notes & Updates

10/19/2022

  • Transitioned primary installation method from local Python to Anaconda.

  • Created a new reddit thread and deprecated old version.

  • Added CenDetect as Hent-AI alternative.

  • Updated existing instructions to be more concise and easier to follow.

  • Modified hyenatrash-requirements.txt to contain all necessary packages for full compatibility with DCP, Hent-AI and CenDetect.

  • Added new resources.

 

I thought about including a lengthy explanation about why we're switching to Anaconda, but I think something shorter will suffice.

Basically, changing your local Python installation in order to run several outdated programs is insecure, inefficient and takes a lot of time (especially if anything breaks). It also sucks if you want to install a newer Python program, but have to rely on older Python packages and versions. You could potentially end up restarting your computer dozens of times, uninstalling and reinstalling Python, messing with your PATHs and a whole lot more.

Thankfully there is a much better solution, which is where Anaconda comes in. Anaconda is a Python package and environment manager. Essentially, it allows you to create any number of "environments", each one isolated from each-other and your local system. For example, we could have one environment with Python 3.5, another with Python 3.7 and another with Python 3.10. Each environment also keeps their packages separated from one-another, so we don't have to worry about updating or downgrading versions.

More importantly, if you ever screw something up you can just delete that environment and start again. It saves you time, effort and sanity.

Transitioning to Anaconda may seem complicated, but once you get it running there's only a slight learning curve standing between you and an awesome experience. I highly recommend taking the leap.

 

09/20/2022

  • Added "FAQ" section to guide.

  • Rearranged some stuff.

 

08/22/2022

DeepCreamPy has an EXE version, but it was removed from GitHub when DCP's creator ceased development. This file is available to download from mao-shonen's DCP archive here. I have personally assaulted it with a slew of anti-virus detection tests and sandbox simulations and it appears to be clean and functional.

The exe itself is certainly easier to use; you don't have to install some Python dependencies. But honestly I don't think it makes a huge difference in regards to time.

That being said, here is the download for anyone interested: DeepCreamPy_2.2.0-beta_win64 executable.zip. Here is the scan from Virus Total.

Remember, it's always good practice to compare file hashes to make sure you're looking at the exact same file. What is a hash? It's a unique identifier for files, everything has one. If the file is modified in any way, the hash will change. For example, if you visit the Virus Total page for the .zip file I provided, you will notice a large string of numbers and letters near the top (in this case: edcb27a89603d10520a5b00072a1c944839101101a3acb941f478f71100dfb02). This is the file's hash.

But how do you compare the hash on Virus Total to the hash of the file you downloaded?

 

  • 7.ATo find the hash of your downloaded file (or any file, for that matter):

    1. Navigate to the folder you downloaded the file to.

    2. Press ALT+D, type "powershell" and press enter.

    3. Input and run Get-FileHash -Path "DeepCreamPy_2.2.0-beta_win64 executable.zip" -Algorithm SHA256

    4. This will show you the file's hash. Compare it to the one found on Virus Total. You can now be certain it's the exact same file, nobody has modified it before giving it to you.

 

Also, fun tip: If you know a file's hash, you can search for that hash on Virus Total. This will show you if anyone else ever scanned that file using VT, which can be a quick way to do slick virus scans on the fly without having to upload anything!

 

13. Sources and Credits

I'd like to take a moment to appreciate the many developers and individuals who helped bring this project together, directly or otherwise. No contribution was insignificant. Thank you!

  • deeppomf - DeepCreamPy creator.

  • natethegreate - Hent-AI creator (GitHub).

  • styler00dollar - CenDetect creator (GitHub).

  • mao-shonen - For the DeepCreamPy repository archive + executable (GitHub)

  • u/SquishyThePotato - Special thanks to Squishy for reviving the GPU side of this project almost single-handedly. Their extensive experiments, updates and messages furthered my understanding and provided invaluable insight. Be sure to show them the gratitude they deserve for their hard work by upvoting their post.

  • Unnamed user (awaiting credit permission) - For bringing CenDetect to my attention and researching potential modern alternatives to Hent-AI.


r/AnimeResearch • • Oct 25 '18

DeepCreamPy: Decensoring Hentai with Deep Neural Networks

Thumbnail
github.com
115 Upvotes

r/AnimeResearch • • Jun 23 '25

DeepCreamPy & Hent-AI Guide: Installation and anime censorship removal (v3.0.0) NSFW

109 Upvotes

Hello friends, it's been a while. This guide is an update to my older, now-deprecated tutorial for anime censorship removal (LINK for posterity). The previous guide was incredibly complex, mostly because of I was a Python baby back then. So I spent the last three days constructing, modifying, and compiling exe files for DPC and Hent-AI to get the programs in a functional state for anyone who wanted to use them, only to discover that someone else had done that legwork already! I'm not sure how these executables flew under my radar years ago, but I'm here to fix everything.

DeepCreamPy (DPC) is a program that utilizes very small neural networks trained on censored and uncensored hentai so that it can effectively "remove" censorship. Hent-AI is a program that automates masking (necessary for DPC to work its magic) and interfaces directly with DPC.

Index

  1. Introduction

  2. Quick Installation

  3. Standard Installation

  4. Decensoring Images

 

1. Introduction (Start Here)

You have two routes to choose from:

Quick Installation: The fastest way to get started; everything is already set up. Contains a downloadable zip with the whole prebuilt combo for both DPC and Hent-AI.

Standard Installation: Offers more control over the installation. Some users may like this option if they enjoy customizing things or just want to learn more about where the different parts come from. This section essentially parrots gan-of-culture's guide, so you can use either to get started.

Select one that meets your needs, then follow the instructions within its chapter. After you're done with that, head over to chapter 4 (Decensoring Images) to continue.

If you have any questions, bugs, or success stories, please share them here. Good luck and happy dencensoring!

 

2. Quick Installation

Minimal installation process; I have packaged both programs together and configured everything for you.

Requirements:

2A. Installation

  1. Unzip anywhere on your PC.

You're set to go. Read chapter 4 (Decensoring Images) to get started. If you run into problems, you might want to skim chapter 3 (Standard Installation) just to make sure things are properly set up.

 

3. Standard Installation

Slightly more complex than using the prebuilt zip, but it's a walk in the park compared to my last guide.

I'm going to assume users reading this guide want to utilize both Hent-AI and DeepCreamPy together. If not, please let me know in the comments and I'll add instructions for keeping them separate.

Requirements:

3A. Unpacking & Preparing

  1. Create a new directory on your PC, call it something like "DPC_Hent-AI"

  2. Extract the contents of hent-AI_1_6_9.7z into DPC_Hent-AI

  3. Extract the contents of DeepCreamPy_2.2.0-beta_win64.zip into DPC_Hent-AI/dpc

  4. Navigate to DPC_Hent-AI and rename these:

    1. Rename the "main.exe" file to "Hent-AI.exe"

    2. Rename the "dist1" directory to "dpc"

  5. Navigate to DPC_Hent-AI/dpc and rename this:

    1. Rename the "main.exe" file to "DeepCreamPy.exe"

3B. Configuration

  1. Locate hconfig.ini in the DPC_Hent-AI directory

  2. Open it in a plain text editor like Notepad

  3. Under the [USER] section you will see two lines:

    • dcpdir = C:/Users/natha/Documents/hentAI/dist1

    • srcdir = C:/Users/natha/Documents/hentAI/hentAI/temp_dir

  4. Update the dcpdir line so that it points to the DPC_Hent-AI/dcp directory, and the srcdir line so that it points to DPC_Hent-AI/input_images directory. They should look something like this:

    • dcpdir = C:/Users/john/Documents/DPC_Hent-AI/dpc

    • srcdir = C:/Users/john/Documents/DPC_Hent-AI/input_images

  5. (Optional) Alternatively, you can just do this:

    • dcpdir = dpc

    • srcdir = input_images

You're set to go. Read chapter 4 (Decensoring Images) to get started.

 

4. Decensoring Images

DPC can't detect censorship on its own, it needs help. Whenever you want to decensor something, you must tell DPC where the censorship is on each image by masking the censored parts with a specific green color. You can do this by hand if you choose, but Hent-AI can manage it for us so we'll primarily be using that.

If you do want to manually mask your images (helpful if Hent-AI can't for some reason), refer to step 4D (Manual Masking) in this chapter.

IMPORTANT: Censored images come in two flavors: bar censorship and mosaic censorship. When decensoring images, it's important to keep images with bar censorship AWAY from images with mosaic censorship. Do not mix them inside the input_images folder, you will get bad results. Instead, group them together by type and do each batch separately.

Requirements:

  • A functional DPC + Hent-AI setup

  • Censored anime images

  • (Optional) A photo-editing program (Paint, Gimp, Photoshop etc)

4A. Preparing Directories

  1. Before decensoring, make sure the following folders are clear of images:

    • DPC_Hent-AI/input_images

    • DPC_Hent-AI/dpc/decensor_input

    • DPC_Hent-AI/dpc/decensor_input_original

    • DPC_Hent-AI/dpc/decensor_output

4B. Processing Images With Hent-AI

  1. Decide whether you want to decensor Bar or Mosaic-type images

  2. Place your censored images into DPC_Hent-AI/input_images

  3. Navigate to DPC_Hent-AI and run Hent-AI.exe

  4. In the popup window: Choose the relevant type based on your images.

  5. In the next popup window, make sure the locations are correct:

    • "Your own input image folder" should point to the input_images directory

    • "DeepCreamPy install folder" should point to the dpc directory

  6. (Optional) Adjust "Grow detection mask" as you see fit. This setting expands the mask a little bit to ensure it covers all the censorship. 3 is a good default.

  7. Press "Go!"

This will begin the auto-masking process and may take some time. When it's done, the masked images will be sent to DPC_Hent-AI/dpc/decensor_input and DPC_Hent-AI/dpc/decensor_input_original. It might be a good idea to check the masked images in these locations and ensure Hent-AI caught ALL of the censorship; it has been known to make mistakes. If things look off, refer to step 4D (Manual Masking) in this chapter.

4C. Decensoring Images With DeepCreamPy

  1. After masking your images, navigate to DPC_Hent-AI/dpc

  2. Run DeepCreamPy.exe

  3. In the popup window:

    1. (Optional) Choose the type of censorship you want to decensor.

    2. (Optional) Choose whether you want 1, 2, or 4 variations for each image (higher amounts take longer, but give you better variety to choose from)

  4. Press "Decensor Your Images". This step can take a LONG time. Be patient.

  5. You will be notified when the process is complete. Your decensored images will appear in DPC_Hent-AI/dpc/decensor_output. To decensor more, simply go back to step 4A (Preparing Directories) and start again.

4D. (Optional) Manual Masking

Sometimes Hent-AI produces bad results or misses censorship with its masking. You will need to run Hent-AI again until it gets things right, or manually mask it yourself. Manually masking is usually faster.

  1. Open your image in the editor of your choice (Paint, Gimp, Photoshop etc)

  2. Select the "Pencil" option (brushes don't work well because they create soft edges, which Hent-AI can NOT handle)

  3. Set the pencil color to #00FF00 or RGB(0, 255, 0)

  4. Paint over the exposed censored areas of your image

  5. Then, depending on which type of decensoring you are performing:

If you are decensoring BAR CENSORSHIP...

  1. Save the masked image to DPC_Hent-AI/dpc/decensor_input *

  2. Follow instructions in step 4C (Decensoring Images With DeepCreamPy)

If you are decensoring MOSAIC CENSORSHIP...

  1. Save the masked image to DPC_Hent-AI/dpc/decensor_input

  2. Save the original unmasked image to DPC_Hent-AI/dpc/decensor_input_original

  3. Rename both images so that they have the SAME NAME (this step is very important)

  4. Follow instructions in step 4C (Decensoring Images With DeepCreamPy)

 

5. Credits


r/AnimeResearch • • Aug 22 '22

DeepCreamPy & Hent-AI Guide: Installation and anime censorship removal

98 Upvotes
Attention: As of 10/20/2022 this guide is deprecated and has been updated. Please follow this link to the updated guide.

 

Hey guys, HT here. I recently came across DeepCreamPy and discovered the story behind it's unfortunate demise, which led to me launching a salvage mission on the tool and it's partner app, Hent-AI. Thanks to the GitHub community, I was able to recover recent versions before the author went dark. The programs were in bad shape and very outdated, but I'm happy to announce both are in a functional state. Since there doesn't appear to be an updated resource for casual users, I'm hoping this guide will serve as an easy way for everyone to get involved.

Please be sure to read the introduction, it contains valuable information about how to follow this guide. This is important if you want to avoid making mistakes and wasting your time with restarts.

Index

  1. Introduction

  2. Preparing Python.

  3. Installing Hent-AI.

  4. Installing DeepCreamPy.

  5. Using Hent-AI.

  6. Using DeepCreamPy.

  7. Quick Start

  8. FAQ

  9. Notes & Updates

 

1. Introduction

This guide is divided into three major sections describing how to set up a Python environment, how to install Hent-AI and DeepCreamPy (DCP), and then how to use them. Each part assumes that you have read previous sections and possess the knowledge contained within each. I understand that not everyone has the time or patience to read through paragraphs of text, so I'll be including a final chapter called "Quick Start" that will help get you on your feet. That being said, I DO NOT recommend following the Quick Start guide if you aren't familiar with Python environments or compiling programs yourself. It's mostly meant as a reference and for advanced users.

Occasionally you will be confronted with instructions, which are categorized by their chapter number and alphabetical position (for example, 2.B). This is so I can reference them later if anyone needs help, or if you need to communicate issues to me. Unless otherwise stated, always follow these instructions.

Whenever I say "Use Command Prompt in X folder" what I mean is that you must have the folder open in Command Prompt. This is what Command Prompt normally looks like, and this is what it looks like when you're "in the Hent-AI folder". You can open Command Prompt in a specific folder by first navigating to that folder in your file explorer, pressing ALT+D, typing "CMD" and then pressing enter.

I will also assume that you're running Command Prompt as Administrator at all times.

Keep in mind that this guide is written for Windows, so I'll be avoiding terminology aimed at Unix users. This is because if you operate a Unix machine then it's likely you'll be able to follow along without much hand-holding. Speaking of terminology, I have chosen to substitute otherwise simple commands for more reliable options to avoid issues that may arise from uncertain environment variables (for example, in the surprisingly-likely case someone has 10 versions of Python installed). This is why inputs may be longer than you would expect.

Lastly, this is not a streamlined, optimized, hyper efficient guide. There are better ways to compile and certainly better ways to set up Python. If you would like to suggest changes or make contributions then I'm happy to accept your recommendations through PMs and integrate them into this post, but try to focus on helping other users in the comments so we can have a more viewer-friendly space.

What do these tools do? (Optional reading)

DeepCreamPy is a neural network that has been trained to identify and "remove" censorship on manga and anime images/video. It is decent at accomplishing this and to my knowledge there are no other neural networks out there that can achieve the same results. Because of this, I find DCP to be invaluable if you're looking to de-censor your collection without hiring a shady artist or doing the work yourself.

Hent-AI is a tool created to function in tandem with DCP. Normally you are forced to manually mask portions of an image where you want DCP to de-censor, but Hent-AI does that for you. While it's mostly successful at this, I do find it falters from time to time, so I like to use it as part of my workflow but without relying too heavily on it's accuracy. It's great for doing the bulk of your work so that you can focus on minor adjustments.

 

2. Preparing Python

The first step is to find out which Python version (if any) you currently have installed. To do this, open Command Prompt and type py --list (if you get an error, try python --version instead). If you see 3.7 in the output then you can skip instructions 2.A; otherwise follow them.

 

2.A

  1. Download Python 3.7 and start the installation.

  2. Tick the Add Python 3.7 to PATH box.

  3. Select "Custom Installation" and make sure all of the boxes are ticked.

  4. Any time we use Python in the Command Prompt I will assume you're using version 3.7. This guide will NOT work with other versions of Python.

  5. Restart your computer.

2.B

If Python has ever been installed on your system there's a high chance it also installed Pip. Pip is a tool for managing Python packages and you will need it for the next step, so let's find out if it's there:

  1. Open Command Prompt.

  2. Input py -3.7 -m pip --version.

  3. If you get a Pip version output (for example, pip 2.22.2) continue to 2.C.

  4. If you get an error, uninstall Python 3.7 from Control Panel > Add or Remove Programs. Then reinstall it using instructions 2.A above.

2.C

Once we know Pip is installed, it's time to make sure it's updated:

  1. Open Command Prompt.

  2. Input py -3.7 -m pip install --upgrade pip.

  3. You should see an output that looks something like this: "Successfully installed pip-22.2.2".

2.D

Finally, we're going to install some packages. Because of it's age, I don't recommend using Hent-AI's requirements-cpu.txt or requirements-gpu.txt files since they contain versions of packages that won't work with Python 3.7. I have instead created a custom requirements file that we'll be using to install everything automatically, including the correct versions of each package:

  1. Download hyenatrash-requirements.txt.

  2. Open Command Prompt in the folder where you downloaded the hyenatrash-requirements.txt.

  3. Input py -3.7 -m pip install -r hyenatrash-requirements.txt into the Command Prompt.

  4. All applications should install successfully. Wait until they're finished before continuing.

  5. Restart Command Prompt.

 

3. Installing Hent-AI.

Of the two, Hent-AI is the hardest to set up. This is because it requires specific versions of certain Python apps, and depending on your level of proficiency these can create anything from minor inconveniences to hellish nightmares. It was written for a different time, so following the developer's instructions will only get you so far. Because of this, if you can start with a fresh Python 3.7 installation things will go smoother, but either way most issues will be solvable with a little Google-Fu.

Hent-AI and DeepCreamPy offer two ways to process your files: GPU and CPU. Because I'm not very familiar with CUDA (and I'm pretty sure tensorflow has changed), I won't be including a guide on how to use your GPU for processing — if someone else wants to contribute to that, please send me a PM. GPU processing is better for high file numbers and speed, but CPU processing is easier and currently stable.

 

3.A

First, download Hent-AI's source material:

  1. Download hent-AI-master.zip.

  2. Extract it somewhere nice.

3.B

Now we'll add some dependancies:

  1. Open Command Prompt in your newly-extracted Hent-AI folder.

  2. Input python setup.py install.

  3. Download weights.h5 and place it in Hent-AI's base folder.

  4. Download 4x_FatalPixels_340000_G.pth and place it in Hent-AI's base folder.

  5. Create a folder called "input_files" in Hent-AI's base folder.

3.C

Let's clean up in preparation for our images.

  1. Navigate to Hent-AI's base folder.

  2. Open "ESR_output" and move/remove all images.

  3. Open "input_files" and move/remove all images.

 

Congratulations, you're now ready to run Hent-AI. Open Command Prompt in the Hent-AI base folder and input py -3.7 .\main.py. Alternatively, if you know that you're on Python 3.7 by default you can just type python .\main.py. You can also try removing the ".\" from main.py so that your final command looks like this: python main.py. You can always go back to using previous commands if one of these fail, so play around with it. A small GUI that looks like this should open, if it doesn't then something went wrong and you should check Command Prompt's logs. Close this window for now.

 

4. Installing DeepCreamPy

DeepCreamPy works by taking an image with a mask, then using a neural network that has been trained on examples to performing a certain task. In this case that task is to de-censor censored anime images and videos, with support for both bar and mosaic censorship. It can be used as a stand-alone application, but without Hent-AI you will be forced to mask the images yourself. This isn't entirely bad since Hent-AI can sometimes be inaccurate with it's masking, so in a scenario where precision is important you may want to handle things yourself anyway. More on that later.

Much like Hent-AI, DCP also requires specific versions of Python apps to run properly. Since I haven't explored the differences between Hent-AI's dependencies versus DCP's, they're both lumped together in hyenatrash-requirements.txt. I may separate them later if the need arises.

 

4.A

  1. If you haven't followed the instructions in 2.D yet, do it now.

  2. Download DeepCreamPy-v2.2.0-beta.zip.

  3. Extract DeepCreamPy-v2.2.0-beta.zip somewhere separate from Hent-AI.

  4. Download this 09-11-2019 DCPv2.zip model.

  5. Extract the folders "bar" and "mosaic" from 09-11-2019 DCPv2.zip and place them into DeepCreamPy's "models" folder.

4.B

Let's clean up in preparation for our images:

  1. Navigate to HDeepCreamPy's base folder.

  2. Open "decensor_input" and move/remove all images.

  3. Open "decensor_input_original" and move/remove all images.

  4. Open "decensor_output" and move/remove all images.

 

You're now set up to use DCP. Take a break, stretch your arms, hydrate. Head over to the next section when you're ready to learn how to use these tools.

 

5. Using Hent-AI.

Hent-AI works by taking an image with mosaic or bar censorship, detecting the censorship location and then placing a green mask over it. It then sends the file(s) to DCP, which is able to use it's neural network to modify the green mask in order to reconstruct what it thinks the de-censored image looked like. In this section we'll explore the various options Hent-AI offers and how to utilize them to their fullest extent.

Let's open Hent-AI and give it an image to work with:

 

5.A

  1. Find an image with mosaic censorship that you'd like to de-censor (or download this image to test it with).

  2. Head over to your Hent_AI folder, then move/copy the image into "input_files".

DO NOT place mosaic-censored and bar-censored images in the input_files folder at the same time, you must de-censor them separately.

5.B

  1. Open Command Prompt in Hent-AI's folder.

  2. Input your working python command to open main.py (py -3.7 .\main.py, python .\main.py, python main.py etc)

  3. Wait for this window to open.

This is Hent-AI's main GUI and it offers us a few options. We'll be focusing exclusively on images since I haven't messed with video yet, but I imagine the same principles can be applied.

  • Bar is what you will use when decoding bar censorship, which usually looks something like this. Once you understand how to de-censor Mosaic you'll know how to de-censor Bar, so let's ignore this option for now.

  • Mosaic (DCP) will prepare a mosaic-censored image for DCP to accept and process. I recommend using this option 95% of the time, as you'll eventually find it gives you finer control of the process.

  • Mosaic (ESRGAN) is Hent-AI's stand-alone de-censorship process. If you want to skip the extra steps required to use DCP, use this. The resulting image will be saved to the "ESR_output" folder with Hent-AI's base folder.

5.C

  1. For now, go ahead and select Mosaic (DCP). This window should open.

  2. Next to "Your own input image folder:", select Browse and locate your "input_files" folder.

  3. Next to "DeepCreamPy install folder:", select Browse and locate your DeepCreamPy's base folder.

  4. Set your "Grow detection mask amount" (0 means the mask will stay it's original shape, while 10 makes it expand a lot). 3 is fine.

  5. Select "Go!"

This process can take anywhere between a few seconds to a few minutes. When it's complete you should receive a popup with the message, "Process executed successfully! Now you can run DeepCreamPy." This segways nicely into our next section.

 

6. Using DeepCreamPy.

 

6.A

Move over to your DeepCreamPy base folder. Before we begin, let's take a quick look around:

  1. Navigate to your DeepCreamPy base folder.

  2. Open the "decensor_input_original" folder. You should see our original test image from Hent-AI.

  3. Go back to your DeepCreamPy base folder.

  4. Open the "decensor_input" folder. You should see the original test image again. Go ahead and open it.

At this point you'll probably notice there's something different about the image in "decensor_input"; there are green blots everywhere, covering the areas that used to be a mosaic censor. This is your mask, it tells DCP which parts of the image to process and which parts to leave alone. This is why DCP gives you more control, because technically you could take this image into your favorite editor (Photoshop, GIMP, Paint etc) and add masks wherever you want DCP to remove censorship.

If you do choose to mask the image more, be sure to use the right color. I haven't tried other variations yet, but the Hex Code for this particular green is #00ff00.

6.B

For now, let's see what happens if we tell DCP to process the image.

  1. Navigate back to your DeepCreamPy base folder and open Command Prompt there.

  2. Input your working python command to open main.py (py -3.7 .\main.py, python .\main.py, python main.py etc).

  3. This window should open up.

This is DCP's main GUI. On the left side we'll tell DCP what kind of censorship removal we want it to perform, and on the right side we can tell it how many variations to save. These variations are extremely helpful, since de-censoring can sometimes generate undesirable outcomes. With more variation we have more choice, and more choice is always a good thing.

6.C

  1. Select the correct censor type (in this case, "Mosaic censor").

  2. Select how many variations you would like.

  3. Select "Decensor Your Images".

This window should pop up, which contains two loading bars. The top bar represents your overall progress while the bottom bar shows the progression of whatever image DCP is currently working on. This part usually takes a while and it can sometimes seem like the program is frozen; it isn't, give it time.

Once complete the program will let you know. You've just de-censored your first image(s)! They can be found in the "decensor_output" folder withing your DeepCreamPy base folder.

It's good practice to clean up images from all the folders at this point, you don't want any surprises later on. With a little practice this process isn't nearly as long as it seems, the only real bottlenecks are your CPU and time.

Now go forth and do dirty things.

 

7. Quick Guide

WIP, I'm exhausted.

 

8. Frequently Asked Questions

Can these tools be run in an Anaconda environment?

Yes, and they probably should. That being said, setting up a conda environment is tricky to comprehend if you're a basic user and can present some interesting challenges of it's own. That being said, if you're capable of doing so then I recommend giving it a shot since it will isolate Python 3.7 and it's packages from the rest of your system.

An addition to this guide regarding the setup and use of Anaconda will be forthcoming.

 

What is an "Conda Environment"?

Anaconda is an environment management system for Python. It allows us to create "containers", called environments, containing different Python versions, builds and setups. This can be extremely useful, since it isolates any problems to that custom environment and gives us the ability to easily start over if we choose.

Don't like what you did in Custom Environment 1? Just delete it and start over.

Destroyed something in Custom Environment 2? It didn't effect anything in your main Python installation, so ignore it.

 

I'm getting a lot of errors, what should I do?

Most of the time errors are caused by faulty installations or missing packages. You should first try Googling the error you see in your Command Prompt, usually Stack Exchange will have some nifty solutions you can try. If that doesn't work, start from the beginning by uninstalling ALL of your Python packages from Control Panel and deleting the directories (usually found in C:\Program Files\Python). It may also be helpful to delete your pip cache (usually found in C:\Users\username\AppData\Local\pip).

From that point, just start at the beginning of this guide and try again.

 

9. Notes & Updates

10/09/2022

I've been messing around with updating the py scripts to work with newer versions of tensorflow and other key packages. In layman terms, I'm trying to modernize everything. If successful, it would mean you could skip roughly half of this tutorial since the tool could function with Python versions above 3.6.7 or 3.7. Tests have produced promising results, but it needs more work.

Until then, I'm happy to announce that another user (who will remain anonymous until I have their permission to give credit) have been working on getting the GPU version of DeepCreamPy to work. Thus far we have successfully updated the tool to work with GTX 600s, 700s, 800M's, 900s, 1000s, 1600s and RTX 2000 series. Recently I was also able to get it working with RTX 30 series GPUs (on a 3070, to be precise). These builds are not public yet, but if you would like to contribute or receive a copy of the tree please send me a private message.

 

09/20/2022

  • Added "FAQ" section to guide.

  • Rearranged some stuff.

 

08/22/2022

There is an EXE version of DeepCreamPy, but it was removed from github when DCP's creator ceased development. Several users on this subreddit have come forward with this file. I have personally assaulted it with a slew of anti-virus detection tests and sandbox simulations and it appears to be clean and functional.

I didn't include it in my initial guide because it isn't really necessary. The program itself makes things slightly easier; you don't have to install some Python dependencies. But honestly I don't think it makes a huge difference in regards to time.

That being said, here is the download for anyone interested: DeepCreamPy_2.2.0-beta_win64 executable.zip. Here is the scan from Virus Total.

Remember, it's always good practice to compare file hashes to make sure you're looking at the exact same file. What is a hash? It's a very unique identifier for files, everything has one. If the file is modified in any way, the hash identifier will change. For example, if you visit the Virus Total page for the .zip file I provided you will notice a large string of numbers and letters near the top (in this case: edcb27a89603d10520a5b00072a1c944839101101a3acb941f478f71100dfb02). This is the file's hash.

But how do you compare the hash on Virus Total to the hash of the file you downloaded?

  • 7.A

To find the hash of your downloaded file (or any file, for that matter):

  1. Navigate to the folder you downloaded the file to.

  2. Press ALT+D, type "powershell" and press enter.

  3. Input Get-FileHash -Path "DeepCreamPy_2.2.0-beta_win64 executable.zip" -Algorithm SHA256

  4. This will show you the file's hash. Compare it to the one found on Virus Total. You can now be certain it's the exact same file, nobody has modified it before giving it to you.

Also, fun tip: If you know a file's hash, you can search for that hash on Virus Total. This will show you if anyone else ever scanned that file using VT, which can be a quick way to do slick virus scans on the fly without having to upload anything!


r/AnimeResearch • • Nov 03 '22

The AI community be going further with their food fetish with a contest

Thumbnail
gallery
94 Upvotes

r/AnimeResearch • • Mar 29 '21

What happened to DeepCreamPy?

91 Upvotes

It looks like it got removed from github.


r/AnimeResearch • • Apr 10 '23

Pictures generated with the new version of NijiJourney (prompt included in comments)

Thumbnail
gallery
73 Upvotes

r/AnimeResearch • • Aug 20 '22

[N] /r/HentaiDiffusion launched for NSFW Stable Diffusion samples NSFW

Thumbnail reddit.com
72 Upvotes

r/AnimeResearch • • Feb 20 '19

fully custom Waifu

70 Upvotes

r/AnimeResearch • • Nov 02 '22

"Japan amends its copyright legislation to meet future demands in AI" (2018)

Thumbnail
eare.eu
68 Upvotes

r/AnimeResearch • • Jun 30 '20

DouYin (China version of TikTok) allows you to create an anime style of yourself

67 Upvotes

r/AnimeResearch • • Aug 07 '22

Stable Diffusion might be the holy grail.

Post image
62 Upvotes

r/AnimeResearch • • Jun 07 '20

Hent-AI & DeepCreamPy: The Ultimate Decensoring Combo [SFW]

Thumbnail
youtu.be
61 Upvotes

r/AnimeResearch • • Jun 30 '22

"I've been creating anime artworks with our dev AI model (a diffusion-based model developed with Sizigi Studios) and secretly posting them to Pixiv everyday in the past month", Aixile

Thumbnail
twitter.com
58 Upvotes

r/AnimeResearch • • Sep 01 '22

The Power of Img2Img (prompt + more info in comments)

Post image
55 Upvotes

r/AnimeResearch • • Jan 21 '22

Danbooru2021 released: 4.9m+ anime images annotated with 162m+ tags

Thumbnail
gwern.net
52 Upvotes

r/AnimeResearch • • May 20 '24

Manga decensoring NSFW

51 Upvotes

I created a new solution for black bar manga decensoring - er0manga.org

The code is fully opensource and the docker image is available (links are on the webpage).

It works better than any other alternatives (Hent-AI + DeepCreamPy) and does not require screentone removal.

All models are trianed by me and if you have any questions, you are free to ask.

I am the only author and If you want to help keeping the website running - you can subscribe to patreon (link is also on the website). It will help me to put more attention in this project and improve the quality, introduce new features and train better models.


r/AnimeResearch • • Oct 10 '22

"NovelAI Improvements on Stable Diffusion" (use of different CLIP layer; consistent cropping within batch; tripling context by concating 3 prompt embeddings)

Thumbnail
blog.novelai.net
51 Upvotes

r/AnimeResearch • • Aug 01 '22

StableDiffusion: Kurisu from Steins Gate

Post image
51 Upvotes

r/AnimeResearch • • Sep 05 '22

"waifu-diffusion": Stable Diffusion v1.4 finetuned on 56k Danbooru2021 image-text pairs for text

Thumbnail
huggingface.co
50 Upvotes

r/AnimeResearch • • Aug 31 '20

[P] Cross-Model Interpolations between 5 StyleGanV2 models - furry, FFHQ, anime, ponies, and a fox model

49 Upvotes

r/AnimeResearch • • Feb 11 '19

StyleGAN produces some pretty amazing results

Post image
49 Upvotes

r/AnimeResearch • • Jan 29 '22

Opp-AI Progress - v0.1 Generating Anime Oppai Using StyleGAN3 NSFW

48 Upvotes

Very heavily inspired from TADNE, waifulabs, and others, I am on a mission to create Opp-AI, an AI trained to produce oppai.

These are a 1-100 seed sample of model v0.1, FID is 15.95 after 1280 kimg.

https://postimg.cc/gallery/BsGRJ2c (NSFW)

Trained with StyleGAN3-t at 1024x1024 with gamma 32, mirroring enabled, and rest default settings.

This dataset is around 15k at 1024x1024 resolution. I compiled it myself from 100k ish images, ran through nsfw_model to only get the hentai, then a script to shift/crop them that used box labels in the images from a custom yolov5s model I trained on manually labeled 2k images of anime faces, oppai, and areola.

I have since retired this model and dataset as it is not as good as it could be. The dataset I am currently working on is more than halfway done at around 42k images large at 512x512. I am projecting to have at minimum 60k+.

I think these results are promising. If anyone has any suggestions for settings to fiddle around with or maybe a different model to use please comment them! I have a RTX 3060 12gb and 16gb of ram I can use.

I plan on making future posts about this project as it evolves.


r/AnimeResearch • • Nov 01 '22

how do I properly use Hentai/"NAI" Diffusion? NSFW

47 Upvotes

So I got hentai diffusion to work and it does it's job, I put in prompts and it generates, the problems I'm having are, it's not as good as the "nai_diffusion" tag results on "rule 34 .xxx" that's my while goal, to generate images to attach to that tag, but they aren't looking like other images do on that tag, and the other problem is that when I try to generate one with a character, It doesn't come out as the character like "aqua,konouba " for example.

Nutshell if it all: "mine isn't generating stuff like it does on the nai_diffusion tag on rule34 .xxx and I want it to so i can post on there"