使用Xception和Resnet 50出現“ValueError: Error when checking target: expected dense_2 to have 4 dimensions, but got array with shape (50000, 10)”
2019/12/24 06:28 上午
電腦視覺深度學習討論版
張凱維
觀看數:7
回答數:2
收藏數:1
cvdl-1
cvdl-1-d21
我用Xception和Resnet 50各試跑了一遍,最後model都會出現
“ValueError: Error when checking target: expected dense_2 to have 4 dimensions, but got array with shape (50000, 10)”
我知道y_train出來的是(50000,10), x_train是(50000, 32, 32, 3), 這兩個出來的形狀不一樣,請問要如何調整呢?