added images to test_Data

This commit is contained in:
Mikołaj Pokrywka 2023-01-22 20:12:33 +01:00
parent ee53b0d72b
commit 585193f5c4
6 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -31,7 +31,7 @@ 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 = (256, 256)) test_image = tf.keras.utils.load_img(file_path, target_size = (200, 200))
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)