-
Notifications
You must be signed in to change notification settings - Fork 1
/
countr_readme.txt
executable file
·16 lines (15 loc) · 1.21 KB
/
countr_readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Tree counting code flow
6/20/20
Step 1: Run counttree.exe
Step 2: Convert matlab data output to python .pkl format. See included df_unique.pkl file for format example. (no code included for this step)
Step 3: Create lookup table using counter_cnn_lookup_table
This code creates a lookup table with pixel centers for the x by y grid. Lookup_table is used in counter_cnn1 script. The lookup_table is used to find the center of the cropped image thumbnail based on the grid data in the file
Step 4: Run countr_div_train_test_images.py
Creates train and test splits at the IMAGE LEVEL to prep for thumbnail extraction in countr_cnn_1
Step 5: Run countr_cnn_1.py to extract grid cropped images and locate images in train/test folder
Uses the pickled lookup_table.pkl file created by 'counter_cnn_lookup_table.py'
Uses the annotation dataframe file selected by user in root directory. Either df_train_val.pkl or df_test.pkl
Step 6: Run countr_cnn_2.py to train on cropped images from grid points
Outputs the model to 'model.h5' in root directory
Step 7: Run countr_cnn_3.py to classify cropped images in test directory and output truth_table dataframe
Step 8: Run countr_cnn_image_counts.py to get image level counts