User Tools

Site Tools


cinderella_tomograms

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
cinderella_tomograms [2019/12/13 14:58]
twagner [Training]
cinderella_tomograms [2019/12/13 15:13]
twagner [Prediction]
Line 27: Line 27:
 After your created your training data, you can start the training :-)  After your created your training data, you can start the training :-) 
  
 +You need to specifiy all settings into one config file. To that, create an empty file with
 +<code>
 +touch config.json
 +</code>
  
-Then specify the paths into a config file like this:+Copy the following configuration into it and adapt it for your needs. The only entries you might want to change is the input_size, good_path, bad_path and pretrained_weights.
  
 <code json config.json> <code json config.json>
Line 65: Line 69:
 </code> </code>
  
-This will train a classification network on the GPU with ID=1. After the training finishes, you get a ''my_model.h5'' file. This can then be used to classfiy subtomograms into good / bad categories.+This will train a classification network on the GPU with ID=1. After the training finishes, you get a ''my_model.h5'' file. This can then be used to classify subtomograms into good / bad categories.
  
  
Line 71: Line 75:
 ==== Prediction ==== ==== Prediction ====
  
 +To run the prediction on 'my_subtomograms.hdf' just on the GPU with ID=1 do:
 +
 +<code>
 +sp_cinderella_predict.py -i my_subtomograms.hdf -w my_model.h5 -o output_folder/
 +</code>
 +
 +You will find two new mrcs files with the classified subtomograms. To check the results with e2display, you have to extract the central slices again (see [[cinderella_tomograms#extract_central_slices|Extract central slices]].
  
  
  
cinderella_tomograms.txt ยท Last modified: 2019/12/13 16:13 by twagner