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/07/10 13:29]
twagner [Training a model for your data]
Line 27: Line 27:
         "learning_rate":        1e-3,         "learning_rate":        1e-3,
         "nb_epoch":             100,         "nb_epoch":             100,
-        "saved_weights_name":   "mymodel.h5"+        "saved_weights_name":   "mymodel.h5"
 +        "train_valid_thresh":   0.8, 
 +        "max_valid_img_per_file": -1,
     }     }
 } }
Line 42: Line 44:
   * **nb_epoch**: Number of epochs to train. More epochs seems to only slightly improve the results.   * **nb_epoch**: Number of epochs to train. More epochs seems to only slightly improve the results.
   * **saved_weights_name**: Filename of your model.   * **saved_weights_name**: Filename of your model.
 +  * **train_valid_thresh**: Fraction of images that are used for training from each stack file. The remaining images are used for validation.
 +  * **max_valid_img_per_file**: Maximum number of validation images per stack file that should be used.
 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 to train the model. Less might also work, more work often much better. 
Line 67: Line 71:
  
 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