This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
pipeline:window:cryolo:picking_general_refine [2019/09/18 10:39] twagner [4. Training] |
pipeline:window:cryolo:picking_general_refine [2019/09/19 15:49] twagner [4. Training] |
||
---|---|---|---|
Line 6: | Line 6: | ||
What does // | What does // | ||
- | The general model was trained on a lot of particles with a variety of shapes and therefore learned a robust set of generic features. The last layers, however, learn a fairly abstract representation of the particles and it might be that they do not perfectly fit your particle at hand. In order to adapt this abstract representation within the network to your specific particle, fine-tuning only affects the last two convolutional layers, but keeps all others fixed. | + | The general model was trained on a lot of particles with a variety of shapes and therefore learned a robust set of generic features. The last layers, however, learn a fairly abstract representation of the particles and it might be that they do not perfectly fit your particle at hand. In order to adapt this abstract representation within the network to your specific particle, fine-tuning only affects the last convolutional layers, but keeps all others fixed. |
Why should I // | Why should I // | ||
Line 39: | Line 39: | ||
</ | </ | ||
- | <hidden **Create the configuration file using the command line:**> | + | <html> |
+ | <div style=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | <hidden> | ||
I assume your box files for training are in the folder '' | I assume your box files for training are in the folder '' | ||
< | < | ||
- | cryoloo.py config config_cryolo.json 160 --train_image_folder train_image --train_annot_folder train_annot --pretrained_weights gmodel_phosnet_20190516.h5 | + | cryolo_gui.py config config_cryolo.json 160 --train_image_folder train_image --train_annot_folder train_annot --pretrained_weights gmodel_phosnet_20190516.h5 |
</ | </ | ||
To get a full description of all available options type: | To get a full description of all available options type: | ||
< | < | ||
- | cryoloo.py config -h | + | cryolo_gui.py config -h |
</ | </ | ||
Line 55: | Line 60: | ||
< | < | ||
- | cryoloo.py config config_cryolo.json 160 --train_image_folder train_image --train_annot_folder train_annot --pretrained_weights gmodel_phosnet_20190516.h5 --valid_image_folder valid_img --valid_annot_folder valid_annot | + | cryolo_gui.py config config_cryolo.json 160 --train_image_folder train_image --train_annot_folder train_annot --pretrained_weights gmodel_phosnet_20190516.h5 --valid_image_folder valid_img --valid_annot_folder valid_annot |
</ | </ | ||
</ | </ | ||
+ | < | ||
+ | <div style=" | ||
+ | <b> </ | ||
+ | </ | ||
+ | </ | ||
==== 4. Training ==== | ==== 4. Training ==== | ||
Line 76: | Line 85: | ||
{{ : | {{ : | ||
<note important> | <note important> | ||
+ | **Adjust the number of layers to train** | ||
+ | |||
The number of layers to fine tune (specified by layers_fine_tune in the //" | The number of layers to fine tune (specified by layers_fine_tune in the //" | ||
</ | </ | ||
Line 93: | Line 104: | ||
</ | </ | ||
- | + | < | |
- | <hidden **Alternative: | + | <div style=" |
+ | <b>Alternative: | ||
+ | </ | ||
+ | </ | ||
+ | <hidden> | ||
In comparison to the training from scratch, you can skip the warm up training ( -w 0 ). Moreover you have to add the // | In comparison to the training from scratch, you can skip the warm up training ( -w 0 ). Moreover you have to add the // | ||
Line 101: | Line 116: | ||
</ | </ | ||
</ | </ | ||
+ | < | ||
+ | <div style=" | ||
+ | <b> </ | ||
+ | </ | ||
+ | </ | ||
==== 5. Picking ==== | ==== 5. Picking ==== | ||
{{page> | {{page> |