且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Tensorflow:确定预训练的CNN模型的输出步幅

更新时间:2022-05-04 00:45:45

输出步幅可从以下公式获得:

The output stride can be obtained from the following equation:

resolution = ((InputImageSize - 1) / OutputStride) + 1

示例:输入图像,其宽度 225 像素,而输出 跨度为 16 时,输出大小为 15

Example: An input image with a width of 225 pixels and an output stride of 16 results in an output size of 15

15 = ((225 - 1) / 16) + 1

对于tflite PoseNet模型:

For the tflite PoseNet model:

9 = ((257-1)/ x) + 1 x = 32因此输出步幅为32

9 = ((257-1)/ x) + 1 x = 32 so the output stride is 32

来源