User Tools

Site Tools


janni_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
janni_tutorial [2019/07/10 10:36]
twagner [Denoise]
janni_tutorial [2019/09/16 09:08]
twagner [Download and Installation]
Line 9: Line 9:
 You can find the download and installation instructions here: [[janni|Download and Installation]] You can find the download and installation instructions here: [[janni|Download and Installation]]
  
 +==== Start JANNI ====
 + If you followed the installation instructions, you now have to activate the JANNI virtual environment with 
 +<code>
 +source activate janni
 +</code>
 +
 +You can use JANNI either by command line or with the GUI. Typically, most users prefer to use the GUI. You can start it with
 +<code>
 +janni_denoise.py
 +</code>
 ==== Training a model for your data ==== ==== Training a model for your data ====
 In case you want to use the general model ([[janni#Download|Download here]]) you can skip this part and directly [[janni_tutorial#denoise|denoise]] your images.  In case you want to use the general model ([[janni#Download|Download here]]) you can skip this part and directly [[janni_tutorial#denoise|denoise]] your images. 
Line 37: Line 47:
   * **movie_dir**: Path to the directory with the movie files. If an average exists already in even_dir or odd_dir (see below), it will be skipped.   * **movie_dir**: Path to the directory with the movie files. If an average exists already in even_dir or odd_dir (see below), it will be skipped.
   * **even_dir**: For each movie in movie_dir, an average based on the //even// frames is calculated and saved in even_dir.   * **even_dir**: For each movie in movie_dir, an average based on the //even// frames is calculated and saved in even_dir.
-  * **odd_dir**: For each movie in movie_dir, an average based on the //odd// frames is calculated and saved in even_dir.+  * **odd_dir**: For each movie in movie_dir, an average based on the //odd// frames is calculated and saved in odd_dir.
   * **batch_size**: How many patches are in one mini-batch. If you have memory problems (e.g with cards < 8GB memory), you can try to reduce this value.   * **batch_size**: How many patches are in one mini-batch. If you have memory problems (e.g with cards < 8GB memory), you can try to reduce this value.
   * **learning_rate**: Learning rate, should not be changed.   * **learning_rate**: Learning rate, should not be changed.
Line 43: Line 53:
   * **saved_weights_name**: Filename of your model.   * **saved_weights_name**: Filename of your model.
 In principle you only have to adapt the paths. The other could keep as they are. In principle you only have to adapt the paths. The other could keep as they are.
-We typically use at least 30 movies to train the model. Less might also work, more work often much better. +We typically use at least 30 movies (unaligned) to train the model. Less might also work, more work often much better. 
  
 To run the training on gpu 0: To run the training on gpu 0:
Line 67: Line 77:
  
 Here is now how you do the actual denoising: Here is now how you do the actual denoising:
-It is assumed that you run the command in a directory with the with your model file ''mymodel.h5'' (might have a different name in case of the [[janni#Download|general model]]). Furthermore, it is assumed that your would like denoise averages in the folder ///my/averages/// and want to write results in the folder ///my/outputdir/denoised///+It is assumed that you run the command in a directory with your model file ''mymodel.h5'' (might have a different name in case of the [[janni#Download|general model]]). Furthermore, it is assumed that your would like denoise averages in the folder ///my/averages/// and want to write results in the folder ///my/outputdir/denoised///
  
 The following command will run the denoising on GPU 0: The following command will run the denoising on GPU 0:
janni_tutorial.txt ยท Last modified: 2020/09/24 14:46 by twagner