나는 케라스 이미지의 희미한 순서를 tensorflow 순서에서 theano 순서로 변경하려고했습니다. ~/.keras/keras.json
파일을 수정했는데 "image_dim_ordering": "th"
행이 작동하지 않지만 행 "backend": "theano"
구성이 작동합니다. 나는이 프로그램의 시작 부분에 backend.image_dim_ordering('th')
를 추가 할 때keras "image_dim_ordering"구성이 작동하지 않습니다.
{
"floatx": "float32",
"epsilon": 1e-07,
"backend": "theano",
"image_dim_ordering": "th"
}
그리고는 무게 로딩에 새로운 문제가 있습니다. 나는 체중이 theano backend와 "th"order를 사용하고 있다고 확신한다. 프로그램의 시작 부분에서
backend.image_dim_ordering('th')
없이
ValueError: Layer weight shape (3,3,3,64) not compatible with provided weight shape(64,3,3,3)
원래 오류 : 나는 파이썬 2.7.12을 사용하고
Exception: Layer weight shape (3, 3, 640, 64) not compatible with provided weight shape (64, 3, 3, 3)
는 문제가 WIN7에서 모두 발생하고 우분투 16.04 시스템.
Keras 2.0 API를 사용하고 있습니까? 그렇다면'image_dim_ordering'은'image_data_format'으로 대체됩니다. [here] (https://keras.io/backend/)를 참조하십시오. –
덕분에 많은 도움이되었습니다. – patric
그게 당신의 문제를 해결 했습니까? –