Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
272 views
in Technique[技术] by (71.8m points)

python - How to decide on the right target size of an input image for inception_v3? (predictions differ)

I am running an Inception V3 model to make predictions. I am finding out that different target sizes for the input image lead to different predictions.

For the same image, I got different predictions. For (416, 416): tiger_cat (6.228156387805939), for (299, 299): Egyptian_cat (55.72159290313721), for (224, 224): lynx (48.244667053222656).

I thought that the input size should be divided by 32. Which is not the case for (299, 299). But, for another input size I get the error message:

WARNING:tensorflow:Model was constructed with shape (None, 299, 299, 3) for input Tensor("input_13:0", shape=(None, 299, 299, 3), dtype=float32), but it was called on an input with incompatible shape (None, 224, 224, 3).

How do I decide on the best target size?

question from:https://stackoverflow.com/questions/65898956/how-to-decide-on-the-right-target-size-of-an-input-image-for-inception-v3-pred

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...