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 | ||
cinderella_micrographs [2019/12/10 08:58] twagner |
cinderella_micrographs [2019/12/10 09:21] twagner [Training] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to use SPHIRE' | ====== How to use SPHIRE' | ||
- | This tutorial describes how to use Cinderella to sort micrographs. Unfortunately, | + | This tutorial describes how to use Cinderella to sort micrographs. Unfortunately, |
Line 11: | Line 11: | ||
==== Training ==== | ==== Training ==== | ||
- | If you would like to train Cinderella with your own classes, you can easily do it. | + | The first step is to train Cinderella with manually selected |
- | First you have to separate your good and bad classes into separate files. Create two folders, | + | <note question> |
+ | **How many micrographs do I need?** | ||
+ | |||
+ | Good question. | ||
+ | </ | ||
Then specify the paths into a config file like this: | Then specify the paths into a config file like this: | ||
Line 35: | Line 39: | ||
</ | </ | ||
The fields have the following meaning: | The fields have the following meaning: | ||
- | * **input_size**: | + | * **input_size**: |
- | * **batch_size**: | + | * **batch_size**: |
* **good_path**: | * **good_path**: | ||
* **bad_path**: | * **bad_path**: | ||
Line 43: | Line 47: | ||
* **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: | ||
Line 51: | Line 55: | ||
</ | </ | ||
- | This will train a classification network on the GPU with ID=1. After the training finishes, you get a '' | + | This will train a classification network on the GPU with ID=1. After the training finishes, you get a '' |
==== Classify ==== | ==== Classify ==== | ||
+ | Suppose you want to separate good and bad micrographs in the folder '' | ||
+ | |||
+ | This is the command to run: | ||
+ | |||
+ | < | ||
+ | sp_cinderella_predict.py -i micrographs/ | ||
+ | </ | ||
+ | |||
+ | You will find the files '' |