나의 개발일지

CNN 모델 연습 기록 04 본문

기타/AI연습 기록

CNN 모델 연습 기록 04

인공지능싱글톤 2024. 1. 19. 20:10

결국 돌고 돌아 실패한거 같다.

각각 모델의 정확도는 96% 정도인데 실제로 구성해서 테스트해보면

test_image = cv2.imread('test1.png', cv2.IMREAD_GRAYSCALE)
test_image = cv2.resize(test_image, (56,56), interpolation = cv2.INTER_AREA)

first_model = keras.models.load_model('my_model_korea_first_ep15.keras')
second_model = keras.models.load_model('my_model_korea_second_ep15.keras')
last_model = keras.models.load_model('my_model_korea_last_ep15.keras')
    
first = first_model.predict(test_image.reshape(1,56,56,1))
second = second_model.predict(test_image.reshape(1,56,56,1))
last = last_model.predict(test_image.reshape(1,56,56,1))

result = 0xAC00 + ((int)(np.argmax(first)) * 21 * 28) + ((int)(np.argmax(second)) * 28) + (int)(np.argmax(last))
print(chr(result))

 

여러가지 테스트를 해봤지만 정답률은 아주 낮은거같다.

 

결국 실패 ㅠ.ㅠ

'기타 > AI연습 기록' 카테고리의 다른 글

CNN 모델 연습 기록 03  (0) 2024.01.17
CNN 모델 연습 기록 02  (0) 2024.01.10
CNN 모델 연습 기록 01  (0) 2024.01.09