User Tools

Site Tools


auto2d_tutorial

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
auto2d_tutorial [2019/05/28 15:32]
twagner
auto2d_tutorial [2019/07/10 13:32]
twagner [Classify]
Line 23: Line 23:
  "learning_rate": 1e-4,  "learning_rate": 1e-4,
  "nb_epoch": 100,  "nb_epoch": 100,
- "nb_early_stop": 5+ "nb_early_stop": 5
 +                "train_valid_thresh":   0.8, 
 +                "max_valid_img_per_file": -1
  }  }
 } }
 </code> </code>
  
-Copy this into a new file called ''config.json''+Copy this into a new file called ''config.json''. During classification, the options in the "train" section are ignored.
  
-To run the classification I suppose you want to seperate good and bad classes in classes_after_isac.hdf and you want to save your new .hdf files into the folder ''output_folder''. Furthermore you want to use the model ''model.h5'' and the GPU with ID=1. Classes with a confidence bigger than 0.7 should be classified as good class.+To run the classification I suppose you want to separate good and bad classes in classes_after_isac.hdf (or any other .mrcs / .hdf file with classes) and you want to save your new .hdf (.mrcs) files into the folder ''output_folder''. Furthermore you want to use the model ''model.h5'' and the GPU with ID=1. Classes with a confidence bigger than 0.7 should be classified as good class.
  
 This is the command to run: This is the command to run:
Line 42: Line 44:
 ==== 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, on containing good classes (e.g ''GOOD_CLASSES/'') and one contain bad classes (e.g ''BAD_CLASSES/''). Both folders can contain multiple .hdf files.+First you have to separate your good and bad classes into separate files. Create two folders, on containing good classes (e.g ''GOOD_CLASSES/'') and one contain bad classes (e.g ''BAD_CLASSES/''). Both folders can contain multiple .hdf / .mrcs files.
  
 Then specify the paths into a config file like this: Then specify the paths into a config file like this:
auto2d_tutorial.txt · Last modified: 2020/08/28 07:36 by twagner