Giter Site home page Giter Site logo

noise-learning's Introduction

Supplementary code for "Noise Learning of Instruments for High-contrast, High-resolution and Fast Hyperspectral Microscopy and Nanoscopy"

Noise-learning is a python package containing code for denoising micro- and nano- Raman spectra. This repository is still under construction.

  1. System requirements
  2. Installation guide
  3. Demo
  4. Instructions for use

1. System requirements

Software:

  • Python = 3.8.13
  • PyCharm Community = 2022.1.3

Python packages:

  • PyTorch = 1.5
  • numpy
  • scipy
  • matplotlib.pyplot
  • math
  • random
  • os

2. Installation guide

We recommend the users to install the python environment and relevant python packages via Anaconda3.

The typical install time should be around one hour.

After setup the running environment, download and unzip the code.

3. Demo

We provide Raman spectra dataset and pretrained AUnet model for model inferencing. Users can download them in the master branch of this repository.

Steps for runding demo:

  1. Download the pretrained AUnet model and Raman spectra dataset.
  2. Set the model and test dataset path in the config.py script.
  3. Run the main.py in PyCharm (or other IDEs such as Vscode, Spyder, JupyterNotebook), you will obtain the denoised Raman spectra.

The default output is .mat file that can be directly loaded in Matlab for visualization. You can also save the results as .npy or .txt files, and plot the curves in matplotlib.pyplot, or Origin to check the spectra before and after denoising.

4. Instructions for use

noise-learning's People

Contributors

xmuspeclab 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.