Coder Social home page Coder Social logo

rekaxua / demosaic_project Goto Github PK

View Code? Open in Web Editor NEW
89.0 6.0 33.0 496 KB

Removing Pixelated Mosaic Censorship using ESRGAN and green_mask_project

License: GNU Affero General Public License v3.0

Python 100.00%
hentai mosaic pixelization censorship opencv esrgan censorship-resistance

demosaic_project's Introduction

demosaic_project

Removing Pixelated Mosaic Censorship using ESRGAN (Enhanced SRGAN) and green_mask_project

ESRGAN model should be downloaded here: Twittman's 4x_FatalPixels_340000_G.pth, and placed into models folder!

GitHub issues GitHub downloads GitHub release Twitter Follow Donate with PayPal

To have a decent performance you need a CUDA+cudnn(NVIDIA) or ROCm(AMD) compatible GPU with installed drivers! Otherweis use "--cpu" key, but beware it can be VERY slow.

HOW TO USE:

  1. Place your images inside decensor_input
  2. Run "python demosaic_project_ESRGAN.py" or ("python demosaic_project_ESRGAN.py --cpu" for cpu version)
  3. Take your decensored images from decensor_output
  4. ???
  5. Profit

Don't forget to install python3 and all the requirements with command "pip3 install -r requirements.txt" in cmd or bash

TODO:

  • GUI
  • Config file
  • Better detection algorithm

Inspiration from DeepCreamPy and hent-AI
Credits to Twittman for making trained model Fatal Pixels.

Sample image by hks(@timbougami)

demosaic_project's People

Contributors

blizzardo1 avatar rekaxua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

demosaic_project's Issues

Program refuses to function

the command python demosaic_project_ESRGAN.py --cpu
does not run the program in cpu mode, because there seems to be something wrong with the code.

no matter what I do, I get this error: raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled

Line missing

I receive this error:
"Traceback (most recent call last):
File "E:\demosaic_project\demosaic_project_ESRGAN.py", line 28, in
import architecture as arch
ModuleNotFoundError: No module named 'architecture'"

Is there a line missing that indicates the location of architecture.py?

Help with configurating\error?

D:\demosaic_project-1.0>pip3 install -r requirements.txt
Collecting glob3
  Using cached glob3-0.0.1.tar.gz (669 bytes)
ERROR: Could not find a version that satisfies the requirement torch==1.2.0 (from -r requirements.txt (line 2)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.2.0 (from -r requirements.txt (line 2))



D:\demosaic_project-1.0>python demosaic_project_ESRGAN.py
Traceback (most recent call last):
  File "demosaic_project_ESRGAN.py", line 1, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'

I download demosaic_project-1.0.rar, extracted and downloaded 4x_FatalPixels_340000_G.pth (placed it in model folder)
Have installed last python 3.8.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.