/Tsuki

Manga uncensoring scripts using DeepCreamPy & HentAI combined with custom scripts

Primary LanguagePythonMIT LicenseMIT

Tsuki

Manga/picture uncensoring script based on

Demo

Right now the program only works with bar censoring, mosaic and video uncensoring will be implemented later

Google colab version

If you want to use the google colab version, make a copy of this in your own google drive and download the models from the section below

Installiation

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

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

  1. Activate HentAI environment then put the image in the "png" format into the "input" folder you just created
  2. Move the result from "output" folder from HentAI to "decensor_input" in DeepCreamPy folder
  3. Run DeepCreamPy and done! you have your uncensored image