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 [2019/03/17 19:58] twagner [Picking] |
pipeline:window:cryolo [2019/04/21 22:31] twagner [Picking particles - Without training using a general model] |
||
---|---|---|---|
Line 7: | Line 7: | ||
* crYOLO makes picking **smart** -- The network learns the context of particles (e.g. not to pick particles on carbon or within ice contamination ) | * crYOLO makes picking **smart** -- The network learns the context of particles (e.g. not to pick particles on carbon or within ice contamination ) | ||
* crYOLO makes training **easy** -- You might use a general network model and skip training completely. However, if the general model doesn' | * crYOLO makes training **easy** -- You might use a general network model and skip training completely. However, if the general model doesn' | ||
- | * crYOLO makes training **lenient** -- Don't worry if you miss quite a lot particles during creation of your training set. [[: | + | * crYOLO makes training **tolerant** -- Don't worry if you miss quite a lot particles during creation of your training set. [[: |
In this tutorial we explain our recommended configurations for single particle and filament projects. You can find more information about supported networks and about the config file in the following articles: | In this tutorial we explain our recommended configurations for single particle and filament projects. You can find more information about supported networks and about the config file in the following articles: | ||
Line 70: | Line 70: | ||
Create a new directory called '' | Create a new directory called '' | ||
- | Now create a third folder with the name '' | + | Now create a third folder with the name '' |
==== Configuration ==== | ==== Configuration ==== | ||
Line 95: | Line 95: | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
Line 159: | Line 159: | ||
to the training command. | to the training command. | ||
==== Picking ==== | ==== Picking ==== | ||
- | You can now use the model weights saved in '' | + | You can now use the model weights saved in '' |
< | < | ||
cryolo_predict.py -c config.json -w model.h5 -i full_data/ -g 0 -o boxfiles/ | cryolo_predict.py -c config.json -w model.h5 -i full_data/ -g 0 -o boxfiles/ | ||
</ | </ | ||
- | You will find the picked particles in the directory '' | + | You will find the picked particles in the directory '' |
If you want to pick less conservatively or more conservatively you might want to change the selection threshold from the default of 0.3 to a less conservative value like 0.2 or more conservative value like 0.4 using the //-t// parameter: | If you want to pick less conservatively or more conservatively you might want to change the selection threshold from the default of 0.3 to a less conservative value like 0.2 or more conservative value like 0.4 using the //-t// parameter: | ||
Line 188: | Line 188: | ||
===== Picking particles - Without training using a general model ===== | ===== Picking particles - Without training using a general model ===== | ||
+ | Here you can find how to apply the general models we trained for you. If you would like to train your own general model, please see our extra wiki page: [[: | ||
- | The general | + | Our general |
==== Configuration==== | ==== Configuration==== | ||
The next step is to create a configuration file. Type: | The next step is to create a configuration file. Type: | ||
Line 277: | Line 278: | ||
==== Training on CPU ==== | ==== Training on CPU ==== | ||
- | [[downloads: | + | |
- | The fine tune mode is especially useful if you want to train crYOLO on the CPU. On my local machine it reduced the time from 12-15 hours to 4-5 hours. | + | |
+ | The fine tune mode is especially useful if you want to [[downloads: | ||
===== Picking filaments - Using a model trained for your data ===== | ===== Picking filaments - Using a model trained for your data ===== | ||
Since version 1.1.0 crYOLO supports picking filaments. | Since version 1.1.0 crYOLO supports picking filaments. | ||
Line 302: | Line 304: | ||
==== Configuration ==== | ==== Configuration ==== | ||
- | You can configure it the same way as for a " | + | You can configure it the same way as for a " |
<code json config.json> | <code json config.json> | ||
{ | { | ||
" | " | ||
- | " | + | " |
- | " | + | " |
- | " | + | " |
" | " | ||
- | " | + | " |
- | " | + | " |
}, | }, | ||
Line 319: | Line 322: | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
Line 341: | Line 344: | ||
} | } | ||
</ | </ | ||
+ | |||
// | // | ||