User Tools

Site Tools


pipeline:window:cryolo

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
pipeline:window:cryolo [2019/07/23 10:53]
twagner [Overview]
pipeline:window:cryolo [2019/08/29 16:27]
twagner [Training]
Line 52: Line 52:
 <hidden **Alternative: Using neural-network denoising with JANNI**> <hidden **Alternative: Using neural-network denoising with JANNI**>
 <html><br></html> <html><br></html>
-Since crYOLO 1.4 you can also use neural network denoising with [[:janni|JANNI]]. The easiest way is to use the JANNI's general model ([[:janni#janni_general_model|Download here]]) but you can also [[:janni_tutorial#training_a_model_for_your_data|train JANNI for your data]]. crYOLO directly uses an interface to JANNI to filter your data, you just have to specify the path to your JANNI model, overlap of the batches (default 24), the batch size (default 3) and a path where the denoised images should be written. +Since crYOLO 1.4 you can also use neural network denoising with [[:janni|JANNI]]. The easiest way is to use the JANNI's general model ([[:janni#janni_general_model|Download here]]) but you can also [[:janni_tutorial#training_a_model_for_your_data|train JANNI for your data]]. crYOLO directly uses an interface to JANNI to filter your data, you just have to specify the path to your JANNI model, overlap of the patches (default 24), the batch size (default 3) and a path where the denoised images should be written. 
  
 To use JANNI's denoising you have to use following entry in your config.json: To use JANNI's denoising you have to use following entry in your config.json:
Line 184: Line 184:
 Navigate to the folder with ''config.json'' file, ''train_image'' folder, etc. Navigate to the folder with ''config.json'' file, ''train_image'' folder, etc.
  
-**1. Warm up your network**+**Train your network with 3 warmup epochs:**
  
 <code> <code>
 cryolo_train.py -c config.json -w 3 -g 0 cryolo_train.py -c config.json -w 3 -g 0
-</code> 
- 
-**2. Train your network** 
- 
-<code> 
-cryolo_train.py -c config.json -w 0 -g 0 
 </code> </code>
  
Line 199: Line 193:
  
 The training stops when the "loss" metric on the validation data does not improve 10 times in a row. This is typically enough. In case want to give the training more time to find the best model. You might increase the "not changed in a row" parameter to, for example, 15 by adding the flag //-e 15//: The training stops when the "loss" metric on the validation data does not improve 10 times in a row. This is typically enough. In case want to give the training more time to find the best model. You might increase the "not changed in a row" parameter to, for example, 15 by adding the flag //-e 15//:
 +
 <code> <code>
-cryolo_train.py -c config.json -w -g 0 -e 15+cryolo_train.py -c config.json -w -g 0 -e 15
 </code> </code>
 +
 to the training command. to the training command.
 ==== Picking ==== ==== Picking ====
Line 287: Line 283:
 === Negative stain images === === Negative stain images ===
 For the general model for **negative stain data** please use: For the general model for **negative stain data** please use:
 +<hidden **config.json for negative stain images**>
 <code json config.json> <code json config.json>
     {     {
Line 298: Line 295:
     }     }
 </code> </code>
 +</hidden>
  
 Please set the value in the //"anchors"// field to your desired box size. It should be size of the minimum particle enclosing square in pixel.  Please set the value in the //"anchors"// field to your desired box size. It should be size of the minimum particle enclosing square in pixel. 
pipeline/window/cryolo.txt ยท Last modified: 2021/02/19 10:00 by twagner