提交 5510faf5 authored 作者: João Victor Risso's avatar João Victor Risso

Use dimension in comment of coordinates' scaling in spatial transformer test

上级 839ce170
......@@ -2342,7 +2342,8 @@ def test_dnn_spatialtf():
height_f = T.cast(height, theano.config.floatX)
width_f = T.cast(width, theano.config.floatX)
# scale coordinates from [-1, 1] to [0, width/height - 1]
# scale coordinates from [-1, 1] to [0, dimension - 1], where dimension
# can be the width or height
x = (x + 1) / 2 * (width_f - 1)
y = (y + 1) / 2 * (height_f - 1)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论