This is an old revision of the document!
JANNI implements a neural network denoising tool described in NVIDIA's noise2noise paper: Noise2Noise: Learning Image Restoration without Clean Data - arXiv
Besides a simple GUI and a commandline interface, JANNI also provides an simple python interface to be integrated into other programs.
You can find the download and installation instructions here: Download and Installation
If you followed the installation instructions, you now have to activate the JANNI virtual environment with
source activate janni
You can use JANNI either by command line or with the GUI. Typically, most users prefer to use the GUI (but we will also provide the command line commands in this tutorial). You can start the GUI with:
The GUI is essentially a visualization of the command line interface:
On the left side, you can see all available actions:
Each action has several parameters which are organized in tabs. Once you chosen your settings you can press “Start,” and the command will be applied and JANNI shows you the output:
It will tell you if something goes wrong. Pressing “Edit” brings you back to your settings, where you can either edit the settings (in case something went wrong) or go to the next action.
In case you would like to train a model for your data, you need to copy a few movie files into a separate directory. We typically use at least 30 movies (unaligned) to train the model. Fewer might also work, but more often work much better. The first thing you have to do is to create a configuration file for JANNI.
Press “Start,” and the config file will be written in the specified config_out_path. You should see the following output:
In principle, you simply have to specify the config file. However, you might want to specify the GPU ID as well. You find the GPU option in the Optional arguments tab.
Press “Start” to run the training and wait for finishing of JANNI. After that, press Edit (where the “Start” button used to be) to prepare for the next step.
With a trained model (either a model trained by you or the general model (Download here) ), you can directly denoise either your movies or averages. In our experience, denoising the motion corrected averages works better. In the GUI select the action denoise and fill the required parameters:
You might also want to change the GPU ID in Optional arguments tab. Then, press the Start button. JANNI will denoise your images at roughly 1s per micrograph.
Please checkout the jupyter notebook to see how to use JANNI with python.