new model
BIN
model_pred/VGG16_sign_char_detection_model/fingerprint.pb
Normal file
52
model_pred/VGG16_sign_char_detection_model/keras_metadata.pb
Normal file
BIN
model_pred/VGG16_sign_char_detection_model/saved_model.pb
Normal file
1
pred.py.save
Normal file
@ -0,0 +1 @@
|
|||||||
|
q
|
13
pred_test.py
@ -9,10 +9,10 @@ import numpy as np
|
|||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
|
|
||||||
|
|
||||||
model = tf.keras.models.load_model('model_pred/sign_char_detection_model')
|
model = tf.keras.models.load_model('model_pred/VGG16_sign_char_detection_model')
|
||||||
|
|
||||||
# Get the list of all files and directories
|
# Get the list of all files and directories
|
||||||
path = "test_data"
|
path = "test_data_own"
|
||||||
dir_list = os.listdir(path)
|
dir_list = os.listdir(path)
|
||||||
|
|
||||||
print(dir_list)
|
print(dir_list)
|
||||||
@ -23,15 +23,18 @@ tf.keras.utils.load_img
|
|||||||
|
|
||||||
class_names = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'del', 'nothing', 'space']
|
class_names = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'del', 'nothing', 'space']
|
||||||
|
|
||||||
img_height=256
|
img_height=224
|
||||||
img_width=256
|
img_width=224
|
||||||
actual=[]
|
actual=[]
|
||||||
pred=[]
|
pred=[]
|
||||||
|
|
||||||
|
|
||||||
|
img_size = [img_height, img_width]
|
||||||
for i in dir_list:
|
for i in dir_list:
|
||||||
for j in os.listdir(path+'/'+i):
|
for j in os.listdir(path+'/'+i):
|
||||||
file_path = path+'/'+i + '/' + j
|
file_path = path+'/'+i + '/' + j
|
||||||
actual.append(i)
|
actual.append(i)
|
||||||
test_image = tf.keras.utils.load_img(file_path, target_size = (200, 200))
|
test_image = tf.keras.utils.load_img(file_path, target_size = img_size)
|
||||||
test_image = tf.keras.utils.img_to_array(test_image)
|
test_image = tf.keras.utils.img_to_array(test_image)
|
||||||
test_image = np.expand_dims(test_image, axis = 0)
|
test_image = np.expand_dims(test_image, axis = 0)
|
||||||
result = model.predict(test_image)
|
result = model.predict(test_image)
|
||||||
|
BIN
test_data_own/A/IMG_9011 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/A/IMG_9062 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/A/IMG_9082 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/A/IMG_9090 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/A/IMG_9111 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/B/IMG_9012 Mały.jpeg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
test_data_own/B/IMG_9063 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/B/IMG_9091 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/C/IMG_9013 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/C/IMG_9064 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/C/IMG_9092 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/D/IMG_9014 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/E/IMG_9015 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/E/IMG_9066 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/F/IMG_9016 Mały.jpeg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
test_data_own/F/IMG_9096 Mały.jpeg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
test_data_own/G/IMG_9017 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/G/IMG_9068 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/G/IMG_9097 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/H/IMG_9018 Mały.jpeg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
test_data_own/H/IMG_9069 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/H/IMG_9098 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/I/IMG_9022 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/I/IMG_9070 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/I/IMG_9099 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/J/IMG_9024 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/J/IMG_9071 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/J/IMG_9100 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/K/IMG_9025 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/L/IMG_9026 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/L/IMG_9102 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/M/IMG_9027 Mały.jpeg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
test_data_own/M/IMG_9103 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/N/IMG_9028 Mały.jpeg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
test_data_own/N/IMG_9076 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/N/IMG_9105 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/O/IMG_9029 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/P/IMG_9030 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/P/IMG_9078 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/P/IMG_9107 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/Q/IMG_9031 Mały.jpeg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
test_data_own/Q/IMG_9108 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/R/IMG_9032 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/R/IMG_9080 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/R/IMG_9109 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/S/IMG_9034 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/S/IMG_9095 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/T/IMG_9035 Mały.jpeg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
test_data_own/T/IMG_9112 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/U/IMG_9036 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/U/IMG_9084 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/U/IMG_9113 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/V/IMG_9037 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/V/IMG_9085 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/V/IMG_9101 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/V/IMG_9114 Mały.jpeg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
test_data_own/W/IMG_9038 Mały.jpeg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
test_data_own/W/IMG_9072 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/W/IMG_9086 Mały.jpeg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
test_data_own/W/IMG_9115 Mały.jpeg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
test_data_own/X/IMG_9039 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/X/IMG_9087 Mały.jpeg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
test_data_own/X/IMG_9116 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/Y/IMG_9040 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/Y/IMG_9088 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/Y/IMG_9117 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/Z/IMG_9041 Mały.jpeg
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test_data_own/Z/IMG_9089 Mały.jpeg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test_data_own/Z/IMG_9118 Mały.jpeg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
test_data_own/nothing/IMG_9075 Mały.jpeg
Normal file
After Width: | Height: | Size: 9.1 KiB |