Giter Club home page Giter Club logo

nul-image-enhancer's Introduction

The Non-Ultimate Image Enhancer ๐ŸŒ

An algorithm based on decision trees and deep learning models to enhance images.
The algorithm is simple, it does not always provide good results on already great images.
The default maximum runtime is 60 seconds / image. The algorithm can provide good results in 10 seconds on some images.
The algorithm tries multiple transformations on contrast / saturation / lighting etc., it evaluates the changes and keeps the best ones.

โžก๏ธ More details on the algorithm: How I Built an AI Image Enhancer

Results

Enhanced โœ”๏ธ

Enhanced โœ”๏ธ

Enhanced โ“

Requirements

  • A GPU with > 2GB VRAM (very slow on CPU)
  • CLIP
  • Pytorch

Usage

python3 enhance_image.py examples/1.png --maxruntime=10

or

Models

โญ If you like it! Thanks!

nul-image-enhancer's People

Contributors

whiax avatar

Stargazers

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

Watchers

 avatar

Forkers

ujjw-alz dzianisv

nul-image-enhancer's Issues

module 'torchvision.transforms.functional' has no attribute 'adjust_sharpness'

I use python 3.7 environment. and also use python3 install.py to install environment.

But I exec python3 enhance_image.py examples/1.png --maxruntime=10 it shows:

Starting image enhancer...
- reading args...
- loading data...
- loading models...
- base_score: 5.392
Traceback (most recent call last):
  File "enhance_image.py", line 170, in <module>
    transform_to_params = get_transform_to_params(mode)
  File "/home/blue/projects/NUl-Image-Enhancer/models.py", line 59, in get_transform_to_params
    transform_to_params[FT.adjust_sharpness] = {'sharpness_factor':((a, 1/a),)}
AttributeError: module 'torchvision.transforms.functional' has no attribute 'adjust_sharpness'

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.