728x90
저 같은 경우도 텐서플로를 2.2.0에서 2.4.1로 업데이트 후 이런 에러가 떴었는데 아래 방법 참고해서 해결하였습니다. keras에서 load_model 하지 않고 아래 코드대로 load_model하니까 해결됐어요! 오 주여!!!! 감사합니다 ㅠㅠㅠ
I had Tensorflow===2.2.0 and when I updated it to Tensorflow==2.4.0 this issue occurred.
I think there is a conflict of keras.models.load_model and the base version of tensorflow you are using.
Try running -
import tensorflow as tf
tf.keras.models.load_model(model_path)
It worked for me.
'Python library & package > Tensorflow & keras' 카테고리의 다른 글
[펌] 텐서플로우 tf.data.Dataset 사용 방법 (0) | 2021.09.12 |
---|---|
하나의 도커 이미지 docker image 에 여러 개의 컨테이너 container 만들기(tensorflow/serving) (0) | 2021.08.02 |
도커를 활용한 Tensorflow model server에 새로운 버전의 모델 배포하기 (0) | 2021.08.02 |
Tensorflow Model Server 정복 (REST API, WSL2 사용, LSTM 모델) (0) | 2021.07.30 |
[펌] save, load_model 과 save_weights, load_weights의 차이점 (0) | 2021.07.23 |