본문 바로가기

개발

logits and labels must be broadcastable: logits_size=[64,5] labels_size=[64,11] [[{{node categorical_crossentropy/softmax_cross_entropy_with_logits}}]] [Op:__inference_train_function_9008]

ERROR

 

상황

Retrain MobileNet V2 classifier for the Edge TPU (TF2) Code 사용 중에 DataSet 변경 후 Train 진행

 

해결

OutputLayer에서 units 값을 자신의 Class 개수로 변경

'개발' 카테고리의 다른 글

개발은 독서와 같다.  (0) 2024.02.02
직접 분할압축파일 병합  (1) 2024.02.01
raise ValueError("Dimensions %s and %s are not compatible" %  (0) 2024.02.01
Colab with google_drive  (0) 2024.02.01
첫 시작  (0) 2024.01.31