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

train #34

Closed
zq130320339 opened this issue Jun 10, 2019 · 4 comments
Closed

train #34

zq130320339 opened this issue Jun 10, 2019 · 4 comments

Comments

@zq130320339
Copy link

您好,现在换了自己的数据集,图片尺寸有要求吗?我将DeepHash/DeepHash/model/dch/dch.py 中49行代码改成self.img = tf.placeholder(tf.float32, [None, 416, 416, 3]),出现以下错误:
ValueError: Cannot feed value of shape (256, 256, 256, 3) for Tensor 'Placeholder:0', which has shape '(?, 416, 416, 3)'
如果我要更改图片的输入尺寸应如何修改代码

@bl0
Copy link
Contributor

bl0 commented Jun 10, 2019

你好,图片尺寸是有要求的,必须是(256, 256, 3),你可以把你的图片resize一下,或者修改一下网络的架构

@zq130320339
Copy link
Author

修改网络结构是修改img_alexnet_layers吗

@bl0
Copy link
Contributor

bl0 commented Jun 10, 2019

是的。

@zq130320339
Copy link
Author

好的,谢谢

@bl0 bl0 closed this as completed Jun 11, 2019
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

2 participants