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

windows环境下,run_model.py运行错误的解决办法 #9

Open
SmallTemple opened this issue Aug 8, 2018 · 1 comment
Open

Comments

@SmallTemple
Copy link

No description provided.

@SmallTemple SmallTemple changed the title windows windows环境下,run_model.py运行错误的解决办法 Aug 8, 2018
@SmallTemple
Copy link
Author

类似出现ValueError: Cannot feed value of shape (0,) for Tensor 'Placeholder:0', which has shape '(?, 128, 128, 3)错误的原因是检测图片量太少不满足batch_size。
解决办法有两个,任意一个即可。
1、从训练样本resize_image目录下copy十几个过来,满足20个即可;
2、修改run_model.py代码如下:
24行batch_size = 10,此处修改10为实际目录下图片张数。
125行 batch = list[batch_id * 10:batch_id * 10 + 10],此处修改10为实际目录下图片张数。

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

1 participant