This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
auto2d_tutorial [2019/08/15 15:36] twagner [Classify] |
auto2d_tutorial [2020/08/28 07:36] (current) twagner [Training] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to use SPHIRE' | + | ====== How to use SPHIRE' |
+ | This tutorial describes how to use Cinderella to classify 2D class averages. You can either use a pretrained model (see section // | ||
==== Download & Install ==== | ==== Download & Install ==== | ||
You can find the download and installation instructions here: [[auto_2d_class_selection|Download and Installation]] | You can find the download and installation instructions here: [[auto_2d_class_selection|Download and Installation]] | ||
Line 19: | Line 21: | ||
==== Training ==== | ==== Training ==== | ||
If you would like to train Cinderella with your own classes, you can easily do it. | If you would like to train Cinderella with your own classes, you can easily do it. | ||
- | First you have to separate your good and bad classes into separate files. Create two folders, | + | First you have to separate your good and bad classes into separate files. Create two folders, |
Then specify the paths into a config file like this: | Then specify the paths into a config file like this: | ||
Line 26: | Line 28: | ||
{ | { | ||
" | " | ||
- | " | + | " |
}, | }, | ||
" | " | ||
" | " | ||
- | "good_classes": " | + | "good_path": " |
- | "bad_classes": " | + | "bad_path": " |
" | " | ||
" | " | ||
Line 41: | Line 43: | ||
} | } | ||
</ | </ | ||
- | The fields have the following meaning: | + | The fields |
* **input_size**: | * **input_size**: | ||
+ | * **mask_radius**: | ||
+ | |||
+ | The fields in the section **train** have the following meaning: | ||
* **batch_size**: | * **batch_size**: | ||
- | * **good_classes**: Path to folder with good classes. | + | * **good_path**: Path to folder with good classes. |
- | * **bad_classes**: Path to folder with bad classes. | + | * **bad_path**: Path to folder with bad classes. |
- | * **pretrained_weights**: | + | * **pretrained_weights**: |
* **saved_weights_name**: | * **saved_weights_name**: | ||
* **learning_rate**: | * **learning_rate**: | ||
* **nb_epoch**: | * **nb_epoch**: | ||
- | * **nb_early_stop**: | + | * **nb_early_stop**: |
The next step is to run the training: | The next step is to run the training: |