Manga/picture uncensoring script based on
- DeepCreamPy
- Hent-AI
- Screentone-Remover (For black & white manga/picture)
Right now the program only works with bar censoring, mosaic and video uncensoring will be implemented later
Google colab version
this in your own google drive and download the models from the section below
If you want to use the google colab version, make a copy ofInstalliation
System requirements
- CUDA Compatible GPU
- CUDA (latest version) (current working one is 11.5)
- CUDNN (latest version compatible with CUDA) (current working one is 8.3.2)
- Python 3.9.7
Notes
- If you have others CUDA version installed, make sure you set the system variable "CUDA_PATH" to your latest CUDA path
- Make sure you install CUDNN with the zip not the exe
- If you doesn't have GPU that can support CUDA you can run the script with CPU capable of running tensorflow as well
Automatic installation
.\init.bat
Manual installation (Not recommended)
cd tsuki
cd modules
virtualenv env --python=3.9.7
pip install -r requirements.txt
-
Create "input" and "output" folder in Converter folder
-
Ceate "decensor_input" and "decensor_output" folder in DeepCreamPy folder
-
Create "input" and "output" folder in HentAI folder
-
Create "input" and "output" folder in the ToneRemover folder
Download the models
DeepCreamPy
- Models.zip
- Extract the file then put it in DeepCreamPy/models folder
HentAI
- 4x_FatalPixels_340000_G.pth
- Weights.h5
- Put these two files in HentAI folder
- RRDB
- Put this in HentAI/ColabESRGAN/models folder
Usage (Automatic)
If you ran "init.bat" already, there should be "INPUT" and "OUTPUT" folder at the root of the project
For black & white manga/picture
Put the images in "INPUT" folder (Both PNG & JPG are acceptable)
.\run-blackwhite.bat
For colored manga/picture
Put the images in "INPUT" folder (Both PNG & JPG are acceptable)
.\run-color.bat
Usage (Manual)
Make sure you are using the correct environment when using each modules
- Activate HentAI environment then put the image in the "png" format into the "input" folder you just created
- Move the result from "output" folder from HentAI to "decensor_input" in DeepCreamPy folder
- Run DeepCreamPy and done! you have your uncensored image