Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行出错 #1

Open
njustzsm opened this issue Apr 9, 2018 · 8 comments
Open

运行出错 #1

njustzsm opened this issue Apr 9, 2018 · 8 comments

Comments

@njustzsm
Copy link

njustzsm commented Apr 9, 2018

您好,我下载了您的代码运行,直接将REPLAY-ftweights18.h5作为top_model_weights_path,但是报错,ValueError: Shape mismatch: x has 8192 cols (and 1 rows) but y has 4608 rows (and 256 cols)
Apply node that caused the error: Dot22(Reshape{2}.0, dense_1/kernel)
请问这是什么原因??

@vaeXu
Copy link
Owner

vaeXu commented Apr 15, 2018

REPLAY-ftweights18.h5是网络上其他人训练好的,他们训练时设置的img_width, img_height = (××,×× )我不清楚,我的.h5文件是自己训练出来的您也可以下载数据训练自己的h5文件做测试

@njustzsm
Copy link
Author

那能不能问一下,你的keras是以什么为后端??

@vaeXu
Copy link
Owner

vaeXu commented Apr 16, 2018

TensorFlow

@shbzygq
Copy link

shbzygq commented Apr 16, 2018

你测试的准确率是多少?

@shbzygq
Copy link

shbzygq commented Apr 16, 2018

能发一下完整的测试代码?

@njustzsm
Copy link
Author

我还没跑起来呢,,,,

@donaldxu
Copy link

能给一份您训练后的权重嘛?

@donaldxu
Copy link

嘿嘿,在另外一个issue找到了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants