Step 1.1 Create the retrain data:
Go to membrane prediction data (a). Create the binary version of the prediction data by using the ImageMagick command:
convert $input.png -threshold 50% $output.png
Step 1.2 Create the augmented data using CDeep3M
PreprocessTrainingData.py /images /labels /mem_augmented
Step 1.3 Feed the retrain data to the model (membranes_Aug05_40k) that I picked
runtraining.sh --additerations 5000 --retrain ~/W9CDEEP3M50772 ~/mem_augmented ~/mem_retrain_out
Step 2.1 Convert the Myelin prediction result (c) to the binary format:
convert $input.png -threshold 50% $output.png
Step 2.2 Create the augmented data using CDeep3M:
PreprocessTrainingData.py /myelin_images /myelin_labels /myelin_augmented
Step 2.3 Create the training model:
runtraining.sh --numiterations 50000 /myelin_augmented /myelin_trainednet
Step 3.1 Run the CDeep3M on the membrane using the training model in step 1:
runprediction.sh --augspeed 10 --models 1fm ~/mem_retrain_out
~/em ~/membrane_predictions