Git Product home page Git Product logo

noiseremoval's Introduction

noiseremoval using neural networks

Examples of different approaches of doing noise removal with neural networks.

The approaches are good for situations where you don't have any clean/denoised imagery to work with. Examples of that can be weird sensors, old photos, files with artifacts from compression and/or hardware. I have not gotten around to actually testing this stuff with a decent dataset, so I am not really sure how the results are. Thus far the 1555 lines of code is mainly made with mixtral, gpt-4o, codestral and some meat input. But in the future this approach is probably gonna change to be a mix of different models with a main model using langchain as a broker that will utilize codestral and gpt-4o and do lookups of various sources on the internet plus it's own repo as the main context to speed up development. Meat doing code is a bad approach for sure - so I'll move away from that as the toolchain progresses.

Installing

Make sure you have cuda 12.3 and libcudnn-frontend-dev/mantic,mantic 0.8+ds-1 all + nvidia-cudnn/mantic 8.9.2.26~cuda12+1 amd64 ... maybe other things as well.. Not really sure..

git clone yadayada....; cd yadayada.... # then make the venv:

python3 -m venv .

source ./bin/activate

./bin/pip install -r requirements.txt

./bin/pip install opencv-python .. since I have not added it to the thing

By this time you should have a good setup for playing with this stuff without messing up your base py setup.

Then to quickly test your setup is working properly:

to test pytorch:

python3 test-pytorch-setup.py

to test tensorflow:

python3 test-tensorflow-setup.py

Thingses

Then we have a couple of ways to denoise:

Autoencoders (tensorflow): Should work fine'ish.

Noise2Noise (pytorch): A little better - but it's a classic CNN.

CycleGAN (tensorflow): The most promising of the three.

BlindSpot (pytorch): Another approach using CNN. Very dramatic results.

cGAN (pytorch): Conditional GAN. No idea if it works.

Visualize: A tool for comparing all the four images.

Tracker: A very basic resnet tracker for doing bounding boxes on interesting stuff in the images.

AutoRegressor: Train on training data and generate synthetic data using autoregressor.

Caveats:

Note that this is just example code and needs a lot of adaptation for them to work on your datasets.

All of them expect input in data/training and will output in their own directory under data.

noiseremoval's People

Contributors

skeldoy avatar

Watchers

 avatar Kostas Georgiou 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.