python - 使用大图像构建卷积神经网络?

标签 python machine-learning tensorflow neural-network conv-neural-network

我了解 32 x 32 x 3 图像的卷积神经网络,但我计划使用具有不同像素的更大图像。如何将图像尺寸缩小到所需尺寸?像素减少会影响 tensorflow 的精度吗?

最佳答案

理论上,输入 CNN 的图像大小没有限制。较大图像尺寸最重要的问题是内存占用增加,尤其是大批量图像。此外,您需要使用更多的卷积层来对输入图像进行下采样。当然,缩小图像的尺寸是可能的,但是您自然会丢失判别性信息。对于下采样,您可以使用 scipy 的 scipy.misc.imresize

关于python - 使用大图像构建卷积神经网络?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45263156/

相关文章:

python - 子进程生成与父进程相同的 "random"数字

python - 如何制作 django 模型 "commentable", "likeable"和 "rateable"

r - 运行 randomForest 时出错 : object not found

python - TensorFlow:Saver 有 5 个模型限制

machine-learning - CNN : understanding weights output channel argument

python - python中的内部类评估顺序

python - 遍历 python 中的压缩列表

python - 使用 Sklearn featurehasher

machine-learning - Huggingface gpt2语言模型代码中perplexity计算在哪里?

machine-learning - 如何根据偏差和权重计算神经元的输出? [神经网络]