Coder Social home page Coder Social logo

sakigake3421 / demosaic_project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rekaxua/demosaic_project

0.0 0.0 0.0 495 KB

Removing Pixelated Mosaic Censorship using ESRGAN and green_mask_project

License: GNU Affero General Public License v3.0

Python 100.00%

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

rekaxua avatar blizzardo1 avatar

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.