-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.txt
52 lines (40 loc) · 1.6 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Kuzushiji_Model_Training
Dependencies:
- NumPy
- Keras/Tensorflow backend
- scikit-learn
- matplotlib
- imageio
# K49 | Feed Forward
1. vi model_feed_forward.py
- uncomment 49 sections, comment kkanji section (see comments in the code)
- change image shape for 28x28 (see comments in the code)
2. python3 model_feed_forward.py
# K49 | CNN
1. vi model_feed_forward.py
- uncomment 49 sections, comment kkanji section (see comments in the code)
2. python3 model_cnn.py
# K49 | ResNet
1. vi model_resnet.py
- uncomment 49 sections, comment kkanji section (see comments in the code)
2. python3 model_resnet.py
# KKanji | Data Preprocessing
Run "python3 download_data.py" to get all of the images for KKanji.
1. python3 clean_kkanji.py (this extracts the file names, generates labels for each image, and create a .npz from the pngs)
2. python3 augment_kkanji.py (oversampling with data augmentation)
3. python3 clean_kkanji.py (this extracts the file names, generates labels for each image, and create a .npz from the pngs)
4. python3 reduce_kkanji.py (undersampling with data augmentation)
# KKanji | Feed Forward
1. vi model_feed_forward.py
- comment out k49 sections (see comments in the code)
- change image shape for 64x64 (see comments in the code)
2. python3 model_feed_forward.py
# KKanji | CNN
1. vi model_feed_forward.py
- comment out k49 sections (see comments in the code)
2. python3 model_cnn.py
# KKanji | ResNet
1. vi model_resnet.py
- comment out k49 sections (see comments in the code)
2. python3 model_resnet.py
- we included the output in model_output.txt, because this model takes a few days to train